Repository navigation
feat: batch 2026-07-16 — deported agents, SSH tunnels everywhere, incident comments, OAuth self-revocation, and a critical secrets-leak fix - #145
Merged
Conversation
… from stale recovery clock
…m stale recovery clock
The re-arm was justified with a worker->server clock-skew scenario that the architecture cannot produce: result.PeriodStart is never worker-supplied (SubmitResultRequest carries no timestamp) and every production path stamps it with time.Now() in the same process that then calls ProcessCheckResult. For reopens the floor is LastReopenedAt = s.clock.Now(), the same clock as the recovery clock. The re-arm is still load-bearing, for the reason recorded alongside it: an incident already open when this ships carries a clock the clear-on-open never ran for, which the read-side guard would reject forever and a nil-only write side would never replace. That is what makes the no-backfill decision sound. No logic change.
… from stale recovery clock
…from stale recovery clock
Drives ProcessCheckResult against an injected fake clock (no sleeps, no wall-clock dependence) over open -> success -> resolve -> open again -> success, on both the per-check and group paths. Each of the five regression tests fails against the pre-fix state machine; the no-regression guards (single-incident recovery, recovery=0) pass on both.
…cess from stale recovery clock
An incident could auto-resolve on its very first success, ignoring the configured recovery period, because check.first_success_since_failure_at survived from a previous incident: it was only ever cleared by a failure arriving while an incident was already open. Three changes make the clock incident-scoped: - deriveIncidentClocks clears it on the failure branch that opens (or reopens) an incident, making it symmetric with FirstFailureAt. - A success re-arms a clock that predates the incident's onset instead of honoring it, so rows already carrying a stale value self-heal. - recoveryElapsed takes the incident and ignores any clock older than its onset (LastReopenedAt, else StartedAt) — per-check and group paths alike.
… asymmetrically sealed credentials
…ket with asymmetrically sealed credentials
…th nonce replay cache
…revoke) and private regions in the picker
…with asymmetrically sealed credentials
…n-process save/incident/release path
…coped agent claims
…ship change, and needs-reseal flag
…, and WS integration tests
…failure job error
…ILE koanf collision
… an SSH tunnel — the classic bastion use cases (databases, queues) cannot
…ant when their work is done
…holder + preserve on save
… (region-allocated SSH check, sealed dispatch)
… SSH tunnel — the classic bastion use cases (databases, queues) cannot
…rough an SSH tunnel — the classic bastion use cases (databases, queues) cannot
…he API when encryption at rest is disabled
…I when encryption at rest is disabled
…-allocated SSH check, sealed dispatch)
…ts (validated+shown from public config)
…gion-allocated SSH check, sealed dispatch)
…ion-allocated SSH check, sealed dispatch)
…ess_token cookie The dashboard's live hint WebSocket authenticated its handshake solely with the same-origin access_token cookie. Cookies ignore ports, so any other app on the same host (observed: iss=realassets on localhost) can plant its own access_token cookie that shadows ours — the handshake then 401s forever while REST, which uses the Authorization header, keeps working, and the client reconnect-loops without ever recovering. The SPA now offers ["bearer.<jwt>", "solidping.v2"] as WebSocket subprotocols (browsers cannot set an Authorization header on an upgrade); the server reads the token from the bearer.* entry and negotiates the plain solidping.v2 back. Precedence: Authorization header > bearer subprotocol > cookie (kept as a fallback for cookie-based clients). The socket now uses the exact token the REST client uses, so the two can never disagree. Rejected handshakes are now logged (error code, offered transports, and the token's unverified iss — which is what identified the foreign cookie). Co-Authored-By: Claude Fable 5 <[email protected]>
fclairamb
marked this pull request as ready for review
July 18, 2026 23:12
fclairamb
enabled auto-merge (squash)
July 18, 2026 23:13
Merged
fclairamb
added a commit
that referenced
this pull request
Jul 19, 2026
🤖 I have created a release *beep* *boop* --- ## [0.5.0](v0.4.1...v0.5.0) (2026-07-19) ### Features * batch 2026-07-16 — deported agents, SSH tunnels everywhere, incident comments, OAuth self-revocation, and a critical secrets-leak fix ([#145](#145)) ([994bc85](994bc85)) * batch 2026-07-19 — escalation org default + assignment picker, migration consolidation ([#148](#148)) ([bb585a8](bb585a8)) ### Bug Fixes * **deps:** update dependency docusaurus-plugin-llms to ^0.5.0 ([#147](#147)) ([1d30a78](1d30a78)) * **deps:** update go dependencies (non-major) ([#139](#139)) ([6906133](6906133)) * **deps:** update module github.com/go-ldap/ldap/v3 to v3.4.14 ([#141](#141)) ([b7166d6](b7166d6)) * **deps:** update module github.com/gosnmp/gosnmp to v1.44.0 ([#144](#144)) ([a1c5897](a1c5897)) * open v3 plaintext envelopes before the enabled-gate in sshtunnel and freebox resolvers ([#149](#149)) ([4223bdb](4223bdb)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This was referenced Sep 8, 2026
Closed
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Batch integration of two
/implement-todosruns onbatch/2026-07-16— 12 specs, eachimplemented on the batch branch, gated by an independent completeness audit, and archived to
specs/done/2026/07/. A curated## Unreleasedsection has been added toCHANGELOG.md.With
SP_ENCRYPTION_MASTER_KEYunset,GET/LISTresponses on checks and integrationconnections returned secrets (SSH private keys, HTTP basic-auth passwords, connection tokens)
in plaintext to any org member, including
viewers. Two real-looking credentials were foundexposed this way on the dev instance during this work. The fix makes secret/public config
separation unconditional in every storage mode. If you run with encryption disabled, rotate
any check/integration credentials configured before this deploys.
Features
Private locations (deported agents) — monitor infrastructure with no inbound access by
⚠️ Breaking: the unused HTTP edge-worker API, plaintext
running an agent inside your own network. Single-use
spe_enrollment token, agent-generatedkeys, outbound-only WebSocket, Ed25519 reconnect signatures, region-sealed credentials (age
X25519). Registering an agent is now a guided wizard (pick/create region → mint token →
copy-paste
docker run/compose/Kubernetes snippets → live wait-for-connection), not a baretoken. The agent itself now proactively reconnects with backoff, pings for liveness, and fails
in-flight requests fast on disconnect instead of silently going dark or blocking 30s.
spw_worker tokens, and theworkers.tokencolumn are removed.SSH tunnels — now 18 check types, and works on deported agents — extended from
http/tcponly to databases (postgres, mysql, mssql, oracle), brokers (redis, mongodb, rabbitmq, kafka),
and more (smtp, imap, pop3, ssl, grpc, websocket, ftp, mqtt). The SSH/SFTP check form now exposes
the private-key and host-key-fingerprint fields directly. Tunnels now also work when the
dependent check is dispatched to a deported agent — the bastion's sealed credentials ship to
the agent verbatim (never re-encrypted, never exposed to the server on this path); the
referenced SSH check must be allocated to the dependent's private region(s). Plus UX polish:
deep-linked empty state, clearer disabled-option copy, a "via
<bastion>" list indicator.Incident comments — comment from the incident page, or reply in the Slack thread SolidPing
posted for the incident and it's ingested back as a comment (reverse thread lookup), with
retry-safe dedupe.
OAuth/MCP grant self-revocation — a standards-compliant RFC 7009
POST /api/v1/oauth/revoke,a bearer-only
DELETE /api/v1/auth/tokens/currentfor clients without their refresh token,isCurrentmarking on the token list, andsp auth logoutrevoking server-side before clearinglocal credentials.
Server — unrecognized
SP_*env vars now warn at startup instead of failing silently.Bug Fixes
migration of pre-existing leaky rows, defense-in-depth read redaction, and a tripwire test over
every checker's declared secret fields.
half of the config; secrets are now decrypted and merged at the claim boundary, and a job whose
envelope can't be opened is dropped + reported as an explicit error rather than silently
executed credential-less.
secret-declared values are now redacted.
basicAuthkey insteadof a cleartext username in the public config.
config.username/config.passworddirectly (lazy migration, no backfill).recovery clock shared across consecutive incidents — now scoped to the incident it resolves.
pressure; now batched into a single query, and the retry policy honors
Retry-Afteron429.Paired with raised default rate-limit ceilings so normal dashboard use never 429s.
in-flight requests on a dead connection; see Features above.
shadow (browsers ignore ports); now authenticates the same way REST does, via a bearer token
carried as a WS subprotocol.
QA
make build-backend lint-back test; dash0 build + lint (no newerrors); unit + Playwright E2E per surface touched.
make lint-backis green (0 issues).gapson the first pass and went through a fix round before clearing, which is how real issueswere caught on code whose build/lint/test were already green (e.g. a 5s blocking close-handshake
masking the half-open reconnect fix; the secrets-leak spec's own tripwire heuristic gaps).
self-revocation) were audited with security-review rigor: negative controls, black-box
wire-protocol proofs that private config never crosses to agents, and claim-time
re-verification of eligibility rather than trust in validation-time state.
origin/mainmerged in twice (Renovate's gosnmp bump;go.sumregenerated withgo mod tidy)./git-past(daytime commits shifted to 19:47, content unchanged— verified via
git diffagainst a pre-rewrite backup tag).Follow-ups (deliberately not in this batch)
(flagged separately, out of scope for a code change).
🤖 Generated with Claude Code