Repository navigation
fix(security): bound status page historyDays, mask config tokens in replay, JS websocket redirect policy, docs JWT placeholders - #903
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… read The legacy historyDays input was stored unbounded and the public view sized its window, bucket count and slice from it: a value near the int32 maximum OOM-killed the API process on every view, a negative one panicked in make. - REST create/update and the MCP tools refuse historyDays outside 1..90 (VALIDATION_ERROR, field historyDays) when historyPeriod is absent. - enrichWithAvailability, buildAvailabilityData and loadRecentUpdates clamp the stored value to [1, 90]. - openapi: minimum/maximum on historyDays. Spec 2026-11-16-01. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Migration 037 (both dialects) replaces a history_days outside 1..90 with the day count of the row's history_period. In-range rows are untouched. Spec 2026-11-16-01. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…..90 Export statuspages.ClampHistoryDays and apply it to the feed, like the page's recentUpdates. OpenAPI: an out-of-range historyDays is 422 VALIDATION_ERROR. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… response redactedConfigKeys lists the config keys whose value is sent in clear but is a credential (ExportRedactedFields and SecretFields of the checker: heartbeat/email token, SMTP delivery_to), so dash0 can keep them out of the session replay (spec 2026-11-16-02). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #903 +/- ##
==========================================
+ Coverage 90.71% 90.72% +0.01%
==========================================
Files 1370 1370
Lines 140934 141005 +71
==========================================
+ Hits 127850 127929 +79
+ Misses 13075 13067 -8
Partials 9 9
🚀 New features to boost your workflow:
|
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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…nect handshake The JS websocket binding had no CheckRedirect, so coder/websocket followed handshake redirects with net/http's header policy and no hop limit: a script header carrying a secret (and Referer) reached any host. The handshake client now always exists and carries wsRedirectPolicy: 10-hop cap, wss->ws downgrade refused, Referer, Authorization, Proxy-Authorization and Cookie dropped on a cross-origin hop, plus the script's headers the http.* rule drops for a check holding secrets. The dropped names are reported as redirectDroppedHeaders on the handle and redirect_dropped_secret_headers in the output. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…olders The configuration docs offered `your-secure-random-secret` and `your-secure-random-secret-at-least-32-chars` as copy-paste JWT secrets. Both are now refused by config.IsPlaceholderJWTSecret, so a copy that reached production is replaced by a generated secret at the next boot (this ends every current session). The docs now show `$(openssl rand -base64 48)` and say an unset secret is auto-generated; a test keeps any known placeholder out of the docs. A non-placeholder secret shorter than 32 bytes is kept but logged as a warning at startup. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e docs are accepted as real signing keys Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…into wt/security/scan-specs-2026-11-16
freeTCPPort releases the port before gldap listens, and gldap reports Ready() even when its listen failed, so a parallel test could take the port and the login then reached another directory (invalid credentials). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Merged
fclairamb
added a commit
that referenced
this pull request
Nov 16, 2026
🤖 I have created a release *beep* *boop* --- ## [0.51.0](v0.50.2...v0.51.0) (2026-11-16) ### Features * Pingdom check importer, insights period selector, job retry log levels ([#904](#904)) ([7914164](7914164)) ### Bug Fixes * **security:** bound status page historyDays, mask config tokens in replay, JS websocket redirect policy, docs JWT placeholders ([#903](#903)) ([6b432e0](6b432e0)) * **security:** cap the pre-auth body buffer in ServiceSignature ([#894](#894)) ([c4da4c5](c4da4c5)), closes [#892](#892) * **security:** cross-check SAML NameID namespace (GO-2026-6909) ([#896](#896)) ([df0d7b6](df0d7b6)) * **security:** treat known dev JWT secrets as placeholders ([#895](#895)) ([1cad98a](1cad98a)), closes [#892](#892) --- 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]>
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 for the findings of the security scan of 2026-11-16 (AO1–AO4).
What changed
historyDays: REST and MCP refuse a legacyhistoryDaysoutside 1..90 (422 VALIDATION_ERROR, whenhistoryPeriodis absent). The public view,recentUpdatesand the Atom feed clamp the stored value to 1..90. Migration037_v0_50_3rewrites out-of-range rows from theirhistory_period. OpenAPI documents the bound.redactedConfigKeys(the clear-text credential keys the checker declares). dash0's Configuration card masks those rows withSecretText(ph-no-capture): heartbeat/emailtoken, SMTPdelivery_to. The E2E no-capture test now covers the card.websocket.connect: the handshake now has a redirect policy. It follows at most 10 hops, refuses awss→wsdowngrade, and on a cross-origin hop dropsAuthorization,Proxy-Authorization,Cookieand any script header holding a check secret. Dropped names are reported inredirect_dropped_secret_headers.$(openssl rand -base64 48)instead of literal values. Both strings published so far are treated as placeholders and replaced at boot. A secret shorter than 32 bytes logs a warning.Breaking changes / operator notes
historyDaysoutside 1..90 withouthistoryPeriodis now a 422 instead of being stored.SP_AUTH_JWT_SECRETis one of the two published doc strings gets a new signing secret at the next boot, which logs every user out.wss→wsredirects are refused.Decided by autopilot
redactedConfigKeys), the spec's recommended option.CheckRedirectreusing thehttp.*secret-header rule rather thancheckerdef.CredentialRedirectPolicy(both allowed by the spec; the latter only matches header names).🤖 Generated with Claude Code