Skip to content

fix(security): keep shown-once secrets out of dash0 session replay - #839

Merged
fclairamb merged 9 commits into
mainfrom
fix/ghsa-c9qq-4m99-c7f6
Nov 11, 2026
Merged

fclairamb merged 9 commits into
mainfrom
fix/ghsa-c9qq-4m99-c7f6

Conversation

@fclairamb

@fclairamb fclairamb commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Spec: specs/done/2026/11/2026-11-11-05-keep-shown-once-secrets-out-of-session-replay.md

Severity: High

Advisory: GHSA-c9qq-4m99-c7f6

What changed

  • New SecretText primitive (ph-no-capture + data-secret-text); the region key dialog, its identity and env line go through it.
  • All other shown-once secrets blocked from PostHog replay/autocapture: PAT, TOTP secret and QR, recovery codes, enrollment tokens and docker command, webhook/subscriber secrets, Teams link code, status page TV token, every PasswordInput, Slack/JWT token inputs, data-secret-input fields.
  • Session recording is paused while the region key dialog is open (pauseSessionRecording/resumeSessionRecording, nested).
  • ESLint rule require-secret-text guards new secret-looking <code>/<pre>.
  • Docs tell admins to rotate region keys generated in dash0 on v0.47.0; a dismissible notice (en/fr/de/es) is shown for shared keys created before 2026-11-18 (REGION_KEY_ADVISORY_CUTOFF, a guess: adjust if the fix ships later).
  • Playwright test with a stub PostHog checks the key never reaches session replay.

Decided by autopilot

  • No open questions in the spec. CHANGELOG.md not edited (release-please owns it): the Security note is in commit 83eff9f; add it when polishing the release PR.

Batch gate: green (Go 278 packages, 2888 unit tests, Playwright 1008 passed, 3 flaky passed on retry).

🤖 Generated with Claude Code

fclairamb and others added 5 commits November 11, 2026 07:28
Part of GHSA-c9qq-4m99-c7f6 (spec 2026-11-11-05).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The region key dialog renders the age identity and the SP_AGENT_REGION_KEYS
line through SecretText, the whole dialog carries ph-no-capture, and session
recording is paused while it is open (GHSA-c9qq-4m99-c7f6).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PAT creation, TOTP secret and recovery codes, enrollment tokens and their
run snippets, webhook and subscriber signing secrets, the Teams link code
and the status page TV token now render through SecretText (or carry
ph-no-capture). Inputs marked data-secret-input, password inputs (which
can be revealed) and the revealable server secrets are blocked too. A new
ESLint rule, secret-local/require-secret-text, flags a <code>/<pre> that
renders a secret-named value outside SecretText (GHSA-c9qq-4m99-c7f6).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…m99-c7f6 fix

A shared region key created before the fix gets a dismissible notice on the
private locations page, and the browser-sealed secrets docs tell admins who
generated a region key in dash0 on v0.47.0 to rotate it.

Security (release note): region keys generated in the dashboard on v0.47.0
could be recorded by PostHog session replay. Rotate them: generate a new key,
give it to the agents, re-seal, remove the old key.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@codecov

codecov Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.24%. Comparing base (3d1f6ac) to head (dbf0754).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #839      +/-   ##
==========================================
- Coverage   89.26%   89.24%   -0.03%     
==========================================
  Files        1346     1346              
  Lines      137974   137974              
==========================================
- Hits       123164   123131      -33     
- Misses      14801    14834      +33     
  Partials        9        9              

see 19 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 3 commits November 11, 2026 07:51
A stand-in PostHog project (api_host /ph-stub) serves the real posthog-js
recorder and decodes every capture body, rrweb snapshots inflated. The
generated identity never appears in any snapshot or event; the paste dialog
title does, so the stub really records. Fails on v0.47.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…and every shown-once secret, out of session replay and autocapture

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eplay

Security release note (GHSA-c9qq-4m99-c7f6): not in CHANGELOG.md, release-please owns it; to add when polishing the release PR.
@fclairamb
fclairamb merged commit 9bb8e8b into main Nov 11, 2026
38 checks passed
@fclairamb
fclairamb deleted the fix/ghsa-c9qq-4m99-c7f6 branch November 11, 2026 08:58
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant