Skip to content

agent-friendly L2-5: CI ban CORS AllowOrigins * - #20

Merged
patote85 merged 1 commit into
mainfrom
agent-friendly/l2-5-ban-cors-star
Sep 24, 2026
Merged

patote85 merged 1 commit into
mainfrom
agent-friendly/l2-5-ban-cors-star

Conversation

@patote85

Copy link
Copy Markdown
Owner

L2-5 — CI ban CORS AllowOrigins *

Changes

  • Add tests/test_cdk_cors_ban.py: fails if any cdk/**/*.py contains the string literal "*" / '*' (CORS origin wildcard)
  • Invoked via existing make check / CI pytest tests/ (same target — not README-only)

Verification

  • Local: test passes on current localhost-only CDK CORS
  • Prova negativa: injecting "*" into cors origins list OR allow_origins=["*"] fails the test

CAB waived.

Add tests/test_cdk_cors_ban.py — fails if cdk/**/*.py contains '*' string literal.
Covered by make check / CI pytest tests/.
@patote85
patote85 merged commit 9839333 into main Sep 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant