Repository navigation
fix(security): bind sealed secrets to their target, verify peer re-wraps, drop deleted regions' keys, TLS-only agent server URL - #840
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #840 +/- ##
==========================================
+ Coverage 89.26% 89.31% +0.05%
==========================================
Files 1346 1351 +5
Lines 137974 138731 +757
==========================================
+ Hits 123164 123914 +750
- Misses 14801 14808 +7
Partials 9 9
🚀 New features to boost your workflow:
|
The sealed plaintext now carries a reserved _binding object: the check type and a SHA-256 digest of the type's target fields (url, host, port, database, tunnel...). The agent recomputes the digest from the job's config and refuses a blob sealed for another target, or one carrying a key that is not a secret field of the type. The server answers 409 SEALED_TARGET_CHANGED when a PATCH, an import or an apply moves the target of a browser-sealed check without new secrets. solidping seal now requires --type and --config-json. Legacy unbound browser blobs still run, with a warning, and are listed on the Re-seal page (reason unbound). Spec: specs/todos/2026-11-11-01-bind-sealed-secrets-to-check-target.md Co-Authored-By: Claude Opus 5.5 <[email protected]>
The check form seals a _binding (type and target digest) next to the secrets, opens the secret inputs when a target field of a sealed check changes, and refuses to save the new target without them. The Re-seal page lists unbound blobs. Docs: binding, threat model, solidping seal flags. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A re-wrap now carries a random challenge sealed to the one key the agent was picked for (its own, or a region key, current or retired); the server keeps only its hash and refuses a result without it. A passed result is sent to a second online agent holding a current key (rewrap_verify task), which opens it, checks it carries only secret fields of the type (and the old plaintext when it can open the old blob) before the swap. With no second holder, the blob is stored marked unconfirmed and the check stays flagged (Re-seal page reason 'unconfirmed', outcome code not_confirmed). The re-wrap executor also refuses a plaintext that is not only secret fields (REWRAP_NOT_SECRET). Rotated or removed region keys are kept in sealing.retired_region_keys. Spec 2026-11-11-02. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…on key An X25519 key equal to another live agent's key, or to a region key of the org (current or retired), is refused with an error frame before the token is consumed: an agent that registers a copied public key would be picked for blobs it cannot open (spec 2026-11-11-02). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…challenge The Re-seal page lists a check re-sealed without a second agent's confirmation (reason unconfirmed), the re-seal button reports it apart from the done ones, and the new refusal codes have their messages. The location page counts unconfirmed blobs as needing a re-seal. Only agents that run the confirmation (0.48+) are picked to re-wrap, since older ones cannot answer the challenge. The peer re-wrap E2E now runs a second agent to confirm. Co-Authored-By: Claude Opus 5.5 <[email protected]>
BindingCheckFor moves to configregistry so the sp CLI (which links rewraptask) never links a checker implementation. The peer re-wrap E2E passes --type and --config-json to solidping seal, required since the target binding. Unit tests for the challenge and the unconfirmed flag. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… its own word, and its result is stored unchecked Co-Authored-By: Claude Opus 5.5 <[email protected]>
Deleting a private region now drops and retires its shared region key (audit region_key_removed, reason region_deleted). RegionKeys ignores keys of regions that do not exist, and creating a region clears any stale key for its slug. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ared region key behind Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…CURE_SERVER With the override, a warning is logged at every start and peer re-wrap is off unless SP_AGENT_REWRAP_ENABLED=true. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…over plain HTTP Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… allocation may overflow' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…into wt/security/scan-specs-2026-11-11
…s-2026-11-11 # Conflicts: # web/dash0/e2e/browser-sealed-secrets.spec.ts
|
autopilot: merged main in (one e2e spec conflict, both tests kept). CodeQL alerts 126/127 (allocation size overflow in KnownRegionRecipients): the overflow guard wasn't recognised, so I dropped the computed map capacity hint; threads resolved. |
|
autopilot: merged main in (behind). The two go/allocation-size-overflow alerts (126, 127) are on an older commit; dc84ba9 already dropped the computed capacity hint, so they should clear at the next analysis. |
…ion keys, seal CLI Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
autopilot: added tests for the uncovered lines (rewraptask, credentials, sealing, cli seal, region keys, agentmode, configregistry); ~92.7% patch coverage measured locally vs 87% target. |
…into wt/security/scan-specs-2026-11-11
…nnection Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…eplay masking of remaining secret inputs, rewrap list cap, secret headers on redirects (#851) Specs from the security scan of 2026-11-12. All five specs are implemented and archived; each has a regression test plus a positive control. Batch gate green (build, lint, Go tests, dash0 typecheck, lint, unit tests; Playwright not run, no E2E touched). | Spec | Severity | Finding | What it fixes | |---|---|---|---| | `specs/todos/2026-11-12-02-bind-js-env-and-plugin-configs.md` | Medium | AK2 | The target binding of browser-sealed secrets also covers a JS check's `env`, and every key of a plugin type (#840 bypass, unreleased). | | `specs/todos/2026-11-12-03-rewrap-strict-keys-for-server-sealed-blobs.md` | Medium | AK3 | A peer re-wrap refuses non-secret keys for server-sealed blobs too, and agent-produced blobs are checked at claim. | | `specs/todos/2026-11-12-04-replay-masking-remaining-secret-inputs.md` | Medium | AK4 | The kubeconfig, webhook URL and revealed provider-secret inputs are kept out of the dash0 session replay. | | `specs/todos/2026-11-12-05-cap-rewrap-check-list.md` | Low | AK5 | The sealing re-wrap endpoints cap and dedup their check list. | | `specs/todos/2026-11-12-06-http-secret-headers-cross-host-redirect.md` | Low | AK6 | HTTP checks stop resending secret headers to another host on a redirect. | 🤖 Generated with [Claude Code](https://claude.com/claude-code) ## Decided by autopilot - No open questions in the specs. Spec 05: the repo's validation error is 422, not the 400 the spec says. `CHANGELOG.md` left to release-please (notes are in commit bodies). - Breaking for existing data: browser-sealed JS checks with a non-empty `env` and plugin checks sealed earlier must be sealed again (Re-seal page lists them). - Unrelated flake fixed in the gate: discord gateway fake double close. --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
🤖 I have created a release *beep* *boop* --- ## [0.48.0](v0.47.0...v0.48.0) (2026-11-12) ### Features * lease sizing, Telegram sign-in and four small fixes (2026-11-11 issues) ([#848](#848)) ([9972dde](9972dde)) * **notifications:** SMS Factor integration ([#846](#846)) ([1b68d2a](1b68d2a)) ### Bug Fixes * **deps:** update github.com/dop251/goja digest to f493a2b ([#842](#842)) ([dba208b](dba208b)) * **deps:** update go dependencies (non-major) ([#844](#844)) ([621d492](621d492)) * **deps:** update go dependencies (non-major) ([#847](#847)) ([4bb06f7](4bb06f7)) * **security:** bind JS env and plugin configs, strict re-wrap keys, replay masking of remaining secret inputs, rewrap list cap, secret headers on redirects ([#851](#851)) ([32fd560](32fd560)) * **security:** bind sealed secrets to their target, verify peer re-wraps, drop deleted regions' keys, TLS-only agent server URL ([#840](#840)) ([4b70e46](4b70e46)) * **security:** keep shown-once secrets out of dash0 session replay ([#839](#839)) ([9bb8e8b](9bb8e8b)) * **security:** require a verified email for GitLab sign-in and stop linking existing accounts by email ([#850](#850)) ([1a0cea9](1a0cea9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Security scan of 2026-11-11 on the browser-sealed check secrets (#834, #835): all four findings are implemented.
What changed
_binding, shared Go/TS digest fixture). The agent refuses a retargeted check or a blob overriding a public field. The server answers 409SEALED_TARGET_CHANGEDon PATCH, apply and import. dash0 reopens the secret inputs on a target edit. Legacy unbound blobs are accepted with a warning and listed on the Re-seal page.rewrap_verify); without a second agent online the blob is stored flaggedunconfirmed. Duplicate agent keys are refused at enrollment. Retired region keys are kept (public part only).SP_AGENT_ALLOW_INSECURE_SERVER=true, which also turns re-wrap off by default.Breaking:
solidping sealnow requires--typeand--config-json; agents older than 0.48 are not picked for re-wrap; anhttp://agent URL to a non-loopback host no longer starts; editing a target field of a sealed check requires the secrets again.client_generated.gonot regenerated (per-batch convention).Decided by autopilot
Gate: build, lint,
make test, dash0 typecheck/lint, Playwright 1011 passed / 0 failed / 15 skipped (SQLite side-car).🤖 Generated with Claude Code