Repository navigation
Harden the debugbar for production mode - #74
Merged
Merged
Conversation
Member
Author
|
Review at 3dd8315: FAIL One docs gap, code otherwise sound. CI: JS and PHP 8.2 to 8.5 all pass at this head, MERGEABLE. Must fix (docs)
Verified
|
allrude
force-pushed
the
lane-2/production-hardening
branch
from
November 19, 2026 22:55
3dd8315 to
6448fc6
Compare
Member
Author
|
Review at 6448fc6: PASS Re-review after the earlier FAIL at 3dd8315.
|
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.
Hardens the bar for live shops. Developer and default mode behave as before.
In
productiondeploy mode only:allowed_ipsmust be non empty, otherwise the bar is off (it used to mean everyone).X-Siteation-DebugBar-Keyheader or the cookie, never the URL parameter. No cookie swap or redirect either.enabledswitch only counts when set inenv.phporconfig.php(config:set --lock-env), not the admin/database value.ProductionModeRule.CollectionStatereplacesProfileManager::isCollecting()in the seven plugins, which now hold the manager and their collectors behind proxies inetc/di.xml.Breaking in production: a URL key, an empty
allowed_ips, or an admin saved switch stops working. Plugin constructors takeCollectionStatefirst andProfileManagertakes it before$collectors. Runsetup:di:compileafter upgrading.Notes for review:
system/default/...only, not per website or store.Docs: user guide "Production mode", developer guide, README, CHANGELOG.
LazyPluginsTestpins the proxy wiring indi.xml.