Skip to content
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

[EDR Workflows] Workflow Insights - Change update api RBAC #210637

Merged

Conversation

szwarckonrad
Copy link
Contributor

@szwarckonrad szwarckonrad commented Feb 11, 2025

This PR addresses an issue where users with read privilege to insights were unable to successfully complete a remediation path due to the inability to mark an insight as remediated at the final step.

With this change, we adjust the required permissions for interacting with the update API from writeWorkflowInsights to readWorkflowInsights. The rationale behind this is that writeWorkflowInsights should signify the ability to trigger new scans for insights, while readWorkflowInsights should be sufficient for addressing found issues without the option to generate new ones.

Screen.Recording.2025-02-12.at.10.22.11.mov

@szwarckonrad szwarckonrad self-assigned this Feb 12, 2025
@szwarckonrad szwarckonrad added release_note:skip Skip the PR/issue when compiling release notes v9.0.0 Team:Defend Workflows “EDR Workflows” sub-team of Security Solution backport:version Backport to applied version labels v9.1.0 labels Feb 12, 2025
@elasticmachine
Copy link
Contributor

elasticmachine commented Feb 12, 2025

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #29 / maps app geo file upload geojson file upload should add as document layer

Metrics [docs]

✅ unchanged

History

cc @szwarckonrad

@szwarckonrad szwarckonrad marked this pull request as ready for review February 12, 2025 13:04
@szwarckonrad szwarckonrad requested a review from a team as a code owner February 12, 2025 13:04
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-defend-workflows (Team:Defend Workflows)

@szwarckonrad szwarckonrad merged commit f4365f6 into elastic:main Feb 13, 2025
9 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 9.0

https://github.com/elastic/kibana/actions/runs/13312112828

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 13, 2025
…10637)

This PR addresses an issue where users with read privilege to insights
were unable to successfully complete a remediation path due to the
inability to mark an insight as remediated at the final step.

With this change, we adjust the required permissions for interacting
with the update API from writeWorkflowInsights to readWorkflowInsights.
The rationale behind this is that writeWorkflowInsights should signify
the ability to trigger new scans for insights, while
readWorkflowInsights should be sufficient for addressing found issues
without the option to generate new ones.

https://github.com/user-attachments/assets/8c1af654-d9e4-40d7-8718-1388677e8d46
(cherry picked from commit f4365f6)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
9.0

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Feb 13, 2025
…0637) (#211039)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[EDR Workflows] Workflow Insights - Change update api RBAC
(#210637)](#210637)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Konrad
Szwarc","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-13T16:14:51Z","message":"[EDR
Workflows] Workflow Insights - Change update api RBAC (#210637)\n\nThis
PR addresses an issue where users with read privilege to insights\nwere
unable to successfully complete a remediation path due to the\ninability
to mark an insight as remediated at the final step.\n\nWith this change,
we adjust the required permissions for interacting\nwith the update API
from writeWorkflowInsights to readWorkflowInsights.\nThe rationale
behind this is that writeWorkflowInsights should signify\nthe ability to
trigger new scans for insights, while\nreadWorkflowInsights should be
sufficient for addressing found issues\nwithout the option to generate
new
ones.\n\n\nhttps://github.com/user-attachments/assets/8c1af654-d9e4-40d7-8718-1388677e8d46","sha":"f4365f6e8999c311335af87db60a6b378f8f4ed2","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Defend
Workflows","backport:version","v9.1.0"],"title":"[EDR Workflows]
Workflow Insights - Change update api
RBAC","number":210637,"url":"https://github.com/elastic/kibana/pull/210637","mergeCommit":{"message":"[EDR
Workflows] Workflow Insights - Change update api RBAC (#210637)\n\nThis
PR addresses an issue where users with read privilege to insights\nwere
unable to successfully complete a remediation path due to the\ninability
to mark an insight as remediated at the final step.\n\nWith this change,
we adjust the required permissions for interacting\nwith the update API
from writeWorkflowInsights to readWorkflowInsights.\nThe rationale
behind this is that writeWorkflowInsights should signify\nthe ability to
trigger new scans for insights, while\nreadWorkflowInsights should be
sufficient for addressing found issues\nwithout the option to generate
new
ones.\n\n\nhttps://github.com/user-attachments/assets/8c1af654-d9e4-40d7-8718-1388677e8d46","sha":"f4365f6e8999c311335af87db60a6b378f8f4ed2"}},"sourceBranch":"main","suggestedTargetBranches":["9.0"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/210637","number":210637,"mergeCommit":{"message":"[EDR
Workflows] Workflow Insights - Change update api RBAC (#210637)\n\nThis
PR addresses an issue where users with read privilege to insights\nwere
unable to successfully complete a remediation path due to the\ninability
to mark an insight as remediated at the final step.\n\nWith this change,
we adjust the required permissions for interacting\nwith the update API
from writeWorkflowInsights to readWorkflowInsights.\nThe rationale
behind this is that writeWorkflowInsights should signify\nthe ability to
trigger new scans for insights, while\nreadWorkflowInsights should be
sufficient for addressing found issues\nwithout the option to generate
new
ones.\n\n\nhttps://github.com/user-attachments/assets/8c1af654-d9e4-40d7-8718-1388677e8d46","sha":"f4365f6e8999c311335af87db60a6b378f8f4ed2"}}]}]
BACKPORT-->

Co-authored-by: Konrad Szwarc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v9.0.0 v9.1.0
Projects
None yet
5 participants