Repository navigation
switchboard v0.8.0
go install github.com/go-steer/switchboard/cmd/switchboard@v0.8.0docker pull ghcr.io/go-steer/switchboard:0.8.0The module version keeps its v and the image tag does not.
The image is multi-arch (amd64 + arm64), distroless
(gcr.io/distroless/static-debian12:nonroot, no shell, no package manager)
and signed with Sigstore keyless:
cosign verify ghcr.io/go-steer/switchboard:0.8.0 \
--certificate-identity-regexp '^https://github.com/go-steer/switchboard' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comA release about managing agents without restarting the gateway, and about
switchboard proving who it is. v0.7.0 put several agents behind one chat app,
fixed in a config file. v0.8.0 lets an operator add, replace and remove them
at runtime. It also lays the groundwork for doing that without a shared
secret per agent.
An admin API. --admin-addr serves /v1/agents, /v1/defaults and
/v1/channels. Callers authenticate through
purser: OIDC for people, mTLS for
automation, or a token on loopback for a laptop. Every request needs an admin
named by --admin-allow. What the config file declares stays pinned. A
change that would leave a channel unable to start a thread is refused.
Changes survive a restart under --state-dir, and every change is audited
with who made it.
switchboard can authenticate as itself. Instead of a bearer token per
agent, the gateway can present one workload identity: a SPIFFE SVID, as GKE
managed workload identity delivers it, or a certificate from a standard CA.
Each agent entry then names how it is reached. A daemon has to accept mTLS
for this to be used; core-agent's support is go-steer/core-agent#1313, and
until it lands agents stay on bearer tokens.
The daemon clients follow no redirects. A 3xx used to be followed, and
net/http resends the bearer token on a same-host hop, https to http
included. The image is built with Go 1.26.10, for a crypto/x509 advisory
reachable from switchboard.
Upgrading needs no flag change: everything new is off until configured. One
thing can stop a config that used to load. An agent's daemon_url must now
be a bare http(s)://host[:port], with no path, query or user info, because
the contract's paths are appended to it. A daemon that answers with a
redirect now fails the call instead of being followed.
Added
- An admin API for agents (#157,
--admin-addr). It adds, replaces and
removes agents, moves the global default, and sets a channel's default
agent and allow list, all at runtime with no restart.- Authentication is by purser: OIDC for people (
--admin-oidc-issuer,
--admin-oidc-audience), mTLS over the gateway's own identity for
automation, or a static token on loopback only. - Admins are named by
--admin-allow(email:,domain:,id:).
Every request, reads included, needs one. Email grants match only a
verified email. - OIDC off loopback needs TLS (
--admin-tls-cert-file,
--admin-tls-key-file). - A runtime agent's
token_envmust start with
--admin-token-env-prefix(defaultSWITCHBOARD_AGENT_TOKEN_), so an
admin can't point the gateway's own secrets at a server of their choosing.
daemon_urlmust be a barehttp(s)://host[:port], for config agents
too. - What the config declares is pinned (
409). A change that would
break something is refused (422), and a channel's runtime settings
can narrow it but not widen it past the config's defaults. - Changes are saved in
registry.jsonunder--state-dir, and every
change is anadminaudit record naming who made it.
- Authentication is by purser: OIDC for people (
- switchboard can authenticate to an agent as itself (#158,
docs/agent-identity.md). Instead of a bearer token per agent, the gateway
presents one workload identity through
purser's client half, and an agent
entry namesauthinstead oftoken_env.--identity spiffe-filesreads an SVID from files, as GKE managed
workload identity delivers it (--spiffe-dir,
--spiffe-trust-domain).--identity spiffe-workload-apireads one from a SPIFFE Workload API
socket (SPIRE).--identity pkiuses a certificate from a standard CA.auth.methodspifferequires the daemon to presentserver_id;pki
verifies it against the CA, with an optionalserver_name.- A certificate method needs an https URL, and sends no bearer token.
- The gateway's certificate rotates without a restart; the CA file is
read once. - Existing
token_enventries are unchanged. - It needs a daemon that accepts mTLS; core-agent's support is
go-steer/core-agent#1313. pkg/daemon.ConfiggainsMutualTLS: the HTTP client authenticates, and
noAuthorizationheader is sent.
Security
- Go 1.26.10 for GO-2026-6809 (
crypto/x509now distrusts compromised
intermediate certificates), which govulncheck reports as reachable from
switchboard under 1.26.9. Thegodirective, which the release image
builds with, and the Dockerfile's defaultGO_VERSIONboth move to 1.26.10. - The daemon and approval clients follow no redirects. A 3xx from a
daemon was followed. net/http keeps theAuthorizationheader on a
same-host hop, including https to http, so the bearer token, the asserted
caller and the message could go to wherever it pointed. The contract has
no redirects, so a 3xx is now an error (daemon.NoRedirects). - gRPC v1.83.2 for GO-2026-6443, now that the SPIFFE Workload API client
uses it directly.
Full diff: v0.7.0...v0.8.0