-
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
[Security Solution] Make savedQueryManagement feature explicit in Serverless #208911
Conversation
Pinging @elastic/security-solution (Team: SecuritySolution) |
Hi @semd - we've noticed an issue when testing this. cc: @azasypkin @jeramysoucy
|
Yes, this is expected with the deprecated This is exactly what we are trying to prevent for
This happens because For the kibana/config/serverless.security.yml Lines 64 to 88 in 0e7c608
Then In summary, this feature is causing weird behavior in the Roles UI, as you see, that's what we are trying to fix for the |
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.
@semd Thank you for the detailed explanation. I also confirmed with @azasypkin that this is as expected. Everything else looks good to me!
The PR also fixes a bug detected by MKI tests here, related to the deprecated |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
cc @semd |
Starting backport for target branches: 8.18, 9.0 |
…verless (elastic#208911) ## Summary Remove the implicit grant of the `savedQueryManagement` feature with the Security Solution basic feature (ID: `siemV2`) in Serverless. This is a follow-up of elastic#202863 ### Feature `siemV2` This change only affects new roles created with the `siemV2` feature, introduced recently [here](elastic#201780). This change will align the Roles UI in Serverless and ESS, both requiring the `savedQueryManagement` feature to be explicitly granted to be able to manage saved queries. ### Feature `siem` Roles using the deprecated `siem` feature will still implicitly receive the `savedQueryManagement` feature (via an implicit grant of `discover`, `dashboard`, `visualize`, and `maps`) + migration to their `*v2` features which include `savedQueryManagement`. So there's no behavior change for existing roles using the old `siem` feature (no breaking change). ## Screenshots The siem/siemV2 feature toggle: <img width="774" alt="siem feature" src="https://github.com/user-attachments/assets/2759988a-3cf8-4e1f-9431-16c09cf9d95c" /> The savedQueryManagement feature toggle: <img width="774" alt="Saved query feature" src="https://github.com/user-attachments/assets/d0145244-f4b8-4577-b91f-93f4dd1f758b" /> (cherry picked from commit 3d5972a)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
…in Serverless (#208911) (#209127) # Backport This will backport the following commits from `main` to `9.0`: - [[Security Solution] Make savedQueryManagement feature explicit in Serverless (#208911)](#208911) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Sergi Massaneda","email":"sergi.massaneda@elastic.co"},"sourceCommit":{"committedDate":"2025-01-31T14:56:06Z","message":"[Security Solution] Make savedQueryManagement feature explicit in Serverless (#208911)\n\n## Summary\r\n\r\nRemove the implicit grant of the `savedQueryManagement` feature with the\r\nSecurity Solution basic feature (ID: `siemV2`) in Serverless.\r\n\r\n\r\nThis is a follow-up of https://github.com/elastic/kibana/pull/202863\r\n\r\n### Feature `siemV2`\r\nThis change only affects new roles created with the `siemV2` feature,\r\nintroduced recently\r\n[here](https://github.com/elastic/kibana/pull/201780).\r\nThis change will align the Roles UI in Serverless and ESS, both\r\nrequiring the `savedQueryManagement` feature to be explicitly granted to\r\nbe able to manage saved queries.\r\n\r\n### Feature `siem`\r\nRoles using the deprecated `siem` feature will still implicitly receive\r\nthe `savedQueryManagement` feature (via an implicit grant of `discover`,\r\n`dashboard`, `visualize`, and `maps`) + migration to their `*v2`\r\nfeatures which include `savedQueryManagement`. So there's no behavior\r\nchange for existing roles using the old `siem` feature (no breaking\r\nchange).\r\n\r\n## Screenshots\r\n\r\nThe siem/siemV2 feature toggle:\r\n<img width=\"774\" alt=\"siem feature\"\r\nsrc=\"https://github.com/user-attachments/assets/2759988a-3cf8-4e1f-9431-16c09cf9d95c\"\r\n/>\r\n\r\nThe savedQueryManagement feature toggle:\r\n<img width=\"774\" alt=\"Saved query feature\"\r\nsrc=\"https://github.com/user-attachments/assets/d0145244-f4b8-4577-b91f-93f4dd1f758b\"\r\n/>","sha":"3d5972aa0f2650a1ac94b3485ea91c26d68a131f","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: SecuritySolution","ci:build-serverless-image","backport:version","v8.18.0","v9.1.0"],"title":"[Security Solution] Make savedQueryManagement feature explicit in Serverless","number":208911,"url":"https://github.com/elastic/kibana/pull/208911","mergeCommit":{"message":"[Security Solution] Make savedQueryManagement feature explicit in Serverless (#208911)\n\n## Summary\r\n\r\nRemove the implicit grant of the `savedQueryManagement` feature with the\r\nSecurity Solution basic feature (ID: `siemV2`) in Serverless.\r\n\r\n\r\nThis is a follow-up of https://github.com/elastic/kibana/pull/202863\r\n\r\n### Feature `siemV2`\r\nThis change only affects new roles created with the `siemV2` feature,\r\nintroduced recently\r\n[here](https://github.com/elastic/kibana/pull/201780).\r\nThis change will align the Roles UI in Serverless and ESS, both\r\nrequiring the `savedQueryManagement` feature to be explicitly granted to\r\nbe able to manage saved queries.\r\n\r\n### Feature `siem`\r\nRoles using the deprecated `siem` feature will still implicitly receive\r\nthe `savedQueryManagement` feature (via an implicit grant of `discover`,\r\n`dashboard`, `visualize`, and `maps`) + migration to their `*v2`\r\nfeatures which include `savedQueryManagement`. So there's no behavior\r\nchange for existing roles using the old `siem` feature (no breaking\r\nchange).\r\n\r\n## Screenshots\r\n\r\nThe siem/siemV2 feature toggle:\r\n<img width=\"774\" alt=\"siem feature\"\r\nsrc=\"https://github.com/user-attachments/assets/2759988a-3cf8-4e1f-9431-16c09cf9d95c\"\r\n/>\r\n\r\nThe savedQueryManagement feature toggle:\r\n<img width=\"774\" alt=\"Saved query feature\"\r\nsrc=\"https://github.com/user-attachments/assets/d0145244-f4b8-4577-b91f-93f4dd1f758b\"\r\n/>","sha":"3d5972aa0f2650a1ac94b3485ea91c26d68a131f"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.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/208911","number":208911,"mergeCommit":{"message":"[Security Solution] Make savedQueryManagement feature explicit in Serverless (#208911)\n\n## Summary\r\n\r\nRemove the implicit grant of the `savedQueryManagement` feature with the\r\nSecurity Solution basic feature (ID: `siemV2`) in Serverless.\r\n\r\n\r\nThis is a follow-up of https://github.com/elastic/kibana/pull/202863\r\n\r\n### Feature `siemV2`\r\nThis change only affects new roles created with the `siemV2` feature,\r\nintroduced recently\r\n[here](https://github.com/elastic/kibana/pull/201780).\r\nThis change will align the Roles UI in Serverless and ESS, both\r\nrequiring the `savedQueryManagement` feature to be explicitly granted to\r\nbe able to manage saved queries.\r\n\r\n### Feature `siem`\r\nRoles using the deprecated `siem` feature will still implicitly receive\r\nthe `savedQueryManagement` feature (via an implicit grant of `discover`,\r\n`dashboard`, `visualize`, and `maps`) + migration to their `*v2`\r\nfeatures which include `savedQueryManagement`. So there's no behavior\r\nchange for existing roles using the old `siem` feature (no breaking\r\nchange).\r\n\r\n## Screenshots\r\n\r\nThe siem/siemV2 feature toggle:\r\n<img width=\"774\" alt=\"siem feature\"\r\nsrc=\"https://github.com/user-attachments/assets/2759988a-3cf8-4e1f-9431-16c09cf9d95c\"\r\n/>\r\n\r\nThe savedQueryManagement feature toggle:\r\n<img width=\"774\" alt=\"Saved query feature\"\r\nsrc=\"https://github.com/user-attachments/assets/d0145244-f4b8-4577-b91f-93f4dd1f758b\"\r\n/>","sha":"3d5972aa0f2650a1ac94b3485ea91c26d68a131f"}}]}] BACKPORT--> Co-authored-by: Sergi Massaneda <sergi.massaneda@elastic.co>
Summary
Remove the implicit grant of the
savedQueryManagement
feature with the Security Solution basic feature (ID:siemV2
) in Serverless.This is a follow-up of #202863
Feature
siemV2
This change only affects new roles created with the
siemV2
feature, introduced recently here.This change will align the Roles UI in Serverless and ESS, both requiring the
savedQueryManagement
feature to be explicitly granted to be able to manage saved queries.Feature
siem
Roles using the deprecated
siem
feature will still implicitly receive thesavedQueryManagement
feature (via an implicit grant ofdiscover
,dashboard
,visualize
, andmaps
) + migration to their*v2
features which includesavedQueryManagement
. So there's no behavior change for existing roles using the oldsiem
feature (no breaking change).Screenshots
The siem/siemV2 feature toggle:
![siem feature](https://private-user-images.githubusercontent.com/17747913/408093170-2759988a-3cf8-4e1f-9431-16c09cf9d95c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MjMxNjksIm5iZiI6MTczOTQyMjg2OSwicGF0aCI6Ii8xNzc0NzkxMy80MDgwOTMxNzAtMjc1OTk4OGEtM2NmOC00ZTFmLTk0MzEtMTZjMDljZjlkOTVjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA1MDEwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM5ZDdjYWFjZWNlY2ZhOTliOTZjNDgyZWNiZGU2NDU0Y2FhZGVjNjRkMDAxOGE2NGZjZTlkYzI2ZDlkMDNhYjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.je62AlTTr62ScGxdJpnSYKtVdX2WJPvKCfR2MPxZkIU)
The savedQueryManagement feature toggle:
![Saved query feature](https://private-user-images.githubusercontent.com/17747913/408094040-d0145244-f4b8-4577-b91f-93f4dd1f758b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MjMxNjksIm5iZiI6MTczOTQyMjg2OSwicGF0aCI6Ii8xNzc0NzkxMy80MDgwOTQwNDAtZDAxNDUyNDQtZjRiOC00NTc3LWI5MWYtOTNmNGRkMWY3NThiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA1MDEwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNlODFmZjk4NGFhOTdkZmM1OWI4ZTgyNTIwMWY5ZDFmNTI0MTYxMGIwZDI1OWZhM2I2NDJkNWY4ZjYzZjFiZDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Ahm3e62fQFOyc699O8DgutFTzJMBXpx7GsCmc7-4-mE)