-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[ResponseOps] Cleanup alerting RBAC exception code #197719
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
Conversation
|
Pinging @elastic/response-ops (Team:ResponseOps) |
| }); | ||
|
|
||
| describe('execute()', () => { | ||
| describe('authorization', () => { |
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.
we should keep the RBAC authorization tests right?
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.
Yes you're right! I prob shouldn't have removed all of them
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.
Resolved in this commit 83caa27
ymao1
left a comment
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.
LGTM, just one comment about keeping some RBAC auth tests.
💚 Build Succeeded
Metrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
cc @doakalexi |
Resolves https://github.com/elastic/response-ops-team/issues/250
Summary
This PR eliminates the alerting RBAC exemption code. It removes all references to
getAuthorizationModeBySourceandbulkGetAuthorizationModeBySource, along with the corresponding legacy RBAC usage counters. Additionally, downstream code paths that rely on RBAC for authorization have been updated, and all related test cases have been removed.