GitOps source of truth for the taila659a.ts.net tailnet policy file.
policy.hujson is the tailnet ACL. The Tailnet workflow tests it on pull
requests and applies it to Tailscale on push to main, using
tailscale/gitops-acl-action
with workload identity federation — no long-lived API key or OAuth secret is
stored in GitHub.
-
Export the current policy from the admin console over
policy.hujson.applyoverwrites control unconditionally, so shipping an unverified file replaces the live ACL. -
Create a federated identity with the
policy_filescope in keys settings and bind it to this repository's issuer. -
Set the repository variables:
Variable Value TAILSCALE_TAILNETtailnet name from the admin console TAILSCALE_OAUTH_CLIENT_IDfederated identity client ID TAILSCALE_AUDIENCEfederated identity audience
direnv allow (or nix develop) enters the devenv shell. Workflows and
.gitignore are generated from flake.nix on shell entry — edit the flake, not
the generated files. Run nix fmt before shipping.
policy.hujson— tailnet ACL, tag owners, SSH rules, and policy testsflake.nix— devenv shell and the generatedTailnetworkflow