Repository navigation
fix(security): redirect header policy, deleted-org email checks, tokens out of the session replay - #880
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r context The worker collects the values the env/param references of a job's config resolved to (env from the resolver, param read back from the server overlay or, on an agent, from StoredConfig) and hands them to the checker with checkerdef.WithResolvedReferenceValues. Never logged nor serialized. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… reference
HTTP check: a header whose value contains a resolved ${param:}/${env:} value
is dropped on a cross-origin hop and listed in redirect_dropped_secret_headers.
JS check: the resolved values count as secrets for the redirect strip, so a
check with references but no secrets keeps only the generic headers past its
origin (spec 2026-11-15-01, finding AN1).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…hat carry a resolved reference value Co-Authored-By: Claude Opus 5.5 <[email protected]>
…at carry a resolved reference value Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…in redirects Adds checkerdef.CredentialRedirectPolicy: a cross-origin hop (other host or port, or https -> http) gets no Authorization, Proxy-Authorization, Cookie, configured header or Referer; the chain is capped at 10. Dropped names are reported as redirect_dropped_secret_headers. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rigin redirects The handshake client always carries checkerdef.CredentialRedirectPolicy, so a redirect loop now ends after 10 hops instead of running to the timeout. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The URL is built from the configured host, so a redirect is never expected: the redirect response is the result. Documents the redirect rule of the Prometheus, WebSocket and RabbitMQ checks. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ks follow redirects with Go's default header policy Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s follow redirects with Go's default header policy Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #880 +/- ##
==========================================
+ Coverage 90.70% 90.72% +0.01%
==========================================
Files 1365 1368 +3
Lines 140467 140620 +153
==========================================
+ Hits 127413 127576 +163
+ Misses 13045 13035 -10
Partials 9 9
🚀 New features to boost your workflow:
|
…s rejected GetCheckByEmailToken now joins organizations and skips deleted ones, so a token of a deleted org reads as unknown and HandleEmail rejects the mail instead of recording a result and running the incident pipeline there. Before this fix the notification job also dispatched through the deleted org's integrations: lookupOrgIdentity only logs a missing org. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mail checks of a deleted organization Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ail checks of a deleted organization Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…eplay The heartbeat URL, its curl and push commands, the email check address, its mailto link and plus-addressing hint now render under ph-no-capture (SecretText or a blocked container). The checks list drops the title that carried the full email address, and the SMTP check form blocks the delivery address. The endpoint cards move to components/checks/check-endpoints.tsx so they can be unit-tested. secret-local/require-secret-text now follows values derived from a secret (templates, concatenations, call arguments) and reports them rendered in any native element or in a recorded attribute (title, href, aria-label, alt, placeholder). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ddress are recorded by the unmasked session replay Co-Authored-By: Claude Opus 5.5 <[email protected]>
…dress are recorded by the unmasked session replay Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
fclairamb
added a commit
that referenced
this pull request
Nov 15, 2026
🤖 I have created a release *beep* *boop* --- ## [0.50.0](v0.49.3...v0.50.0) (2026-11-15) ### Features * incident insights page and uptime report insights ([#862](#862)) ([e0f9b6a](e0f9b6a)) ### Bug Fixes * batch-gate fixes for check worker wake-up, disable toggle, ui-state order and E2E races ([#885](#885)) ([829f43b](829f43b)) * **deps:** update module github.com/slack-go/slack to v0.36.0 ([#878](#878)) ([a50d878](a50d878)) * free a restarted worker's check leases, quieter status page logs, phone checks menu ([#879](#879)) ([5543a4c](5543a4c)) * **security:** redirect header policy, deleted-org email checks, tokens out of the session replay ([#880](#880)) ([cc8d0a5](cc8d0a5)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
fclairamb
added a commit
that referenced
this pull request
Nov 16, 2026
CheckConfigView renders the config keys the check response lists in redactedConfigKeys (heartbeat/email token, SMTP delivery_to) through SecretText, so the Configuration card no longer leaks the token #880 hid in the endpoints card. Other rows stay readable. The design reference documents the rule (spec 2026-11-16-02). Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Fixes the four Low findings of the security scan of 2026-11-15.
What changed
${param:}/${env:}value (AN1). On a cross-origin redirect, HTTP and JS checks no longer resend a header whose value came from a${param:}or${env:}reference. The header is listed inredirect_dropped_secret_headers, and the value never shows up in the output. The worker records the resolved values on the check context, for both in-process and agent runs. A JS check that uses any reference now keeps only the redirect-safe headers past its origin, as checks withsecretsalready did.checkerdef.CredentialRedirectPolicycaps a redirect chain at 10 hops. On a cross-origin hop or an https→http downgrade, it stripsAuthorization,Proxy-Authorization,Cookie, the configured headers andReferer, and it never resends a request body.GetCheckByEmailTokennow joinsorganizationsand skips deleted ones, on both SQLite and Postgres. Before this fix, such mail recorded results, and notifications also went out through the deleted org's integrations:lookupOrgIdentityonly logs a warning when the org is missing.mailto:link and plus-addressing hint, and the SMTP form's delivery address. The copy buttons still copy the full values.titleattribute.require-secret-textlint rule now catches values derived from a secret.Each fix has a regression test that fails without it, plus a positive control.
Batch gate:
make build-backend, golangci-lint,make test(283 packages),typecheck:e2e,lint:e2eand the full Playwright suite (1030 passed, 15 skipped) are all green.Decided by autopilot