Skip to content

Conversation

@doakalexi
Copy link
Contributor

@doakalexi doakalexi commented Oct 24, 2024

Resolves https://github.com/elastic/response-ops-team/issues/250

Summary

This PR eliminates the alerting RBAC exemption code. It removes all references to getAuthorizationModeBySource and bulkGetAuthorizationModeBySource, 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.

@doakalexi doakalexi changed the title Removing legacy rbac code [ResponseOps] Cleanup alerting RBAC exception code Oct 24, 2024
@doakalexi doakalexi added Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting v9.0.0 labels Oct 24, 2024
@doakalexi doakalexi marked this pull request as ready for review October 28, 2024 17:03
@doakalexi doakalexi requested a review from a team as a code owner October 28, 2024 17:03
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

});

describe('execute()', () => {
describe('authorization', () => {
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

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

Copy link
Contributor

@ymao1 ymao1 left a 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.

@doakalexi doakalexi self-assigned this Oct 30, 2024
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
@kbn/test-suites-xpack 732 731 -1

Total ESLint disabled count

id before after diff
@kbn/test-suites-xpack 757 756 -1

History

cc @doakalexi

@doakalexi doakalexi merged commit e6c3e6e into elastic:main Oct 30, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants