You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[TASK] Refactor remove SPIFFE and simplify daemon-to-daemon connections #1635
SPIFFE, added with the session transfers, is a second identity for daemon-to-daemon mTLS next to the daemon CA (binding.tls.mode: spiffe, environments[].auth: spiffe). It costs the go-spiffe dependency, a Workload API client, two config surfaces and half of the session-transfer example (a SPIRE server, agent and CSI driver). It only shipped in release candidates.
Teams that want network identity between machines can get it from a VPN like Tailscale instead: WireGuard encrypts the tunnel, node keys and tags identify the machines, workload identity federation joins pods and CI jobs without static keys, grants decide who may reach the binding, and tailscale serve terminates HTTPS with a real *.ts.net certificate. None of that needs code in the CLI.
So remove SPIFFE and make a standalone daemon peer simpler to reach: without tls.ca_file it verifies against the system trust store, so a daemon behind tailscale serve needs only an address and a token. Kubernetes environments keep the daemon CA over port-forward, which never needed SPIRE. forward_env still needs the peer daemon to terminate TLS itself (files or ca), because the credentials are sealed to a key the daemon holds.
Acceptance Criteria
binding.tls.mode: spiffe, environments[].auth, the spiffe blocks and go-spiffe are gone, and binding.tls.mode: spiffe fails validation
Kubernetes environments always authenticate with the daemon CA
A kind: daemon environment without tls.ca_file dials TLS against the system roots
The depguard rule, import aliases, docs and the session-transfer example no longer mention SPIFFE or SPIRE
docs/daemon.md shows a daemon peer reached over a tailnet with tailscale serve
Activity
refactor(daemon): remove SPIFFE and simplify daemon-to-daemon connect…