Skip to content

Conversation

@dereuromark
Copy link
Member

@dereuromark dereuromark commented Nov 14, 2025

Whats the whole point of this flag if that action is only to be used in debug mode

Cake\Http\Exception\NotFoundException: Not available without debug mode o

And debug mode by definition should only be a local dev thing (thus access should be granted).

Having to set this flag for all apps is quite annoying, and I dont really see any security relevant point in it.

For now you can still disable using

Configure::write('DebugKit.ignoreAuthorization', false);

but I dont quite see the point here for DebugKit and debug mode on (the only way it can actually work and display things anyway).

@dereuromark dereuromark added this to the 5.x milestone Nov 14, 2025
@dereuromark dereuromark marked this pull request as ready for review November 14, 2025 02:11
$authorizationService = $this->getRequest()->getAttribute('authorization');
if ($authorizationService instanceof AuthorizationService) {
if (Configure::read('DebugKit.ignoreAuthorization')) {
if (Configure::read('DebugKit.ignoreAuthorization') !== false) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We had defaulted to off to take care of the inevitable situation of someone deploying with debug on. The hope was that folks wouldn't also deploy this config option.

Copy link
Member Author

@dereuromark dereuromark Nov 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thats highly unlikely, as this is usually a committed config setting then (not a app_local one) :)
So not really protecting anyone here IMO

@markstory markstory merged commit a6478ea into 5.next Nov 17, 2025
8 of 9 checks passed
@markstory markstory deleted the fix-debug-mode-default branch November 17, 2025 19:35
@dereuromark dereuromark mentioned this pull request Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants