Repository navigation
switchboard v0.5.1
go install github.com/go-steer/switchboard/cmd/switchboard@v0.5.1docker pull ghcr.io/go-steer/switchboard:0.5.1The 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.5.1 \
--certificate-identity-regexp '^https://github.com/go-steer/switchboard' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comA fix release for the Google Chat buttons v0.5.0 introduced. The HTTP ingress
they depend on cannot receive an event in v0.5.0: the first event of the first
live session failed to decode, and since Chat's HTTP delivery writes every
number as a float, no event can. This release fixes that and two more defects
found in the same session. Every HTTP fixture had been hand-written, and the
test daemon enforced no session ACL, so none of the three could show up in CI.
Upgrade if you run --googlechat-ingress http. Chat's HTTP delivery
writes every number as a float, and v0.5.0's decoder rejected the whole event
on the first one. Numbers are now normalized before decoding. Pub/Sub traffic
is untouched.
Upgrade if you run --approvals against a daemon that enforces session
ACLs, on either platform. The prompt stream was read without an asserted
caller, the daemon answered with its disguised 404, and switchboard stopped
watching for prompts after the first try. The turn then waited at the daemon
with no question in the thread. A related case remains open (#106). A press
from an approver who is not the session's owner gets the same disguised 404,
which is read as "answered elsewhere" while the turn stays parked.
Treat any log written with --googlechat-log-events as sensitive. The flag
logged each event verbatim:
- An HTTP event carries the sender's live OAuth access token and two ID tokens.
These expire within the hour. - Events on either ingress can carry a
configCompleteRedirectUritoken. - A legacy-dialect event carries the app's verification
token, a standing
credential.
Credentials are now redacted before logging.
The button flow itself is now verified live: a mode button and an approval
both arrived as clicks, and each card was edited in place by the click's own
response. Nothing else changes, and there are no new flags.
Fixed
- Permission prompts reach the thread on a daemon that enforces session
ACLs. The prompt stream was opened with no asserted caller, as the relay's
own credential, which core-agent's ACL does not let read another caller's
session; it answers that with the same404a missing session gets, and
switchboard gave up on the session's prompts for good on the first try
(ERROR … giving up on permission prompts). The turn then sat parked at the
daemon with nothing in the thread to press. The stream is now read as the
caller who opened the session — the identity the event relay already
subscribes as. Found live on Google Chat, where it was the last thing between
--approvalsand a working button. --googlechat-log-eventsno longer writes credentials into the log. An
event on the HTTP ingress carries the sender's live OAuth access token and
two Google-signed ID tokens inauthorizationEventObject, and the flag
logged the payload verbatim — so the debugging aid that exists to capture
fixtures put a bearer token for the person typing into whatever collects the
log. Those values, the legacy dialect's verificationtokenand the
configCompleteRedirectUritoken are nowREDACTED, keys kept, the rest of
the payload byte-for-byte apart from whitespace, and a payload that does not parse is
redacted too.- The Google Chat HTTP ingress decodes real events again; in v0.5.0 it
dropped every one. Chat's HTTP delivery spells every number as a float
("offset": -3.6E6,"startIndex": 0.0,"commandId": 1.0) and the
generatedchat/v1types refuse a float in an int64 field, so each event
failed decode with anERROR … decode eventline and got no reply,
whatever kind it was. OnlyappCommandIdhad been made
float-tolerant, and every fixture was written with ints. Numbers are now
normalized before decoding; Pub/Sub payloads, which already send ints, are
left byte-for-byte as they were. Found on the first live HTTP event, which is
now a fixture.
Full diff: v0.5.0...v0.5.1