-
Notifications
You must be signed in to change notification settings - Fork 25.3k
[Authz] Allow update settings action for system user #34030
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
Changes from all commits
5c31415
f030090
a118ab7
cddd75e
6549ceb
bf477ea
27d96c8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -568,9 +568,12 @@ private ElasticsearchSecurityException denialException(Authentication authentica | |
} | ||
// check for run as | ||
if (authentication.getUser().isRunAs()) { | ||
logger.debug("action [{}] is unauthorized for user [{}] run as [{}]", action, authUser.principal(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't really see much value in having these log messages when we have an audit log. Can you explain how they help? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think while debugging it is easier to see the logs than correlating with another file, also audit logging is disabled by default (yes no one would run prod without audit logs disabled but still). |
||
authentication.getUser().principal()); | ||
return authorizationError("action [{}] is unauthorized for user [{}] run as [{}]", action, authUser.principal(), | ||
authentication.getUser().principal()); | ||
} | ||
logger.debug("action [{}] is unauthorized for user [{}]", action, authUser.principal()); | ||
return authorizationError("action [{}] is unauthorized for user [{}]", action, authUser.principal()); | ||
} | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.