fix(security): remove SOP_FAIL_OPEN bypass branches from sop-tier-check.sh #2365

Closed
core-be wants to merge 1 commits from fix/sop-tier-remove-fail-open-dead-code into main
Member

Removes dead SOP_FAIL_OPEN bypass branches that remained in sop-tier-check.sh after the workflow stopped setting the env var on 2026-06-05.

Security issue: Any actor who could set SOP_FAIL_OPEN=1 in the environment could re-enable fail-open behavior, causing the SOP-6 tier gate to green on:

  • jq install failure
  • token/user resolution failure
  • PR head SHA fetch failure
  • org teams list fetch failure
  • reviews fetch failure

Fix: All five branches removed. Every infra fault now fails closed (exit 1 with ::error::).

Refs: bc7c45f3 (intended fix that missed the commit), fix/core-ci-fail-closed.

Removes dead SOP_FAIL_OPEN bypass branches that remained in sop-tier-check.sh after the workflow stopped setting the env var on 2026-06-05. **Security issue:** Any actor who could set `SOP_FAIL_OPEN=1` in the environment could re-enable fail-open behavior, causing the SOP-6 tier gate to green on: - jq install failure - token/user resolution failure - PR head SHA fetch failure - org teams list fetch failure - reviews fetch failure **Fix:** All five branches removed. Every infra fault now fails closed (exit 1 with `::error::`). Refs: bc7c45f3 (intended fix that missed the commit), fix/core-ci-fail-closed.
core-be added 1 commit 2026-06-06 12:42:34 +00:00
fix(security): remove SOP_FAIL_OPEN bypass branches from sop-tier-check.sh
ci-arm64-advisory / fast-checks (pull_request) Waiting to run
CI / Python Lint & Test (pull_request) Successful in 3s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 4s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 3s
E2E Chat / detect-changes (pull_request) Successful in 7s
E2E API Smoke Test / detect-changes (pull_request) Successful in 7s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2s
gate-check-v3 / gate-check (pull_request_target) Successful in 6s
qa-review / approved (pull_request_target) Failing after 5s
E2E Chat / E2E Chat (pull_request) Successful in 2s
CI / Detect changes (pull_request) Successful in 19s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 15s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 15s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 17s
sop-checklist / review-refire (pull_request_target) Has been skipped
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 12s
sop-checklist / all-items-acked (pull_request) acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: comprehensive-testing, local-postgres-e2
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request_target) Successful in 4s
security-review / approved (pull_request_target) Failing after 5s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 3s
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Successful in 17s
CI / Platform (Go) (pull_request) Successful in 5s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 5s
sop-tier-check / tier-check (pull_request_target) Failing after 7s
CI / Canvas (Next.js) (pull_request) Successful in 6s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 5s
CI / Canvas Deploy Status (pull_request) Has been skipped
CI / all-required (pull_request) Successful in 1s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m2s
Ops Scripts Tests / Ops scripts (unittest) (pull_request) Successful in 1m1s
audit-force-merge / audit (pull_request_target) Has been skipped
347613a903
The SOP_FAIL_OPEN env var was removed from the workflow on 2026-06-05
(fix/core-ci-fail-closed), but the dead bypass branches remained in the
script. Any actor who could set SOP_FAIL_OPEN=1 in the environment could
re-enable the fail-open behavior, causing the SOP-6 tier gate to green
on auth failures, network outages, or missing jq.

Removed 5 bypass branches:
- jq install failure (exit 0 instead of exit 1)
- token/user resolution failure
- PR head SHA fetch failure
- org teams list fetch failure
- reviews fetch failure

All five now fail closed (exit 1 with ::error::) per the mc#1982
protocol and the 2026-06-05 workflow change.

Refs: bc7c45f3 (intended fix that missed the commit), fix/core-ci-fail-closed.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
core-be closed this pull request 2026-06-06 13:05:02 +00:00
Some checks are pending
ci-arm64-advisory / fast-checks (pull_request) Waiting to run
CI / Python Lint & Test (pull_request) Successful in 3s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 4s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 3s
E2E Chat / detect-changes (pull_request) Successful in 7s
E2E API Smoke Test / detect-changes (pull_request) Successful in 7s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2s
Required
Details
gate-check-v3 / gate-check (pull_request_target) Successful in 6s
qa-review / approved (pull_request_target) Failing after 5s
E2E Chat / E2E Chat (pull_request) Successful in 2s
CI / Detect changes (pull_request) Successful in 19s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 15s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 15s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 17s
sop-checklist / review-refire (pull_request_target) Has been skipped
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 12s
sop-checklist / all-items-acked (pull_request) acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: comprehensive-testing, local-postgres-e2
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request_target) Successful in 4s
security-review / approved (pull_request_target) Failing after 5s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 3s
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Successful in 17s
CI / Platform (Go) (pull_request) Successful in 5s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 5s
sop-tier-check / tier-check (pull_request_target) Failing after 7s
CI / Canvas (Next.js) (pull_request) Successful in 6s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 5s
Required
Details
CI / Canvas Deploy Status (pull_request) Has been skipped
CI / all-required (pull_request) Successful in 1s
Required
Details
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m2s
Ops Scripts Tests / Ops scripts (unittest) (pull_request) Successful in 1m1s
audit-force-merge / audit (pull_request_target) Has been skipped
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request)
Required

Pull request closed

Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#2365