Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase log level for unauthorized API access attempts #59998

Closed
legrego opened this issue Mar 12, 2020 · 1 comment · Fixed by #63350
Closed

Increase log level for unauthorized API access attempts #59998

legrego opened this issue Mar 12, 2020 · 1 comment · Fixed by #63350
Assignees
Labels
chore Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!

Comments

@legrego
Copy link
Member

legrego commented Mar 12, 2020

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.

@legrego legrego added chore Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! labels Mar 12, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants