Skip to content

fix(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

Merged
fclairamb merged 24 commits into
mainfrom
security/scan-specs-2026-11-12
Nov 12, 2026
Merged

fclairamb merged 24 commits into
mainfrom
security/scan-specs-2026-11-12

Conversation

@fclairamb

@fclairamb fclairamb commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

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

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.

@codecov

codecov Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.66667% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.34%. Comparing base (1b68d2a) to head (26b20db).

Files with missing lines Patch % Lines
server/internal/checkers/checkhttp/checker.go 82.75% 5 Missing ⚠️
server/internal/checkers/checkjs/checker.go 81.81% 4 Missing ⚠️
server/internal/crypto/credentials/sealing.go 92.85% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #851   +/-   ##
=======================================
  Coverage   89.34%   89.34%           
=======================================
  Files        1353     1353           
  Lines      139015   139110   +95     
=======================================
+ Hits       124205   124293   +88     
- Misses      14801    14808    +7     
  Partials        9        9           
Files with missing lines Coverage Δ
server/internal/checkers/checkjs/config/config.go 91.26% <100.00%> (+0.06%) ⬆️
server/internal/crypto/credentials/binding.go 99.54% <100.00%> (+0.03%) ⬆️
server/internal/handlers/checks/browser_sealing.go 91.28% <100.00%> (+0.16%) ⬆️
...nternal/handlers/checks/browser_sealing_handler.go 90.36% <100.00%> (+1.89%) ⬆️
server/internal/handlers/checks/rewrap.go 95.52% <100.00%> (+5.35%) ⬆️
server/internal/rewraptask/executor.go 95.23% <100.00%> (+0.23%) ⬆️
server/pkg/cli/seal.go 93.51% <100.00%> (+0.10%) ⬆️
server/internal/crypto/credentials/sealing.go 88.02% <92.85%> (+0.24%) ⬆️
server/internal/checkers/checkjs/checker.go 81.85% <81.81%> (-0.05%) ⬇️
server/internal/checkers/checkhttp/checker.go 89.08% <82.75%> (-0.58%) ⬇️

... and 20 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

fclairamb and others added 20 commits November 12, 2026 08:10
…lugin types to every public key

Security scan finding AK2 (spec 2026-11-12-02). The target binding of
browser-sealed secrets covered only `script` for JS checks and the default
address keys for plugin types, so changing `env.BASE_URL` or a plugin's
`target` key sent the sealed secrets elsewhere with an unchanged digest.

- JSConfig.TargetFields() now returns script and env.
- A type that declares no target list (plugins, a type unknown to the
  agent) binds the wildcard `*`: every public config key but `timeout`.
  GET /check-types publishes ["*", "tunnelCheckUid"] for them.
- An empty object (`env: {}`) canonicalises as an absent field, so a JS
  blob sealed without env keeps its digest.
- sealedSecrets gains an optional `targetFields` (the list the client
  digested over), stored on the envelope. The Re-seal page lists as
  "unbound" a bound blob whose recorded (or pre-AK2) list gives another
  digest than the current one.

Release note: JS checks with a non-empty env and plugin checks sealed in
the browser before this release are refused by the agents ("type them
again") and listed on the Re-seal page; type their secrets again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rver, record the bound target list

Spec 2026-11-12-02.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… plugin types are not bound to where they are sent

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mark them as agent blobs

The re-wrap executor and its confirmation now apply the secret-fields rule
whatever the blob's origin. A peer re-wrap of a server blob is stored with
origin agent, and the claim applies the strict-keys rule to agent blobs as
to browser blobs. The per-claim blob of a system agent keeps origin server
and its ${param:} overlay of public fields.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…can still inject public config keys

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Mark the kubeconfig textarea, webhook URL input, revealed server sign-in
provider secrets, the mail/email-inbox password reveal and the HTTP secret
header value with data-secret-input. New ESLint rule require-secret-input
flags credential-named Input/Textarea without the marker.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…unmasked dash0 session replay

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
GET accepts checkUid (check kept as alias).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…uery per listed check, uncapped

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Also applied to the js check's http binding (headers carrying a secrets.* value). Dropped header names are reported in redirect_dropped_secret_headers.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… to the host a redirect points to

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@fclairamb fclairamb added the implemented Every spec of the PR is implemented and its batch gate was green label Nov 12, 2026
@fclairamb

Copy link
Copy Markdown
Owner Author

autopilot: CodeQL go/allocation-size-overflow (binding.go:135) fixed by dropping the sum-based capacity; thread resolved.

@fclairamb
fclairamb merged commit 32fd560 into main Nov 12, 2026
36 checks passed
@fclairamb
fclairamb deleted the security/scan-specs-2026-11-12 branch November 12, 2026 08:53
fclairamb added a commit that referenced this pull request Nov 12, 2026
🤖 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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge autopilot autorelease implemented Every spec of the PR is implemented and its batch gate was green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants