-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Finalize removal of legacy audit logger #116282
Conversation
9698215
to
14ee649
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alerting changes LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job on this! I have a few nits below, other than those it looks good.
Also, x-pack/plugins/encrypted_saved_objects/README.md
currently reads:
The purpose of this plugin is to provide a way to encrypt/decrypt attributes on the custom Saved Objects that works with security and spaces filtering as well as performing audit logging.
We should update that to remove mention of audit logging, since we opted not to add ESO-specific audit events anymore.
x-pack/plugins/security/server/spaces/secure_spaces_client_wrapper.ts
Outdated
Show resolved
Hide resolved
@@ -119,7 +116,6 @@ export class SecurityLicenseService { | |||
showRoleMappingsManagement: isLicenseGoldOrBetter, | |||
allowAccessAgreement: isLicenseGoldOrBetter, | |||
allowAuditLogging: isLicenseGoldOrBetter, | |||
allowLegacyAuditLogging: isLicenseStandardOrBetter, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL there is such thing as a "Standard" license.
if (!authorizedRuleTypes.size) { | ||
throw Boom.forbidden( | ||
this.auditLogger.logUnscopedAuthorizationFailure(username!, 'find', authorizationEntity) | ||
); | ||
throw Boom.forbidden(`Unauthorized to find ${authorizationEntity}s for any rule types`); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a better error message 👍
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, one last thing! I mentioned in #116282 (comment) that the ensureAuthorizedAtSpace
method in the SecureSpacesWrapper
has a now-unused method
parameter, it can be removed. I can't comment on that part of the code directly as you didn't change it 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes! LGTM
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Page load bundle
Unknown metric groupsAPI count
References to deprecated APIs
History
To update your PR or re-run it, just comment with: cc @watson |
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Follow up to PR #116191
Docs preview link: https://kibana_116282.docs-preview.app.elstc.co/diff