Narrow tag:ci Tailscale SSH ACL to deploy user only #49
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally filed by @coilysiren on 2026-05-18T01:37:58Z - https://github.com/coilysiren/infrastructure/issues/179
Problem
Current tailnet ACL grants
tag:ciTailscale SSH access totag:serverasautogroup:nonrootORroot:A CI workflow that gets a federated-identity token (anyone with main-push rights to a repo in
repos.yaml) cantailscale ssh root@kai-serverand own the host. The narrowdeploy-user sudoers (/etc/sudoers.d/deploy-k3sallows onlyk3s ctr ... images import -) is irrelevant when SSH-as-root is in scope.Plan
Split the SSH stanza in
terraform/tailscale-oidc/main.tfinto two rules:Requires the
deployuser to exist on kai-server with a kubeconfig and narrow sudoers - that's already on the kai-server prereq list under #177.Related
subjectfromrepo:<>:ref:refs/heads/maintojob_workflow_ref:<>/.github/workflows/deploy.yml@refs/heads/mainto pin which workflow file can mint a token.