Commit Graph
377 Commits
Author SHA1 Message Date
Kristoffer Dalby 712bd74017 .github: stop persisting checkout credentials
Only mike and vouch push; their checkouts keep the token, explicitly.
2026-11-20 19:47:15 +01:00
Kristoffer Dalby bd930e6b07 .github: drop the docs deploy cache
Tag deploys restored main's cache into published docs; zizmor cache-poisoning.
2026-11-20 19:47:15 +01:00
Kristoffer Dalby 1c3ee1b07b .github: pass integration tests only the secrets they read
Call the template with $/, the same-commit reference zizmor asks for.
2026-11-20 19:47:15 +01:00
Kristoffer Dalby 1dcb57cb8c .github: grant workflows only the permissions they use
The repository default token can write; set read and widen per job.
2026-11-20 19:47:15 +01:00
Kristoffer Dalby b01e8e0980 .github: pass expressions to scripts through env
Expressions expanded inside run and script bodies become code.
2026-11-20 19:47:15 +01:00
Kristoffer Dalby 51fd8dd1b6 .github: write the gc dry-run step as a block scalar
zizmor cannot locate expressions in a single-quoted scalar with '' escapes.
2026-11-20 19:47:15 +01:00
Kristoffer Dalby 4608e29a02 all: add nested AGENTS.md for db, integration, bump and .github
Agents load them only when working in that directory.
2026-11-20 18:35:07 +01:00
Kristoffer Dalby 6fa78f41bc github: run Android integration tests on x86 KVM runners
Arm64 runners have no KVM. Tests head (tailscale-android main, debug),
unstable and latest on Android 13. The emulator image is built once per
run and shared as an artifact; the head APK is cached by commit.

Updates tailscale/tailscale#15660
2026-11-20 11:19:11 +01:00
headscale-bot[bot]andgithub-actions[bot] a491228b7f Update VOUCHED list (#3705)
https://github.com/juanfont/headscale/issues/3704#issuecomment-6928641623

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-16 20:39:19 +00:00
Kristoffer Dalby 520eb6f9c7 .github: verify actions.lock on pull requests 2026-11-12 14:03:30 +01:00
Kristoffer Dalby 963dcf353f .github: lock workflow actions
Generated: gh-actions-lock --migrate-local-actions.
2026-11-12 14:03:30 +01:00
Kristoffer Dalby b3bbf1725e .github/actions: align headscale-up pins with the workflows
Bump never read this file; hestia sat at v2.0.0.
2026-11-12 14:03:30 +01:00
github-actions[bot] ab19a74255 .github: bump 3 action pins 2026-11-12 06:55:28 +01:00
Kristoffer Dalby 5d44138d40 .github: give servertest 40 minutes
The package already used nearly all of 20m; the reauth-wake replay
tests push it past and the run panics mid-progress.

Updates #3370
2026-11-11 18:12:34 +01:00
Kristoffer Dalby 3cbf7ecdb8 github: run the restart integration test 2026-11-11 18:12:34 +01:00
Kristoffer Dalby 492c28f5bb .github: run vouch as the headscale-bot App
GITHUB_TOKEN PRs wait for CI approval and cannot merge past main's
rules; the App is the ruleset bypass actor. Sync checks out main, so a
dispatch on another branch cannot squash that branch into main.
2026-11-11 15:19:25 +01:00
Kristoffer Dalby 38da2a9625 .github: open version bump PRs as the headscale-bot App
Juan's PAT authored the PR, so he could not approve it.
2026-11-11 15:19:25 +01:00
Kristoffer Dalby 3a35f74873 nix: build the module on the generated options
settings mirrors headscale's keys one to one, headscale's checks judge the
rest, and the local CLI gets the socket from a variable instead of a file.

headscale always runs as headscale:headscale, which the module creates;
user and group are read-only, so setting either fails evaluation, and stay
only because nixpkgs' headplane module reads them. A settings.cli key
fails evaluation instead of being dropped with a warning, and the unit no
longer gets CAP_CHOWN.
nix/example-configuration.nix goes: the options carry its examples and
defaults.

Updates #1926
2026-11-11 15:02:16 +01:00
Kristoffer Dalby 0844b7649d nix: check the policy at build time and the config before a switch
Store-path policy: check policy -f in system.checks.
Pre-switch: check all as the headscale user.
Adapted: no file: secret warning; groups as after activation; a new primary
group skips; the policy the unit's env selects; docs say which check covers
the policy; VM case for the unit's env.

(cherry picked from commit b6ba6e42ee)

Fixes #2898
Updates #1926
2026-11-11 15:02:16 +01:00
Kristoffer Dalby fe908c2d5a goreleaser: generate shipped config files, remove config-example.yaml
Updates #1926
2026-11-11 15:02:16 +01:00
Kristoffer Dalby 42a74821bc docs: add generated configuration reference and example
Updates #1926
2026-11-11 15:02:16 +01:00
Kristoffer Dalby 8405c248e1 nix: add generated NixOS options
Updates #1926
2026-11-11 15:02:16 +01:00
Kristoffer Dalby cb4ccd97c2 types: reject unknown and removed config keys
Fixes #1926
2026-11-11 15:02:16 +01:00
Kristoffer Dalby 5de40d9528 github: regenerate integration test list
Updates #3355
2026-11-11 12:06:27 +01:00
Martín Gómez 215844e5b7 integration: test nodes update-client 2026-11-05 15:51:04 +01:00
Kristoffer Dalby c7daf6d923 .github: regenerate integration test workflow
Fixes #3027

Claude-Session: https://claude.ai/code/session_01RHEZM1qJ2hgndiXio7P56h
2026-11-03 15:52:52 +01:00
Kristoffer Dalby 7bd88aee79 .github: exempt milestoned issues from stale bot, stale after 45 days (#3652)
Milestone means triaged. Close message said 14 days; config is 7.
2026-11-03 15:52:47 +01:00
github-actions[bot] 2456ba1f6b Update VOUCHED list (#3651)
https://github.com/juanfont/headscale/issues/3650#issuecomment-6601738938

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-03 13:15:31 +00:00
github-actions[bot] 152c7f262b Update VOUCHED list
https://github.com/juanfont/headscale/issues/3643#issuecomment-6581488242
2026-11-03 13:51:44 +01:00
Kristoffer Dalby eaeb6b3192 .github: regenerate integration test workflow 2026-11-02 19:15:40 +01:00
github-actions[bot] 4472cd8b83 Update VOUCHED list
https://github.com/juanfont/headscale/issues/3629#issuecomment-6525293776
2026-10-30 15:35:25 +01:00
Kristoffer Dalby beb1214926 release: reject dirty sources and build artifacts
Fixes #3583
2026-10-29 15:39:30 +01:00
Kristoffer Dalby b23d4dc535 .github: regenerate integration test workflow 2026-10-29 14:00:02 +01:00
github-actions[bot] b715b9041d .github: bump 3 action pins 2026-10-29 13:39:27 +01:00
github-actions[bot] 00f597aa6d Update VOUCHED list
https://github.com/juanfont/headscale/issues/3599#issuecomment-6473763699
2026-10-29 06:58:58 +01:00
Kristoffer Dalby 2905dbfe86 ci: run race tests through a flake check 2026-10-23 18:23:53 +02:00
github-actions[bot] 1e3bbae3d1 .github: bump 1 action pins 2026-10-22 14:37:00 +02:00
Kristoffer Dalby dcc01dc2b0 types: move TLS config under tls with legacy fallback
tls.cert_path, tls.key_path and tls.acme.* replace the flat keys, which
still work. Warn on them only when they turn TLS on: NixOS always sets them.

Updates #2527
2026-10-18 20:53:18 +02:00
Kristoffer Dalby d8bcaca066 github: add TestTailscaleCert to integration workflow
Updates #2137
2026-10-18 20:53:18 +02:00
github-actions[bot] 362cdaeef8 Update VOUCHED list
https://github.com/juanfont/headscale/issues/3562#issuecomment-6249089869
2026-10-18 13:10:17 +02:00
github-actions[bot] 9314f4e778 Update VOUCHED list
https://github.com/juanfont/headscale/issues/3559#issuecomment-6249075866
2026-10-18 13:09:02 +02:00
github-actions[bot] fc97593bce Update VOUCHED list
https://github.com/juanfont/headscale/issues/3549#issuecomment-6193920631
2026-10-15 16:04:19 +02:00
github-actions[bot] cee9066e91 .github: bump 3 action pins 2026-10-13 12:02:59 +02:00
Martin -nexus- Mlynář a8d6f5be81 state: send a relogin as a whole node unless only its keys changed
A PeerChange patch cannot clear a peer's Expired flag or carry the
Hostinfo the relogin stored.

Fixes #3531
2026-10-09 11:44:37 +02:00
Kristoffer Dalby c9852c43da ci: distribute the compiled integration test binary 2026-10-09 11:41:09 +02:00
Kristoffer Dalby 47653f06fb integration: avoid toolchain work and login waits in CI 2026-10-09 11:41:09 +02:00
Kristoffer Dalby 9de8e9103f ci: regenerate integration test list
Updates #3508
2026-10-08 10:29:23 +02:00
github-actions[bot] 3e00a42bd2 Update VOUCHED list
https://github.com/juanfont/headscale/issues/3536#issuecomment-6033904453
2026-10-07 10:33:33 +02:00
github-actions[bot] 6d2fa015c4 Update VOUCHED list
https://github.com/juanfont/headscale/issues/3510#issuecomment-5890061652
2026-09-29 18:25:29 +02:00
Kristoffer Dalby 99cbba7aff .github: run the version bump daily
AGENTS.md says the tool "opens one pull request a day", but the workflow
only had workflow_dispatch, so since it merged it has run zero times.
2026-09-28 11:56:25 +02:00