Skip to content

fix(security): per-org test-run slots, typed credentials of imported transaction checks go to secrets - #933

Merged
fclairamb merged 13 commits into
mainfrom
security/scan-specs-2026-11-18
Nov 18, 2026
Merged

fclairamb merged 13 commits into
mainfrom
security/scan-specs-2026-11-18

Conversation

@fclairamb

@fclairamb fclairamb commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Fixes from the daily security scan of 2026-11-18 (two Low findings).

What changed

  • Test runs are fair across orgs (AQ1). POST /orgs/:org/checks/test-run now admits 1 run in flight per org, under the existing cap of 4 per process; a refused run gets 429 RATE_LIMITED with Retry-After: 5 and a message naming the per-org limit. Test runs may hold at most 2 of the 4 browser slots, so scheduled browser checks always keep 2. A per-org rate limit of 20 runs/minute sits on the route (new RateLimiter.RateLimitRouteBy), after the write check, so a viewer still gets 403. Limits documented in the JS checks docs and in a new checkTestRun OpenAPI operation.
  • Imported transaction checks no longer keep typed credentials in the script (AQ2). A shared rule (field names like password/pwd/pin/otp/secret/token/api key/mot de passe, type=password, or a value that looks like a credential: Bearer …, long high-entropy string) moves Pingdom TMS fill/wpm_fill values (secrets.PINGDOM_FILL_<n>) and Chrome Recorder change values to the check's encrypted secrets. Both importers warn about typed values left in the script. Docs: importers/mapping.md, migrate-from-Pingdom and from-Chrome-Recorder pages.

Behaviour changes to know:

  • The per-org test-run rate limit is always on (like /tools/run), even with SP_SERVER_RATE_LIMITING_REQUESTS_PER_MINUTE=0.
  • The Chrome Recorder import warning text changed ("typed value(s)" instead of "password value(s)"), and both importers can add a field: "steps" warning.

Decided by autopilot

  • 2026-11-18-01, per-org concurrency 1 or 2: 1 (recommended answer).
  • 2026-11-18-01, plan-based limits: not now, fixed limits (recommended answer).
  • 2026-11-18-01, test-run browser protection: a dedicated budget of 2 of the 4 browser slots (the spec's first option and its example; it gave no recommendation).

Batch gate: make build-backend lint-back test build-docs green.

🤖 Generated with Claude Code

fclairamb and others added 9 commits November 18, 2026 07:24
…ed checks

One org could hold every test-run slot of a process, and with them every
browser slot. Test runs are now limited to 1 in flight per org (4 per
node), 20 per minute per org, and may hold at most 2 of the 4 browser
slots. Spec 2026-11-18-01.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nd the API node's browser slots with them

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…check's secrets

Pingdom TMS fill/wpm_fill values and Chrome Recorder change values now go to
the encrypted secrets when the field looks like a credential field (widened
hint: pass, pwd, pin, otp, secret, token, api key, mot de passe, contraseña)
or the value looks like a credential (Bearer prefix, long high-entropy string).
Pingdom keys are PINGDOM_FILL_<n>. Both importers now warn with the count of
typed values left in the script.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…passwords in the script

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

codecov Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.79832% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.85%. Comparing base (7b9d073) to head (8b6ab7c).

Files with missing lines Patch % Lines
server/internal/checkers/checkbrowser/checker.go 86.66% 2 Missing ⚠️
server/internal/app/server.go 90.00% 1 Missing ⚠️
...internal/handlers/checks/importers/typed_secret.go 96.00% 1 Missing ⚠️
server/internal/middleware/ratelimit.go 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #933      +/-   ##
==========================================
+ Coverage   90.82%   90.85%   +0.02%     
==========================================
  Files        1381     1382       +1     
  Lines      142773   142877     +104     
==========================================
+ Hits       129680   129812     +132     
+ Misses      13085    13057      -28     
  Partials        8        8              
Files with missing lines Coverage Δ
...ternal/handlers/checks/importers/chromerecorder.go 100.00% <100.00%> (ø)
.../internal/handlers/checks/importers/pingdom_tms.go 100.00% <100.00%> (ø)
server/internal/handlers/checktestrun/handler.go 98.70% <100.00%> (+0.78%) ⬆️
server/internal/app/server.go 92.11% <90.00%> (-0.02%) ⬇️
...internal/handlers/checks/importers/typed_secret.go 96.00% <96.00%> (ø)
server/internal/middleware/ratelimit.go 85.58% <90.00%> (+0.20%) ⬆️
server/internal/checkers/checkbrowser/checker.go 64.41% <86.66%> (+1.43%) ⬆️

... 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 fclairamb changed the title fix(security): per-org test-run slots, credentials typed by imported transaction checks fix(security): per-org test-run slots, typed credentials of imported transaction checks go to secrets Nov 18, 2026
@fclairamb fclairamb added the implemented Every spec of the PR is implemented and its batch gate was green label Nov 18, 2026
@fclairamb
fclairamb enabled auto-merge (squash) November 18, 2026 22:22
@fclairamb
fclairamb merged commit 51914b3 into main Nov 18, 2026
37 checks passed
@fclairamb
fclairamb deleted the security/scan-specs-2026-11-18 branch November 18, 2026 22:26
fclairamb added a commit that referenced this pull request Nov 19, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.52.0](v0.51.0...v0.52.0)
(2026-11-19)


### Features

* **checks:** Pingdom TMS and Chrome Recorder import, named steps and
test runs, richer selectors and basic auth for JS browser checks
([#909](#909))
([1240c57](1240c57))
* **dash0:** switch the dashboard language with ?lang= on any URL
([#926](#926))
([c2640ae](c2640ae))
* **email:** maximum delivery delay, Date-header latency and
missed-probe detection
([#938](#938))
([8489326](8489326))
* **showcase:** cut the published video in any dashboard language
([#932](#932))
([d940da5](d940da5))
* **showcase:** take the dashboard stills in any dashboard language
([#925](#925))
([5104606](5104606))
* status updates in several languages, random first admin password,
Postgres Unix socket
([#939](#939))
([a69424f](a69424f))


### Bug Fixes

* **dash0:** chart dates follow the dashboard language
([#928](#928))
([eae2951](eae2951))
* **deps:** update github.com/dop251/goja digest to 0802ca1
([#920](#920))
([3524928](3524928))
* **deps:** update github.com/dop251/goja digest to 2eded47
([#911](#911))
([a8496d4](a8496d4))
* **deps:** update github.com/dop251/goja digest to 8dfece3
([#935](#935))
([98297e8](98297e8))
* **deps:** update go dependencies (non-major)
([#907](#907))
([41187dc](41187dc))
* **deps:** update go dependencies (non-major)
([#927](#927))
([fcef3fc](fcef3fc))
* **deps:** update go dependencies (non-major)
([#940](#940))
([0fd9228](0fd9228))
* **deps:** update module github.com/a2aproject/a2a-go/v2 to v2.9.0
([#922](#922))
([fe48c84](fe48c84))
* **deps:** update module github.com/posthog/posthog-go to v2
([#924](#924))
([eab03f2](eab03f2))
* **deps:** update module github.com/posthog/posthog-go to v2
([#929](#929))
([545e621](545e621))
* **deps:** update module github.com/posthog/posthog-go to v2
([#930](#930))
([82b03cc](82b03cc))
* **deps:** update module github.com/rabbitmq/amqp091-go to v1.17.0
([#916](#916))
([6974177](6974177))
* **deps:** update module
github.com/standard-webhooks/standard-webhooks/libraries to v1
([#931](#931))
([7b9d073](7b9d073))
* **deps:** update module golang.org/x/net to v0.63.0
([#923](#923))
([7d0fac9](7d0fac9))
* DMARC temperror cause, reaper regions, force-expanded group headers
([#934](#934))
([99f955d](99f955d))
* **i18n:** say "Check" instead of "Prüfung" in German
([#910](#910))
([696dcf8](696dcf8))
* **i18n:** translate generated incident, status-page and validation
text ([#913](#913))
([92bb05a](92bb05a))
* **security:** no paging contacts via impersonation/PAT, shared MCP
probe caps, browser WebSocket egress, analytics key replay
([#946](#946))
([8d51875](8d51875))
* **security:** per-org test-run slots, typed credentials of imported
transaction checks go to secrets
([#933](#933))
([51914b3](51914b3))
* **security:** Telegram bot membership and role checks, admin-only
email suppressions, mask import payload in replay
([#914](#914))
([55ffc4b](55ffc4b))
* Slack events after ack, region badge clicks, WHOIS deadline, legacy
agent warning, empty check groups
([#917](#917))
([65b00e2](65b00e2))

---
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 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.

1 participant