Skip to content

fix(security): refuse allow_unauthenticated in production - #9

Merged
HecFranco merged 1 commit into
mainfrom
sec-prod-guard
Oct 28, 2026
Merged

HecFranco merged 1 commit into
mainfrom
sec-prod-guard

Conversation

@HecFranco

Copy link
Copy Markdown
Contributor

Full review 2026-10-28 (cross-bundle, user decision): security.allow_unauthenticated (dev/demo switch, opens the layout admin to anonymous users) now fails compilation in the prod environment and in non-debug kernels outside test* — same rule as ContactFormBundle 1.6.0. The demo already sets it to false.

Tests: dev/test allowed, prod and non-debug staging refused. Checks (local, Docker): cs-check, rector-dry, phpstan OK; 217 tests, line coverage 100 %. Proposed release: 1.9.0.

The switch opens the layout admin to anonymous users; the container refuses to
compile with it in prod or in non-debug kernels outside test* environments.
@github-actions

Copy link
Copy Markdown

@coderabbitai review

@HecFranco
HecFranco merged commit c87d4f7 into main Oct 28, 2026
14 checks passed
@HecFranco
HecFranco deleted the sec-prod-guard branch October 28, 2026 16:06
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