Repository navigation
fix(security): land CORS warn-on-malformed + '*' wildcard fail-closed (F-8 follow-up, card 0aa14d62) - #304
Merged
Conversation
PR Check Results✅ Code Formatting: Passed |
❌ FAIL Trivy Security Scan Results
Scans performed:
❌ CRITICAL vulnerabilities must be resolved before merge. 📋 View detailed SARIF reportsDownload artifacts from this workflow run for full SARIF reports. Trivy v0.71.0 | aquasecurity/trivy |
PR Check Results✅ Code Formatting: Passed |
added 3 commits
November 11, 2026 15:56
…(F-8) — cards a23bb749, 94969304 - Trim + rstrip '/' per entry (idempotent, never widens allowlist); explicit boot WARN listing normalized/discarded entries — fail-closed semantics unchanged, only observability added. - CorsMethodGuardMiddleware: strip access-control-allow-origin from actual responses with non-allowed methods (Starlette only enforces the method allowlist on preflights). - Tests: dev-defaults branch (with/without CORS_ORIGINS), negatives (disallowed method, unlisted origin -> no aco header), rstrip normalization + idempotency + boot WARN assertion.
…26-68517 pattern) — cards a23bb749, 94969304 - _parse_cors_origins: '*' goes to discarded, never to origins (REWORK finding: '*' parsed as literal origin -> allow-all via ACAO echo). - Tests: wildcard preflight in production has no access-control-allow- origin; '*' asserted in _cors_discarded + boot WARN lists it.
…odeQL py/incomplete-url-substring-sanitization) — card 0aa14d62
SabaTech-dev
force-pushed
the
fix/f8-cors-warn-land
branch
from
November 11, 2026 15:57
ee4a7dc to
57da9e9
Compare
PR Check Results✅ Code Formatting: Passed |
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.
Landing the two residual F-8 CORS commits from stale branch (never merged, no PR, heavily diverged from main) cherry-picked onto current origin/main:
Context: core config-driven CORS hardening already landed via merged PR #236 (feature/cors-f8-hardening). PR #106 referenced in card title is CLOSED and unrelated (rate-limit). Branch names in dispatch (feat/cors-config, feat/gh-actions-secrets) do not exist in the repo.
Verification: dashboard/backend/tests/unit/test_cors_hardening.py — 20/20 PASSED (local, fresh py3.12 venv, worktree cors-warn-land).,