-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[ResponseOps] Granular connector RBAC followup #205818
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
|
/ci |
|
Pinging @elastic/response-ops (Team:ResponseOps) |
paul-tavares
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.
Thank you for the changes. I checked the PR out and ran through the security solution functionality and LGTM 👍
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
|
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. Works as described.
|
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/12896296671 |
## Summary This PR is followup to, elastic#203503. This PR adds a test to make sure that sub-feature description remains accurate, and changes to hide the connector edit test tab and create connector button when a user only has read access. ### Checklist - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios ### To verify 1. Create a new read only role and disable EDR connectors under the Actions and Connectors privilege 2. Create a new user and assign that role to user 3. Create a Sentinel One connector (It doesn't need to work, you can use fake values for the url and token) 4. Login as the new user and go to the connector page in stack management 5. Verify that the "Create connector" button is not visible 6. Click on the connector you created, verify that you can't see the test tab (cherry picked from commit 12998a8)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [[ResponseOps] Granular connector RBAC followup (#205818)](#205818) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Alexi Doak","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-21T21:33:54Z","message":"[ResponseOps] Granular connector RBAC followup (#205818)\n\n## Summary\r\n\r\nThis PR is followup to, https://github.com/elastic/kibana/pull/203503.\r\nThis PR adds a test to make sure that sub-feature description remains\r\naccurate, and changes to hide the connector edit test tab and create\r\nconnector button when a user only has read access.\r\n\r\n### Checklist\r\n\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n\r\n### To verify\r\n\r\n1. Create a new read only role and disable EDR connectors under the\r\nActions and Connectors privilege\r\n2. Create a new user and assign that role to user\r\n3. Create a Sentinel One connector (It doesn't need to work, you can use\r\nfake values for the url and token)\r\n4. Login as the new user and go to the connector page in stack\r\nmanagement\r\n5. Verify that the \"Create connector\" button is not visible\r\n6. Click on the connector you created, verify that you can't see the\r\ntest tab","sha":"12998a8fe1823c3ba672ad8ff68a1292ccc72d8e","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","v9.0.0","backport:prev-minor","v8.18.0"],"title":"[ResponseOps] Granular connector RBAC followup","number":205818,"url":"https://github.com/elastic/kibana/pull/205818","mergeCommit":{"message":"[ResponseOps] Granular connector RBAC followup (#205818)\n\n## Summary\r\n\r\nThis PR is followup to, https://github.com/elastic/kibana/pull/203503.\r\nThis PR adds a test to make sure that sub-feature description remains\r\naccurate, and changes to hide the connector edit test tab and create\r\nconnector button when a user only has read access.\r\n\r\n### Checklist\r\n\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n\r\n### To verify\r\n\r\n1. Create a new read only role and disable EDR connectors under the\r\nActions and Connectors privilege\r\n2. Create a new user and assign that role to user\r\n3. Create a Sentinel One connector (It doesn't need to work, you can use\r\nfake values for the url and token)\r\n4. Login as the new user and go to the connector page in stack\r\nmanagement\r\n5. Verify that the \"Create connector\" button is not visible\r\n6. Click on the connector you created, verify that you can't see the\r\ntest tab","sha":"12998a8fe1823c3ba672ad8ff68a1292ccc72d8e"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/205818","number":205818,"mergeCommit":{"message":"[ResponseOps] Granular connector RBAC followup (#205818)\n\n## Summary\r\n\r\nThis PR is followup to, https://github.com/elastic/kibana/pull/203503.\r\nThis PR adds a test to make sure that sub-feature description remains\r\naccurate, and changes to hide the connector edit test tab and create\r\nconnector button when a user only has read access.\r\n\r\n### Checklist\r\n\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n\r\n### To verify\r\n\r\n1. Create a new read only role and disable EDR connectors under the\r\nActions and Connectors privilege\r\n2. Create a new user and assign that role to user\r\n3. Create a Sentinel One connector (It doesn't need to work, you can use\r\nfake values for the url and token)\r\n4. Login as the new user and go to the connector page in stack\r\nmanagement\r\n5. Verify that the \"Create connector\" button is not visible\r\n6. Click on the connector you created, verify that you can't see the\r\ntest tab","sha":"12998a8fe1823c3ba672ad8ff68a1292ccc72d8e"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Alexi Doak <[email protected]>
## Summary This PR is followup to, elastic#203503. This PR adds a test to make sure that sub-feature description remains accurate, and changes to hide the connector edit test tab and create connector button when a user only has read access. ### Checklist - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios ### To verify 1. Create a new read only role and disable EDR connectors under the Actions and Connectors privilege 2. Create a new user and assign that role to user 3. Create a Sentinel One connector (It doesn't need to work, you can use fake values for the url and token) 4. Login as the new user and go to the connector page in stack management 5. Verify that the "Create connector" button is not visible 6. Click on the connector you created, verify that you can't see the test tab
Summary
This PR is followup to, #203503. This PR adds a test to make sure that sub-feature description remains accurate, and changes to hide the connector edit test tab and create connector button when a user only has read access.
Checklist
To verify