Repository navigation
feat(ai): hold auto-applied repairs to the previous version's hosts (+ scan specs) - #663
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #663 +/- ##
==========================================
- Coverage 88.17% 88.17% -0.01%
==========================================
Files 1288 1289 +1
Lines 131355 131553 +198
==========================================
+ Hits 115827 116001 +174
- Misses 15519 15543 +24
Partials 9 9
🚀 New features to boost your workflow:
|
…annot take it Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
A `repair: auto` candidate that kept the previous literal host and added a branch to a host built at runtime passed every gate and was applied. Its scheduled runs had no host allowlist, so the branch could send a secret to any public host (security scan 2026-10-24, finding R1). - applyRepair stores the hosts the previous version reached in the ai block (`repair_hosts`), bound to the applied script and env (`repair_grant`). - Every run of that version with real secrets is held to them. A refusal fails the run with an error result flagged `aiRepairHostRefused`. - Such a result sets the check back to `repair: propose` and records a `check.ai_repair_revoked` event, instead of queueing a repair. - Editing the script or env drops the grant (js NormalizeConfig). - `repair: auto` now proposes any candidate with a network call whose host its text does not show, or more network calls than before (hiddenHost, replaces hostsHidden). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eeps a readable host and adds one built at runtime Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
fclairamb
enabled auto-merge (squash)
October 25, 2026 16:15
This was referenced Oct 25, 2026
Merged
fclairamb
added a commit
that referenced
this pull request
Oct 26, 2026
) Specs filed from the daily security scans, and the fix for the one still open. ## What changed - **U1 (low)**: `specs/done/2026/10/2026-10-26-02-ai-repair-hold-skips-param-only-secrets.md`. Every scheduled run of a `repair: auto` version is now held to its granted hosts, whether its credentials sit in `secrets` or come from a `${param:…}` / `${env:…}` reference. Before, a check with no `secrets` value ran unheld with the resolved value. Tests cover the checker, the worker claim path and the agent path, each with a positive control. Docs updated. Batch gate green (`make build-backend lint-back test`). ## Decided by autopilot - Nothing: the spec had no open questions. ## Earlier scan specs (implemented, in `specs/done/2026/10/`) - **S1 (medium)**: `2026-10-25-01-ai-repair-grant-dropped-by-reference-resolution.md`. The repair grant was compared after `${…}` references were resolved. Fixed in #678; see U1 for a remaining gap. - **R1 (medium)**: `2026-10-24-01-ai-repair-auto-apply-partial-runtime-host.md`. `repair: auto` applied a candidate that kept a literal host and added one built at runtime. Fixed in #663. - **Q1 (medium)**: `2026-10-23-02-ai-loop-secret-relay-through-model.md`. AI loops relayed an encoded secret through the model. - **P1 (medium)**: `2026-10-22-01-ai-script-secret-host-guard-runtime.md`. AI runs with real secrets were only host-checked by regex. - **K1 (medium)**: `2026-10-20-01-sender-response-body-caps.md`. Notification senders and RabbitMQ read responses uncapped. - **J1 (medium)**: `2026-10-19-01-a2a-response-size-cap.md`. A2A responses were read uncapped. - **I1 (low)**: `2026-10-18-01-plugin-schema-file-ref.md`. Plugin schema `$ref` could load local files. - **G1/G2 (low)**: `2026-10-17-01-postgres-check-connection-config.md`. Postgres conninfo escaping and fallback to the worker's `PG*` env. - **F1**: `2026-10-16-15-pat-cache-revocation.md`. The PAT cache outlived revocation. - **E1**: `2026-10-16-14-totp-on-federated-sign-in.md`. No TOTP on federated sign-in. - **E2**: `2026-10-16-13-atomic-auth-attempt-counters.md`. Auth attempt counters were not atomic. - **H3**: `2026-10-16-12-mcp-tokens-rejected-on-rest.md`. MCP OAuth tokens worked on REST. - **H2**: `2026-10-16-11-slack-signature-fail-closed.md`. Slack signature check failed open. - **T1 / M2 (high)**: `2026-10-16-10-discovery-scans-egress-guard.md`. Discovery scans were outside the egress policy. - **N4**: `2026-10-16-09-js-check-nested-docker-guard.md`. A JS `docker` sub-check bypassed the gate. - **N3 (high)**: `2026-10-16-08-status-page-components-cross-org.md`. Status-page components could be edited across orgs. - **D2/D3 (high)**: `2026-10-16-07-guard-status-subscriber-and-publication-webhooks.md`. Subscriber and publication webhooks were not guarded. - **C3**: `2026-10-16-06-accept-invite-existing-account.md`. Accepting an invite logged in as an existing account. - **C1**: `2026-10-16-05-kubeconfig-exec-and-incluster.md`. Kubeconfig `exec` and `inCluster` were allowed. - **N2**: `2026-10-16-04-mysql-dsn-injection.md`. MySQL DSN injection. - **N1**: `2026-10-16-03-env-secret-reference-allowlist.md`. No allowlist for `${env:}` references. - **C2/H1**: `2026-10-16-02-token-purpose-separation.md`. Purpose tokens were accepted as access tokens. - **D1**: `2026-10-16-01-microsoft-signin-unverified-email-linking.md`. Microsoft nOAuth email linking. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
fclairamb
added a commit
that referenced
this pull request
Oct 26, 2026
🤖 I have created a release *beep* *boop* --- ## [0.42.0](v0.41.0...v0.42.0) (2026-10-26) ### Features * **ai:** hold auto-applied repairs to the previous version's hosts (+ scan specs) ([#663](#663)) ([37966e2](37966e2)) * **api:** cursors on the events and incidents APIs ([#640](#640)) ([bbd32b9](bbd32b9)) * **auth:** ask the default admin for a real email on first login ([#673](#673)) ([e92e608](e92e608)) * **checks:** offer to resolve open incidents when a check is disabled ([#648](#648)) ([9553cdc](9553cdc)) * **dash0:** locate e2e and showcase elements by data-testid, with lint rules ([#672](#672)) ([1aceb52](1aceb52)) * **mcp:** bound tool string inputs and disclose side effects ([#644](#644)) ([22039c7](22039c7)) * **notifications:** ntfy notifications link to the incident ([#639](#639)) ([e466060](e466060)) ### Bug Fixes * **ai:** hold AI loops to the check's hosts after a real-secrets run ([#646](#646)) ([7cf836d](7cf836d)) * **ai:** hold every scheduled repair-auto run to its granted hosts ([#683](#683)) ([ae9d0ef](ae9d0ef)) * **ai:** hold the repair: auto host grant when the script or env holds a reference ([#678](#678)) ([de4e718](de4e718)) * **auth:** redirect provider logins with an unknown org to the login page instead of raw JSON ([#676](#676)) ([6c4b4fd](6c4b4fd)) * custom-domain status assets, CSS sample, incident header, check scroll ([#689](#689)) ([cdd89e0](cdd89e0)) * dashboard down count, mobile event log, browser retry, async report test send ([#680](#680)) ([f53c99b](f53c99b)) * **deps:** update github.com/dop251/goja digest to 1622cea ([#654](#654)) ([70d3bfb](70d3bfb)) * **deps:** update github.com/dop251/goja digest to 2921f52 ([#685](#685)) ([8186068](8186068)) * **deps:** update github.com/dop251/goja digest to 2a9269b ([#668](#668)) ([e536f52](e536f52)) * **deps:** update github.com/dop251/goja digest to 3c7039f ([#651](#651)) ([bd93ee7](bd93ee7)) * **deps:** update github.com/dop251/goja digest to 6ace4dd ([#652](#652)) ([0d7366c](0d7366c)) * **deps:** update github.com/dop251/goja digest to 6b6a90e ([#687](#687)) ([4774086](4774086)) * **deps:** update go dependencies (non-major) ([#638](#638)) ([b8453fb](b8453fb)) * **deps:** update go dependencies (non-major) ([#649](#649)) ([296ecdf](296ecdf)) * **deps:** update go dependencies (non-major) ([#656](#656)) ([9aef341](9aef341)) * **deps:** update module github.com/clickhouse/clickhouse-go/v2 to v2.50.0 ([#688](#688)) ([dbced61](dbced61)) * **deps:** update module github.com/gosnmp/gosnmp to v1.47.0 ([#659](#659)) ([575e17f](575e17f)) * **deps:** update module github.com/oapi-codegen/oapi-codegen/v2 to v2.8.1 ([#661](#661)) ([aa91cb6](aa91cb6)) * **deps:** update module github.com/ohler55/ojg to v1.28.8 ([#675](#675)) ([5666052](5666052)) * **deps:** update module github.com/posthog/posthog-go to v1.36.2 ([#650](#650)) ([fb01ef8](fb01ef8)) * **jobs:** retry a due job promptly when its claim rolls back ([#674](#674)) ([f0edadd](f0edadd)) * **log:** drop error=<nil> from successful HTTP request logs ([#664](#664)) ([4579f59](4579f59)) --- 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
Oct 27, 2026
…#693) Specs filed from the daily security scans. Each spec is the tracker for its finding. This PR adds the specs and implements them. ## What changed - **V1**: the device consent page now shows when the request was opened, the requester's IP and client, the approver's IP and a "different network" hint, a warning above Approve, and a required "I started this sign-in myself" checkbox when the code arrived pre-filled in the URL. The approver gets an email after approving. New migration `031_v0_43_0` stores the requester IP and user agent. - **W1**: `DELETE /auth/2fa` spends the shared per-user 2FA budget (5 per 15 minutes) before comparing the code, answers 429 `RATE_LIMITED`, and resets on success. The dash0 dialog shows the message, and no longer refreshes and retries on a wrong code. - Batch gate green: backend build, lint and tests, dash0 typecheck and lint, Playwright 980 passed, 15 skipped. ## Decided by autopilot - V1, pre-filled code needs a second confirmation?: checkbox only, no retyping (spec's recommended answer). ## Specs (now implemented, archived in `specs/done/2026/10/`) - **V1 (medium)**: `specs/done/2026/10/2026-10-27-01-device-consent-phishing-guard.md`. The device-flow consent page approves a code anyone can mint without an account and send by link, already filled in. It shows no warning to approve only a sign-in you started yourself, and no detail about who opened the request. One click from a signed-in member gives the requester a 90-day PAT with the member's role. The fix adds the requester's details, a warning and an email notification, and keeps the CLI flow one click. - **W1 (low)**: `specs/done/2026/10/2026-10-27-02-disable-2fa-attempt-throttle.md`. `DELETE /auth/2fa` checks the TOTP code without the per-user attempt budget that login 2FA uses. Someone holding a stolen session or PAT can guess the code at the global request rate and remove the second factor for good. The fix spends the shared 2FA budget before comparing. ## Earlier scan specs (implemented, in `specs/done/2026/10/`) - **U1 (low)**: `2026-10-26-02-ai-repair-hold-skips-param-only-secrets.md`. The `repair: auto` hold applied only when the check's `secrets` map had a value. Fixed in #683. - **S1 (medium)**: `2026-10-25-01-ai-repair-grant-dropped-by-reference-resolution.md`. The repair grant was compared after `${…}` references were resolved. Fixed in #678; U1 closed the remaining gap. - **R1 (medium)**: `2026-10-24-01-ai-repair-auto-apply-partial-runtime-host.md`. `repair: auto` applied a candidate that kept a literal host and added one built at runtime. Fixed in #663. - **Q1 (medium)**: `2026-10-23-02-ai-loop-secret-relay-through-model.md`. AI loops relayed an encoded secret through the model. - **P1 (medium)**: `2026-10-22-01-ai-script-secret-host-guard-runtime.md`. AI runs with real secrets were only host-checked by regex. - **K1 (medium)**: `2026-10-20-01-sender-response-body-caps.md`. Notification senders and RabbitMQ read responses uncapped. - **J1 (medium)**: `2026-10-19-01-a2a-response-size-cap.md`. A2A responses were read uncapped. - **I1 (low)**: `2026-10-18-01-plugin-schema-file-ref.md`. Plugin schema `$ref` could load local files. - **G1/G2 (low)**: `2026-10-17-01-postgres-check-connection-config.md`. Postgres conninfo escaping and fallback to the worker's `PG*` env. - **F1**: `2026-10-16-15-pat-cache-revocation.md`. The PAT cache outlived revocation. - **E1**: `2026-10-16-14-totp-on-federated-sign-in.md`. No TOTP on federated sign-in. - **E2**: `2026-10-16-13-atomic-auth-attempt-counters.md`. Auth attempt counters were not atomic. - **H3**: `2026-10-16-12-mcp-tokens-rejected-on-rest.md`. MCP OAuth tokens worked on REST. - **H2**: `2026-10-16-11-slack-signature-fail-closed.md`. Slack signature check failed open. - **T1 / M2 (high)**: `2026-10-16-10-discovery-scans-egress-guard.md`. Discovery scans were outside the egress policy. - **N4**: `2026-10-16-09-js-check-nested-docker-guard.md`. A JS `docker` sub-check bypassed the gate. - **N3 (high)**: `2026-10-16-08-status-page-components-cross-org.md`. Status-page components could be edited across orgs. - **D2/D3 (high)**: `2026-10-16-07-guard-status-subscriber-and-publication-webhooks.md`. Subscriber and publication webhooks were not guarded. - **C3**: `2026-10-16-06-accept-invite-existing-account.md`. Accepting an invite logged in as an existing account. - **C1**: `2026-10-16-05-kubeconfig-exec-and-incluster.md`. Kubeconfig `exec` and `inCluster` were allowed. - **N2**: `2026-10-16-04-mysql-dsn-injection.md`. MySQL DSN injection. - **N1**: `2026-10-16-03-env-secret-reference-allowlist.md`. No allowlist for `${env:}` references. - **C2/H1**: `2026-10-16-02-token-purpose-separation.md`. Purpose tokens were accepted as access tokens. - **D1**: `2026-10-16-01-microsoft-signin-unverified-email-linking.md`. Microsoft nOAuth email linking. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
fclairamb
added a commit
that referenced
this pull request
Oct 29, 2026
…eport screenshots (#708) Fixes the findings of the daily security scans. Each spec is the tracker for its finding. ## Fixed by this PR - **Y1 (low)**: `specs/done/2026/10/2026-10-29-01-bug-report-upload-instance-budget.md`. Anonymous bug-report screenshots are capped at 100 MB per org, but the caller picks the org, so the instance-wide total is 100 MB times the number of orgs. Screenshots are also stored past the issue-dispatch cap and never deleted. The fix adds an instance-wide budget for anonymous screenshots, reserves the dispatch slot before storing, makes the quota atomic and adds a retention. ## Earlier scan specs (implemented, in `specs/done/2026/10/`) - **X1 (high)**: `2026-10-28-01-pat-cannot-mint-sessions-or-sign-in-factors.md`. A PAT could open sessions in its owner's other orgs and add sign-in factors. Fixed in #699. - **X2 (medium)**: `2026-10-28-02-status-subscribe-throttle-and-keep-confirmed.md`. Unthrottled subscribe confirm emails, and re-subscribing un-confirmed a subscriber. Fixed in #699. - **X3 (medium on SaaS)**: `2026-10-28-03-invite-lookup-without-org-scan.md`. Invite lookup scanned every org. Fixed in #699. - **X4 (low)**: `2026-10-28-04-snmp-community-secret-field.md`. The SNMP community was not a secret field. Fixed in #699. - **V1 (medium)**: `2026-10-27-01-device-consent-phishing-guard.md`. Device-flow consent phishing. Fixed in #693. - **W1 (low)**: `2026-10-27-02-disable-2fa-attempt-throttle.md`. `DELETE /auth/2fa` had no attempt budget. Fixed in #693. - **U1 (low)**: `2026-10-26-02-ai-repair-hold-skips-param-only-secrets.md`. The `repair: auto` hold applied only when the check's `secrets` map had a value. Fixed in #683. - **S1 (medium)**: `2026-10-25-01-ai-repair-grant-dropped-by-reference-resolution.md`. The repair grant was compared after `${…}` references were resolved. Fixed in #678; U1 closed the remaining gap. - **R1 (medium)**: `2026-10-24-01-ai-repair-auto-apply-partial-runtime-host.md`. `repair: auto` applied a candidate that kept a literal host and added one built at runtime. Fixed in #663. - **Q1 (medium)**: `2026-10-23-02-ai-loop-secret-relay-through-model.md`. AI loops relayed an encoded secret through the model. - **P1 (medium)**: `2026-10-22-01-ai-script-secret-host-guard-runtime.md`. AI runs with real secrets were only host-checked by regex. - **K1 (medium)**: `2026-10-20-01-sender-response-body-caps.md`. Notification senders and RabbitMQ read responses uncapped. - **J1 (medium)**: `2026-10-19-01-a2a-response-size-cap.md`. A2A responses were read uncapped. - **I1 (low)**: `2026-10-18-01-plugin-schema-file-ref.md`. Plugin schema `$ref` could load local files. - **G1/G2 (low)**: `2026-10-17-01-postgres-check-connection-config.md`. Postgres conninfo escaping and fallback to the worker's `PG*` env. - **F1**: `2026-10-16-15-pat-cache-revocation.md`. The PAT cache outlived revocation. - **E1**: `2026-10-16-14-totp-on-federated-sign-in.md`. No TOTP on federated sign-in. - **E2**: `2026-10-16-13-atomic-auth-attempt-counters.md`. Auth attempt counters were not atomic. - **H3**: `2026-10-16-12-mcp-tokens-rejected-on-rest.md`. MCP OAuth tokens worked on REST. - **H2**: `2026-10-16-11-slack-signature-fail-closed.md`. Slack signature check failed open. - **T1 / M2 (high)**: `2026-10-16-10-discovery-scans-egress-guard.md`. Discovery scans were outside the egress policy. - **N4**: `2026-10-16-09-js-check-nested-docker-guard.md`. A JS `docker` sub-check bypassed the gate. - **N3 (high)**: `2026-10-16-08-status-page-components-cross-org.md`. Status-page components could be edited across orgs. - **D2/D3 (high)**: `2026-10-16-07-guard-status-subscriber-and-publication-webhooks.md`. Subscriber and publication webhooks were not guarded. - **C3**: `2026-10-16-06-accept-invite-existing-account.md`. Accepting an invite logged in as an existing account. - **C1**: `2026-10-16-05-kubeconfig-exec-and-incluster.md`. Kubeconfig `exec` and `inCluster` were allowed. - **N2**: `2026-10-16-04-mysql-dsn-injection.md`. MySQL DSN injection. - **N1**: `2026-10-16-03-env-secret-reference-allowlist.md`. No allowlist for `${env:}` references. - **C2/H1**: `2026-10-16-02-token-purpose-separation.md`. Purpose tokens were accepted as access tokens. - **D1**: `2026-10-16-01-microsoft-signin-unverified-email-linking.md`. Microsoft nOAuth email linking. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
fclairamb
added a commit
that referenced
this pull request
Oct 30, 2026
…rawl reports (#715) Specs filed from the daily security scans. Each spec is the tracker for its finding. This PR files the specs and implements Z1 and Z2. ## Implemented by this PR (specs archived in `specs/done/2026/10/`) - **Z1 (low)**: `specs/todos/2026-10-30-02-bug-report-authenticated-org-membership.md`. Y1 residual. The screenshot budget added in #708 applies only to anonymous reports. A signed-in user who is not a member of the named org bypasses it and stores screenshots in any org. The fix treats a non-member's report like an anonymous one. - **Z2 (low)**: `specs/todos/2026-10-30-03-report-retention-spares-crawl-reports.md`. The bug-report retention sweep added in #708 matches the whole `reports` storage group, so it also deletes website crawl reports older than 90 days. The same group also makes crawl reports count against the bug-report quota. The fix restricts both to topic-less files. ## Earlier scan specs (implemented, in `specs/done/2026/10/`) - **Y1 (low)**: `2026-10-29-01-bug-report-upload-instance-budget.md`. Anonymous bug-report screenshots were capped per org, not per instance, and never deleted. Fixed in #708; Z1 and Z2 are follow-ups. - **X1 (high)**: `2026-10-28-01-pat-cannot-mint-sessions-or-sign-in-factors.md`. A PAT could open sessions in its owner's other orgs and add sign-in factors. Fixed in #699. - **X2 (medium)**: `2026-10-28-02-status-subscribe-throttle-and-keep-confirmed.md`. Unthrottled subscribe confirm emails, and re-subscribing un-confirmed a subscriber. Fixed in #699. - **X3 (medium on SaaS)**: `2026-10-28-03-invite-lookup-without-org-scan.md`. Invite lookup scanned every org. Fixed in #699. - **X4 (low)**: `2026-10-28-04-snmp-community-secret-field.md`. The SNMP community was not a secret field. Fixed in #699. - **V1 (medium)**: `2026-10-27-01-device-consent-phishing-guard.md`. Device-flow consent phishing. Fixed in #693. - **W1 (low)**: `2026-10-27-02-disable-2fa-attempt-throttle.md`. `DELETE /auth/2fa` had no attempt budget. Fixed in #693. - **U1 (low)**: `2026-10-26-02-ai-repair-hold-skips-param-only-secrets.md`. The `repair: auto` hold applied only when the check's `secrets` map had a value. Fixed in #683. - **S1 (medium)**: `2026-10-25-01-ai-repair-grant-dropped-by-reference-resolution.md`. The repair grant was compared after `${…}` references were resolved. Fixed in #678; U1 closed the remaining gap. - **R1 (medium)**: `2026-10-24-01-ai-repair-auto-apply-partial-runtime-host.md`. `repair: auto` applied a candidate that kept a literal host and added one built at runtime. Fixed in #663. - **Q1 (medium)**: `2026-10-23-02-ai-loop-secret-relay-through-model.md`. AI loops relayed an encoded secret through the model. - **P1 (medium)**: `2026-10-22-01-ai-script-secret-host-guard-runtime.md`. AI runs with real secrets were only host-checked by regex. - **K1 (medium)**: `2026-10-20-01-sender-response-body-caps.md`. Notification senders and RabbitMQ read responses uncapped. - **J1 (medium)**: `2026-10-19-01-a2a-response-size-cap.md`. A2A responses were read uncapped. - **I1 (low)**: `2026-10-18-01-plugin-schema-file-ref.md`. Plugin schema `$ref` could load local files. - **G1/G2 (low)**: `2026-10-17-01-postgres-check-connection-config.md`. Postgres conninfo escaping and fallback to the worker's `PG*` env. - **F1**: `2026-10-16-15-pat-cache-revocation.md`. The PAT cache outlived revocation. - **E1**: `2026-10-16-14-totp-on-federated-sign-in.md`. No TOTP on federated sign-in. - **E2**: `2026-10-16-13-atomic-auth-attempt-counters.md`. Auth attempt counters were not atomic. - **H3**: `2026-10-16-12-mcp-tokens-rejected-on-rest.md`. MCP OAuth tokens worked on REST. - **H2**: `2026-10-16-11-slack-signature-fail-closed.md`. Slack signature check failed open. - **T1 / M2 (high)**: `2026-10-16-10-discovery-scans-egress-guard.md`. Discovery scans were outside the egress policy. - **N4**: `2026-10-16-09-js-check-nested-docker-guard.md`. A JS `docker` sub-check bypassed the gate. - **N3 (high)**: `2026-10-16-08-status-page-components-cross-org.md`. Status-page components could be edited across orgs. - **D2/D3 (high)**: `2026-10-16-07-guard-status-subscriber-and-publication-webhooks.md`. Subscriber and publication webhooks were not guarded. - **C3**: `2026-10-16-06-accept-invite-existing-account.md`. Accepting an invite logged in as an existing account. - **C1**: `2026-10-16-05-kubeconfig-exec-and-incluster.md`. Kubeconfig `exec` and `inCluster` were allowed. - **N2**: `2026-10-16-04-mysql-dsn-injection.md`. MySQL DSN injection. - **N1**: `2026-10-16-03-env-secret-reference-allowlist.md`. No allowlist for `${env:}` references. - **C2/H1**: `2026-10-16-02-token-purpose-separation.md`. Purpose tokens were accepted as access tokens. - **D1**: `2026-10-16-01-microsoft-signin-unverified-email-linking.md`. Microsoft nOAuth email linking. ## What changed - **Z1**: a signed-in user who is not a member of the named org (and not a super admin) now spends the anonymous screenshot budget and needs a dispatch slot. Text-only reports still go through. - **Z2**: `ListFilesByGroup` and `SumFileSizeByGroup` only match topic-less files, so retention no longer purges crawl reports and they no longer use the screenshot quota. ## Decided by autopilot - Z1 spec, open question (refuse a non-member with 403, or treat as anonymous?): treat as anonymous (recommended answer). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
fclairamb
added a commit
that referenced
this pull request
Oct 31, 2026
…-in factors (#728) ## What changed - **AA1 (medium)**: a JS check now has a 64 MiB per-run memory budget on the native builtins that allocate in one call (`repeat`, `padStart/End`, `join`, `Array(n)`, `ArrayBuffer` and typed arrays, `fill`, `Array.from`, and the length-driven `sort`, `toSorted`, `map`, `with`, `toReversed`, `toSpliced`). A refused call throws a `RangeError` and the worker keeps running. Spec: `specs/done/2026/10/2026-10-31-01-js-checker-memory-budget.md`. - **AA2 (low)**: turning on TOTP, registering a passkey and setting a first password now need the current password (or, without one, a sign-in within 10 minutes). `2fa/confirm` requires a `setupToken`, and a `totp-enabled` notice email is sent. dash0 asks for the password first. Spec: `specs/done/2026/10/2026-10-31-02-sign-in-factor-enrollment-reauth.md`. **Breaking API change**: `2fa/setup` and `passkeys/register/begin` refuse a request without `currentPassword` on accounts with a password; `2fa/confirm` needs `setupToken`. Sessions issued before this have no sign-in time, so passwordless accounts must sign in again once. Known gaps (not covered): string `+` doubling, `replaceAll`, `JSON.stringify` and `TextEncoder` can still amplify; the long-term fix is process isolation of check workers (separate spec). ## Earlier scan specs (implemented, in `specs/done/2026/10/`) - **Z1 (low)**: `2026-10-30-02-bug-report-authenticated-org-membership.md`. Signed-in non-members skipped the bug-report screenshot budget. Fixed in #715. - **Z2 (low)**: `2026-10-30-03-report-retention-spares-crawl-reports.md`. The report retention sweep also deleted website crawl reports. Fixed in #715. - **Y1 (low)**: `2026-10-29-01-bug-report-upload-instance-budget.md`. Anonymous bug-report screenshots were capped per org, not per instance, and never deleted. Fixed in #708; Z1 and Z2 are follow-ups. - **X1 (high)**: `2026-10-28-01-pat-cannot-mint-sessions-or-sign-in-factors.md`. A PAT could open sessions in its owner's other orgs and add sign-in factors. Fixed in #699. - **X2 (medium)**: `2026-10-28-02-status-subscribe-throttle-and-keep-confirmed.md`. Unthrottled subscribe confirm emails, and re-subscribing un-confirmed a subscriber. Fixed in #699. - **X3 (medium on SaaS)**: `2026-10-28-03-invite-lookup-without-org-scan.md`. Invite lookup scanned every org. Fixed in #699. - **X4 (low)**: `2026-10-28-04-snmp-community-secret-field.md`. The SNMP community was not a secret field. Fixed in #699. - **V1 (medium)**: `2026-10-27-01-device-consent-phishing-guard.md`. Device-flow consent phishing. Fixed in #693. - **W1 (low)**: `2026-10-27-02-disable-2fa-attempt-throttle.md`. `DELETE /auth/2fa` had no attempt budget. Fixed in #693. - **U1 (low)**: `2026-10-26-02-ai-repair-hold-skips-param-only-secrets.md`. The `repair: auto` hold applied only when the check's `secrets` map had a value. Fixed in #683. - **S1 (medium)**: `2026-10-25-01-ai-repair-grant-dropped-by-reference-resolution.md`. The repair grant was compared after `${…}` references were resolved. Fixed in #678; U1 closed the remaining gap. - **R1 (medium)**: `2026-10-24-01-ai-repair-auto-apply-partial-runtime-host.md`. `repair: auto` applied a candidate that kept a literal host and added one built at runtime. Fixed in #663. - **Q1 (medium)**: `2026-10-23-02-ai-loop-secret-relay-through-model.md`. AI loops relayed an encoded secret through the model. - **P1 (medium)**: `2026-10-22-01-ai-script-secret-host-guard-runtime.md`. AI runs with real secrets were only host-checked by regex. - **K1 (medium)**: `2026-10-20-01-sender-response-body-caps.md`. Notification senders and RabbitMQ read responses uncapped. - **J1 (medium)**: `2026-10-19-01-a2a-response-size-cap.md`. A2A responses were read uncapped. - **I1 (low)**: `2026-10-18-01-plugin-schema-file-ref.md`. Plugin schema `$ref` could load local files. - **G1/G2 (low)**: `2026-10-17-01-postgres-check-connection-config.md`. Postgres conninfo escaping and fallback to the worker's `PG*` env. - **F1**: `2026-10-16-15-pat-cache-revocation.md`. The PAT cache outlived revocation. - **E1**: `2026-10-16-14-totp-on-federated-sign-in.md`. No TOTP on federated sign-in. - **E2**: `2026-10-16-13-atomic-auth-attempt-counters.md`. Auth attempt counters were not atomic. - **H3**: `2026-10-16-12-mcp-tokens-rejected-on-rest.md`. MCP OAuth tokens worked on REST. - **H2**: `2026-10-16-11-slack-signature-fail-closed.md`. Slack signature check failed open. - **T1 / M2 (high)**: `2026-10-16-10-discovery-scans-egress-guard.md`. Discovery scans were outside the egress policy. - **N4**: `2026-10-16-09-js-check-nested-docker-guard.md`. A JS `docker` sub-check bypassed the gate. - **N3 (high)**: `2026-10-16-08-status-page-components-cross-org.md`. Status-page components could be edited across orgs. - **D2/D3 (high)**: `2026-10-16-07-guard-status-subscriber-and-publication-webhooks.md`. Subscriber and publication webhooks were not guarded. - **C3**: `2026-10-16-06-accept-invite-existing-account.md`. Accepting an invite logged in as an existing account. - **C1**: `2026-10-16-05-kubeconfig-exec-and-incluster.md`. Kubeconfig `exec` and `inCluster` were allowed. - **N2**: `2026-10-16-04-mysql-dsn-injection.md`. MySQL DSN injection. - **N1**: `2026-10-16-03-env-secret-reference-allowlist.md`. No allowlist for `${env:}` references. - **C2/H1**: `2026-10-16-02-token-purpose-separation.md`. Purpose tokens were accepted as access tokens. - **D1**: `2026-10-16-01-microsoft-signin-unverified-email-linking.md`. Microsoft nOAuth email linking. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Nov 1, 2026
fclairamb
added a commit
that referenced
this pull request
Nov 2, 2026
… process isolation, crawl link scheme, subscriber list role, reset links on password change (#742) Specs filed from the daily security scans. Each spec is the tracker for its finding. ## What changed (specs implemented by this PR) - **AC2 (medium)**: `specs/todos/2026-11-02-01-js-checker-memory-budget-residuals.md`. Even after #735, one native call in a JS check can allocate GBs: `JSON.stringify`, `toLocaleString`, `normalize`, `String.raw`, the URI encoders, and ropes flattened by `JSON.parse`, by a thrown error (which also stores a huge error string with the result) or hidden deeper than the scan's depth cap. Now charged, with the rest of the amplifying builtins; the thrown error text is capped at 16 KiB. Process isolation is filed as AC7. - **AC3 (medium)**: `specs/todos/2026-11-02-02-js-checker-regexp-total-time.md`. The 2 s regexp limit of #735 applies to each match. A global `replace` chains slow matches into hours of CPU in one call that the timeout cannot stop. Now bounded for the whole run. - **AC4 (low)**: `specs/todos/2026-11-02-03-crawl-finding-url-scheme.md`. Sitemap URLs from `robots.txt` and sitemap indexes skip the http(s) filter, so a crawled site can plant a `javascript:` link in a check's findings. The dashboard CSP blocks it today. Now filtered in the crawler, and dash0 renders only http(s) links. - **AC5 (low)**: `specs/todos/2026-11-02-04-status-page-subscribers-admin-only.md`. Viewers can list a status page's subscriber email addresses. The list is now admin-only (breaking for viewer/user API clients). - **AC6 (low)**: `specs/todos/2026-11-02-05-password-reset-tokens-purged-on-change.md`. Outstanding password-reset links survive a password change, a reset and an email change. Reset links are now deleted on each of these. - **AC7 (medium)**: `specs/todos/2026-11-02-06-js-checker-process-isolation.md`. Each JS script now runs in a memory-limited child process of the same binary (heap watchdog, `RLIMIT_AS`, optional cgroup, kill at timeout); bindings stay served by the parent. A killed child gives an `error`/`timeout` result, the parent never crashes. `SP_JS_ISOLATION=off`, `SP_JS_MEMORY_LIMIT_MB`, `SP_JS_CGROUP` documented. About 11-27 ms overhead per run on macOS. ## Decided by autopilot - AC5 (subscribers admin only), open question "should `user` members keep the list?": no, admin only (recommended answer). ## Earlier scan specs (implemented, in `specs/done/2026/10/` and `specs/done/2026/11/`) - **AB1 (medium)**: `2026-11-01-01-js-checker-memory-budget-gaps.md`. The JS memory budget missed ropes, dense-array copies, `split`, `replace` and typed arrays. Fixed in #735; AC2 covers what is left. - **AB2 (medium)**: `2026-11-01-02-js-checker-regexp-timeout.md`. A backtracking JS regexp had no time limit. Fixed in #735 with a per-match limit; AC3 bounds a whole call. - **AB3 (low)**: `2026-11-01-03-discord-link-reauth.md`. Linking Discord needed no re-authentication. Fixed in #735. - **AB4 (low)**: `2026-11-01-04-invitation-cap-and-keyed-lookups.md`. Uncapped invitations and instance-wide invitation scans at sign-in. Fixed in #735. - **AA1 (medium)**: `2026-10-31-01-js-checker-memory-budget.md`. A JS check had no memory budget: one native builtin call could OOM-kill a shared worker. Fixed in #728; AB1 closes its residuals. - **AA2 (low)**: `2026-10-31-02-sign-in-factor-enrollment-reauth.md`. Turning on TOTP and registering a passkey needed no re-authentication. Fixed in #728; AB3 covers the Discord link. - **Z1 (low)**: `2026-10-30-02-bug-report-authenticated-org-membership.md`. Signed-in non-members skipped the bug-report screenshot budget. Fixed in #715. - **Z2 (low)**: `2026-10-30-03-report-retention-spares-crawl-reports.md`. The report retention sweep also deleted website crawl reports. Fixed in #715. - **Y1 (low)**: `2026-10-29-01-bug-report-upload-instance-budget.md`. Anonymous bug-report screenshots were capped per org, not per instance, and never deleted. Fixed in #708; Z1 and Z2 are follow-ups. - **X1 (high)**: `2026-10-28-01-pat-cannot-mint-sessions-or-sign-in-factors.md`. A PAT could open sessions in its owner's other orgs and add sign-in factors. Fixed in #699. - **X2 (medium)**: `2026-10-28-02-status-subscribe-throttle-and-keep-confirmed.md`. Unthrottled subscribe confirm emails, and re-subscribing un-confirmed a subscriber. Fixed in #699. - **X3 (medium on SaaS)**: `2026-10-28-03-invite-lookup-without-org-scan.md`. Invite lookup scanned every org. Fixed in #699. - **X4 (low)**: `2026-10-28-04-snmp-community-secret-field.md`. The SNMP community was not a secret field. Fixed in #699. - **V1 (medium)**: `2026-10-27-01-device-consent-phishing-guard.md`. Device-flow consent phishing. Fixed in #693. - **W1 (low)**: `2026-10-27-02-disable-2fa-attempt-throttle.md`. `DELETE /auth/2fa` had no attempt budget. Fixed in #693. - **U1 (low)**: `2026-10-26-02-ai-repair-hold-skips-param-only-secrets.md`. The `repair: auto` hold applied only when the check's `secrets` map had a value. Fixed in #683. - **S1 (medium)**: `2026-10-25-01-ai-repair-grant-dropped-by-reference-resolution.md`. The repair grant was compared after `${…}` references were resolved. Fixed in #678; U1 closed the remaining gap. - **R1 (medium)**: `2026-10-24-01-ai-repair-auto-apply-partial-runtime-host.md`. `repair: auto` applied a candidate that kept a literal host and added one built at runtime. Fixed in #663. - **Q1 (medium)**: `2026-10-23-02-ai-loop-secret-relay-through-model.md`. AI loops relayed an encoded secret through the model. - **P1 (medium)**: `2026-10-22-01-ai-script-secret-host-guard-runtime.md`. AI runs with real secrets were only host-checked by regex. - **K1 (medium)**: `2026-10-20-01-sender-response-body-caps.md`. Notification senders and RabbitMQ read responses uncapped. - **J1 (medium)**: `2026-10-19-01-a2a-response-size-cap.md`. A2A responses were read uncapped. - **I1 (low)**: `2026-10-18-01-plugin-schema-file-ref.md`. Plugin schema `$ref` could load local files. - **G1/G2 (low)**: `2026-10-17-01-postgres-check-connection-config.md`. Postgres conninfo escaping and fallback to the worker's `PG*` env. - **F1**: `2026-10-16-15-pat-cache-revocation.md`. The PAT cache outlived revocation. - **E1**: `2026-10-16-14-totp-on-federated-sign-in.md`. No TOTP on federated sign-in. - **E2**: `2026-10-16-13-atomic-auth-attempt-counters.md`. Auth attempt counters were not atomic. - **H3**: `2026-10-16-12-mcp-tokens-rejected-on-rest.md`. MCP OAuth tokens worked on REST. - **H2**: `2026-10-16-11-slack-signature-fail-closed.md`. Slack signature check failed open. - **T1 / M2 (high)**: `2026-10-16-10-discovery-scans-egress-guard.md`. Discovery scans were outside the egress policy. - **N4**: `2026-10-16-09-js-check-nested-docker-guard.md`. A JS `docker` sub-check bypassed the gate. - **N3 (high)**: `2026-10-16-08-status-page-components-cross-org.md`. Status-page components could be edited across orgs. - **D2/D3 (high)**: `2026-10-16-07-guard-status-subscriber-and-publication-webhooks.md`. Subscriber and publication webhooks were not guarded. - **C3**: `2026-10-16-06-accept-invite-existing-account.md`. Accepting an invite logged in as an existing account. - **C1**: `2026-10-16-05-kubeconfig-exec-and-incluster.md`. Kubeconfig `exec` and `inCluster` were allowed. - **N2**: `2026-10-16-04-mysql-dsn-injection.md`. MySQL DSN injection. - **N1**: `2026-10-16-03-env-secret-reference-allowlist.md`. No allowlist for `${env:}` references. - **C2/H1**: `2026-10-16-02-token-purpose-separation.md`. Purpose tokens were accepted as access tokens. - **D1**: `2026-10-16-01-microsoft-signin-unverified-email-linking.md`. Microsoft nOAuth email linking. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
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.
Specs filed from the daily security scans. Each spec is the tracker for its finding.
This branch also carries the maintainer's R1 fix (
08c3aa21and follow-ups), so it is no longer specs-only.Open (added by this PR)
specs/todos/2026-10-25-01-ai-repair-grant-dropped-by-reference-resolution.md. The R1 repair grant is compared against the script and env after${var:}/${param:}/${env:}references are resolved. Any reference in an auto-repaired script or env therefore silently drops the host allowlist on scheduled runs. It is a bypass of the R1 fix on this branch.Earlier scan specs on this branch (implemented, in
specs/done/2026/10/)2026-10-24-01-ai-repair-auto-apply-partial-runtime-host.md.repair: autoapplied a candidate that kept a literal host and added one built at runtime. Fixed on this branch; see S1 for a gap.2026-10-23-02-ai-loop-secret-relay-through-model.md. AI loops relayed an encoded secret through the model.2026-10-22-01-ai-script-secret-host-guard-runtime.md. AI runs with real secrets were only host-checked by regex.2026-10-20-01-sender-response-body-caps.md. Notification senders and RabbitMQ read responses uncapped.2026-10-19-01-a2a-response-size-cap.md. A2A responses were read uncapped.2026-10-18-01-plugin-schema-file-ref.md. Plugin schema$refcould load local files.2026-10-17-01-postgres-check-connection-config.md. Postgres conninfo escaping and fallback to the worker'sPG*env.2026-10-16-15-pat-cache-revocation.md. The PAT cache outlived revocation.2026-10-16-14-totp-on-federated-sign-in.md. No TOTP on federated sign-in.2026-10-16-13-atomic-auth-attempt-counters.md. Auth attempt counters were not atomic.2026-10-16-12-mcp-tokens-rejected-on-rest.md. MCP OAuth tokens worked on REST.2026-10-16-11-slack-signature-fail-closed.md. Slack signature check failed open.2026-10-16-10-discovery-scans-egress-guard.md. Discovery scans were outside the egress policy.2026-10-16-09-js-check-nested-docker-guard.md. A JSdockersub-check bypassed the gate.2026-10-16-08-status-page-components-cross-org.md. Status-page components could be edited across orgs.2026-10-16-07-guard-status-subscriber-and-publication-webhooks.md. Subscriber and publication webhooks were not guarded.2026-10-16-06-accept-invite-existing-account.md. Accepting an invite logged in as an existing account.2026-10-16-05-kubeconfig-exec-and-incluster.md. KubeconfigexecandinClusterwere allowed.2026-10-16-04-mysql-dsn-injection.md. MySQL DSN injection.2026-10-16-03-env-secret-reference-allowlist.md. No allowlist for${env:}references.2026-10-16-02-token-purpose-separation.md. Purpose tokens were accepted as access tokens.2026-10-16-01-microsoft-signin-unverified-email-linking.md. Microsoft nOAuth email linking.🤖 Generated with Claude Code