tailscale/k8s-operator
David Bond e4ea65d32d
cmd/k8s-operator: workload identity support for multi-tailnet (#20016)
This commit modifies the reconciler for the `Tailnet` custom resource
to allow referenced secrets to specify an `audience` field. If a
referenced secret contains both an `audience` and `client_id` we assume
the user's intention is to use workload identity.

In that case, we configure the tailscale API client to authenticate
using the Kubernetes token request API against the operator's service
account. This requires the operator to be aware of its own service
account name.

A small change has also been made to the messages added to the `Tailnet`
CRD's status field in the even that it is missing scopes to make it
clearer that certain scopes may not be applied.

Closes: #19090
Updates: #19471

Signed-off-by: David Bond <davidsbond93@gmail.com>
2026-06-10 10:22:19 +01:00
..
api-proxy net/netutil: add NewDefaultTransport to avoid http.DefaultTransport panics 2026-06-01 12:28:36 -07:00
apis cmd/k8s-operator: workload identity support for multi-tailnet (#20016) 2026-06-10 10:22:19 +01:00
reconciler cmd/k8s-operator: workload identity support for multi-tailnet (#20016) 2026-06-10 10:22:19 +01:00
sessionrecording k8s-operator/sessionrecording/ws: unify Read/Write frame parsing (#19227) 2026-04-07 15:59:10 -04:00
tsclient cmd/k8s-operator: migrate to tailscale-client-go-v2 (#19010) 2026-04-09 14:39:46 +01:00
api-docs-config.yaml all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
api.md cmd/k8s-operator: workload identity support for multi-tailnet (#20016) 2026-06-10 10:22:19 +01:00
conditions_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
conditions.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
utils_test.go cmd/k8s-operator: truncate long label values in metrics resources (#18895) 2026-04-28 14:11:59 +01:00
utils.go cmd/k8s-operator: truncate long label values in metrics resources (#18895) 2026-04-28 14:11:59 +01:00