Repository navigation
security: codemender 2026 12 05 - #2551
Merged
Merged
Conversation
- Terraform: keep worker egress on the standalone rules only (inline egress = [] stripped them every other apply) and restore the IMDSv2 deny to StringNotEquals. - windows-spawn: refuse only %VAR% references; a lone % is caret-escaped. - decision: drop evicted Anthropic clients instead of closing them under in-flight requests. - launcher-link: a connection that never says hello is dropped without reporting the launcher lost. - workspace_creation: remove the no-op read=False and its comments. - channelLinks: a refused channel link warns or raises instead of doing nothing. - collaborations: make bridge_store required and run the bridge, tenant and membership checks unconditionally. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…026-12-05 # Conflicts: # console/packages/agent-controller/src/systemd-runtime.test.ts # console/packages/agent-controller/src/systemd-runtime.ts # console/packages/shared/src/windows-spawn.test.ts # console/packages/shared/src/windows-spawn.ts # core/switch_core/db/stores/user_store.py # core/switch_core/gateway/origin_check.py # core/tests/switch_core/gateway/test_origin_check.py # core/tests/switch_core/gateway/test_support_requests.py # decision/switch_decision/backends.py # decision/tests/test_api.py # gateway/src/data/channelLinks.test.ts # gateway/src/data/channelLinks.ts
- Account deletion with organizations no longer reaches the RLS-exempt tenant lookup or opens an unbound session. The organization holding the default workspace is found by reading that workspace's own row, and the account's WorkOS user ids are read through PurgeElsewhere, which already reads oidc_identities on its own session. Same results as before; adds a test that the default workspace's organization is never offered. - Gateway: the Free Beta copy uses "Switch" and "device" instead of the retired "server" and "machine". - Gateway: Finish later on Get started is offered only on test servers, so the Free Beta test that uses it runs on one. - E2E browser lane: the team survey is split in two; click Next before the use cases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
petr-sandbox
marked this pull request as ready for review
December 6, 2026 06:57
petr-sandbox
requested review from
amaudruz and
christian-mcdermott
as code owners
December 6, 2026 06:57
petr-sandbox
requested review from
abeldantas,
agent-runner353,
lbangalosbt,
massimo-sandboxaq,
niall-sandboxaq,
raullopez-sandbox and
simonflk-sb
as code owners
December 6, 2026 06:57
amaudruz
approved these changes
Dec 6, 2026
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.
Security fixes from an automated code-scanning pass, plus fixes from reviewing them. Fixes that also landed on
mainseparately (Windows spawn escaping, the decision service's client cache, systemd credentials, the gateway origin check, OIDC account linking, the support-request rate limit) were merged in favour ofmain's version, so they are no longer part of this diff.Tenant isolation
ExternalUserStorefilters lookups of external users, their claims and their link requests by the bound tenant. The verify, cancel and release identity endpoints return 404 when the bridge or the identity belongs to another workspace. An admin who cancels or releases a link for someone outside the workspace also gets 404.my_context: the workspace member count counts only the agent's own workspace instead of every tenant's members.Injection and escaping
httpsonly, port 443, a well-formed hostname, no backslashes, whitespace or control characters, and an exact match onslack.comorslack-gov.comor a subdomain.render_mentionsdoesn't turn them back into mentions.&&instead of;.http(s)and the known messaging-app schemes are linked. Any other link logs a warning, andopenChannelLinkthrows an error that its caller shows.Robustness
waitingand nothing logslauncher_lost.ensure_default_workspace: re-reads the organization row once it holds the lock (populate_existing).egress, and the IMDSv2 deny keepsStringNotEquals: the PR's first versions of both were reverted, because they made the egress rules flap between applies and let a launch without metadata options skip the deny.CI fixes for failures inherited from
maintenants_of_organizationand stops opening an unbound session. It finds the organization holding the default workspace by reading that workspace's own row, and reads the account's WorkOS user ids throughPurgeElsewhere. Results are unchanged. A new test checks that the default workspace's organization is never offered.Tests
New or extended tests cover cross-tenant access to the identity endpoints, attachment-group scoping, Slack and Webex escaping, workspace allowance and default-workspace concurrency, the launcher link, and channel links. Checked locally: core gateway, collaboration, delivery, telemetry and store suites (11,939 passed), decision (540), the touched console and gateway suites,
terraform test, ruff and mypy.🤖 Generated with Claude Code