Skip to content

Increase log level for unauthorized API access attempts #59998

@legrego

Description

@legrego

Currently, we emit a debug log message whenever an under-privileged user attempts to access an API endpoint:

logger.debug(`not authorized for "${request.url.path}"`);

To assist in debugging authorization issues, it would be helpful if we could increase this to something that would be logged by default (perhaps info or warn). This should not be logged all that often under normal operating conditions, so IMO there is little risk to increasing this.

If a setup is seeing this log message spammed, then there is an authorization issue that should be addressed.

Metadata

Metadata

Assignees

Labels

Team:SecurityPlatform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t//chore

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions