Skip to content

[TASK] Refactor remove SPIFFE and simplify daemon-to-daemon connections #1635

Closed

Description

@edenreich

Summary

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

  1. added
    refactor
    on Oct 29, 2026
  2. added theissue type on Oct 29, 2026
  3. moved this from Todo to In progress in 2026on Oct 29, 2026
  4. moved this from In progress to QA in 2026on Oct 29, 2026
  5. added a commit that references this issue on Oct 30, 2026
    ea53ee6
  6. moved this from QA to Done in 2026on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactor

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions