-
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
[Synthetics] Sub-feature for managing private locations !! #201100
Conversation
…-loc-sub-feature
…-loc-sub-feature
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
This looks great. A small feature with big customer benefit. LGTM |
…-loc-sub-feature
…1/kibana into private-loc-sub-feature
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, using the saved object API to update the private locations is not possible anymore (can still read though)
@@ -63,7 +63,7 @@ const canManagePrivateLocationsPrivilege: SubFeaturePrivilegeGroupConfig = { | |||
includeIn: 'all', | |||
savedObject: { | |||
all: [privateLocationSavedObjectName, legacyPrivateLocationsSavedObjectName], | |||
read: [], | |||
read: [privateLocationSavedObjectName, legacyPrivateLocationsSavedObjectName], |
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.
Do we need these since the parent feature all
list them under savedObject.read
as well?
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 don't, i think you reviewed outdated, i have already remove those
…-loc-sub-feature
…1/kibana into private-loc-sub-feature
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.
Privilege changes LGTM.
Couple of questions:
This is a breaking change for users with the previous privileges already assigned, right?Answered in release note section- Can the button to create locations be hidden if a user doesn't have access to do so?
cc: @azasypkin
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
History
|
Starting backport for target branches: 8.x |
…01100) ## Summary Fixes elastic#200899 Added Synthetics Sub-feature for managing private locations !! User can configure a sub feature in a role under synthetics to allow managing private locations , with role API it will be with ``` { kibana: [ { feature: { uptime: [ 'minimal_all', 'can_manage_private_locations', ], }, spaces: ['*'], }, ], } ``` <img width="1728" alt="image" src="https://github.com/user-attachments/assets/f842da22-9c82-43d0-ad34-c6e19ea187c6"> Create/delete actions on UI will be disabled <img width="1728" alt="image" src="https://github.com/user-attachments/assets/1a164d85-357b-42f3-ae15-0682b2db6c75"> ## Release note If you have already modified sub feature for the synthetics/uptime feature to disable user access for using elastic managed location, addition of this feature means, they will also will not be able to manage(add/delete) private locations. Though this will not impact usage of private locations in monitors. If you want those users to have ability to add/delete new private locations, you can enable that by toggle this feature in role ui or via api. (cherry picked from commit 93eedff)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…1100) (#202496) # Backport This will backport the following commits from `main` to `8.x`: - [[Synthetics] Sub-feature for managing private locations !! (#201100)](#201100) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Shahzad","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-02T14:53:26Z","message":"[Synthetics] Sub-feature for managing private locations !! (#201100)\n\n## Summary\r\n\r\nFixes https://github.com/elastic/kibana/issues/200899\r\n\r\nAdded Synthetics Sub-feature for managing private locations !!\r\n\r\nUser can configure a sub feature in a role under synthetics to allow\r\nmanaging private locations ,\r\n\r\nwith role API it will be with \r\n```\r\n{\r\n kibana: [\r\n {\r\n feature: {\r\n uptime: [\r\n 'minimal_all',\r\n 'can_manage_private_locations',\r\n ],\r\n },\r\n spaces: ['*'],\r\n },\r\n ],\r\n }\r\n```\r\n\r\n\r\n\r\n<img width=\"1728\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/f842da22-9c82-43d0-ad34-c6e19ea187c6\">\r\n\r\nCreate/delete actions on UI will be disabled \r\n\r\n<img width=\"1728\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/1a164d85-357b-42f3-ae15-0682b2db6c75\">\r\n\r\n## Release note\r\nIf you have already modified sub feature for the synthetics/uptime\r\nfeature to disable user access for using elastic managed location,\r\naddition of this feature means, they will also will not be able to\r\nmanage(add/delete) private locations. Though this will not impact usage\r\nof private locations in monitors. If you want those users to have\r\nability to add/delete new private locations, you can enable that by\r\ntoggle this feature in role ui or via api.","sha":"93eedff53c8b9c3ebe55dfdb71029336c03542f0","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:breaking","v9.0.0","release_note:feature","ci:project-deploy-observability","Team:obs-ux-management","backport:version","v8.18.0"],"title":"[Synthetics] Sub-feature for managing private locations !!","number":201100,"url":"https://github.com/elastic/kibana/pull/201100","mergeCommit":{"message":"[Synthetics] Sub-feature for managing private locations !! (#201100)\n\n## Summary\r\n\r\nFixes https://github.com/elastic/kibana/issues/200899\r\n\r\nAdded Synthetics Sub-feature for managing private locations !!\r\n\r\nUser can configure a sub feature in a role under synthetics to allow\r\nmanaging private locations ,\r\n\r\nwith role API it will be with \r\n```\r\n{\r\n kibana: [\r\n {\r\n feature: {\r\n uptime: [\r\n 'minimal_all',\r\n 'can_manage_private_locations',\r\n ],\r\n },\r\n spaces: ['*'],\r\n },\r\n ],\r\n }\r\n```\r\n\r\n\r\n\r\n<img width=\"1728\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/f842da22-9c82-43d0-ad34-c6e19ea187c6\">\r\n\r\nCreate/delete actions on UI will be disabled \r\n\r\n<img width=\"1728\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/1a164d85-357b-42f3-ae15-0682b2db6c75\">\r\n\r\n## Release note\r\nIf you have already modified sub feature for the synthetics/uptime\r\nfeature to disable user access for using elastic managed location,\r\naddition of this feature means, they will also will not be able to\r\nmanage(add/delete) private locations. Though this will not impact usage\r\nof private locations in monitors. If you want those users to have\r\nability to add/delete new private locations, you can enable that by\r\ntoggle this feature in role ui or via api.","sha":"93eedff53c8b9c3ebe55dfdb71029336c03542f0"}},"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/201100","number":201100,"mergeCommit":{"message":"[Synthetics] Sub-feature for managing private locations !! (#201100)\n\n## Summary\r\n\r\nFixes https://github.com/elastic/kibana/issues/200899\r\n\r\nAdded Synthetics Sub-feature for managing private locations !!\r\n\r\nUser can configure a sub feature in a role under synthetics to allow\r\nmanaging private locations ,\r\n\r\nwith role API it will be with \r\n```\r\n{\r\n kibana: [\r\n {\r\n feature: {\r\n uptime: [\r\n 'minimal_all',\r\n 'can_manage_private_locations',\r\n ],\r\n },\r\n spaces: ['*'],\r\n },\r\n ],\r\n }\r\n```\r\n\r\n\r\n\r\n<img width=\"1728\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/f842da22-9c82-43d0-ad34-c6e19ea187c6\">\r\n\r\nCreate/delete actions on UI will be disabled \r\n\r\n<img width=\"1728\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/1a164d85-357b-42f3-ae15-0682b2db6c75\">\r\n\r\n## Release note\r\nIf you have already modified sub feature for the synthetics/uptime\r\nfeature to disable user access for using elastic managed location,\r\naddition of this feature means, they will also will not be able to\r\nmanage(add/delete) private locations. Though this will not impact usage\r\nof private locations in monitors. If you want those users to have\r\nability to add/delete new private locations, you can enable that by\r\ntoggle this feature in role ui or via api.","sha":"93eedff53c8b9c3ebe55dfdb71029336c03542f0"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Shahzad <[email protected]>
…01100) ## Summary Fixes elastic#200899 Added Synthetics Sub-feature for managing private locations !! User can configure a sub feature in a role under synthetics to allow managing private locations , with role API it will be with ``` { kibana: [ { feature: { uptime: [ 'minimal_all', 'can_manage_private_locations', ], }, spaces: ['*'], }, ], } ``` <img width="1728" alt="image" src="https://github.com/user-attachments/assets/f842da22-9c82-43d0-ad34-c6e19ea187c6"> Create/delete actions on UI will be disabled <img width="1728" alt="image" src="https://github.com/user-attachments/assets/1a164d85-357b-42f3-ae15-0682b2db6c75"> ## Release note If you have already modified sub feature for the synthetics/uptime feature to disable user access for using elastic managed location, addition of this feature means, they will also will not be able to manage(add/delete) private locations. Though this will not impact usage of private locations in monitors. If you want those users to have ability to add/delete new private locations, you can enable that by toggle this feature in role ui or via api.
…01100) ## Summary Fixes elastic#200899 Added Synthetics Sub-feature for managing private locations !! User can configure a sub feature in a role under synthetics to allow managing private locations , with role API it will be with ``` { kibana: [ { feature: { uptime: [ 'minimal_all', 'can_manage_private_locations', ], }, spaces: ['*'], }, ], } ``` <img width="1728" alt="image" src="https://github.com/user-attachments/assets/f842da22-9c82-43d0-ad34-c6e19ea187c6"> Create/delete actions on UI will be disabled <img width="1728" alt="image" src="https://github.com/user-attachments/assets/1a164d85-357b-42f3-ae15-0682b2db6c75"> ## Release note If you have already modified sub feature for the synthetics/uptime feature to disable user access for using elastic managed location, addition of this feature means, they will also will not be able to manage(add/delete) private locations. Though this will not impact usage of private locations in monitors. If you want those users to have ability to add/delete new private locations, you can enable that by toggle this feature in role ui or via api.
…01100) ## Summary Fixes elastic#200899 Added Synthetics Sub-feature for managing private locations !! User can configure a sub feature in a role under synthetics to allow managing private locations , with role API it will be with ``` { kibana: [ { feature: { uptime: [ 'minimal_all', 'can_manage_private_locations', ], }, spaces: ['*'], }, ], } ``` <img width="1728" alt="image" src="https://github.com/user-attachments/assets/f842da22-9c82-43d0-ad34-c6e19ea187c6"> Create/delete actions on UI will be disabled <img width="1728" alt="image" src="https://github.com/user-attachments/assets/1a164d85-357b-42f3-ae15-0682b2db6c75"> ## Release note If you have already modified sub feature for the synthetics/uptime feature to disable user access for using elastic managed location, addition of this feature means, they will also will not be able to manage(add/delete) private locations. Though this will not impact usage of private locations in monitors. If you want those users to have ability to add/delete new private locations, you can enable that by toggle this feature in role ui or via api.
Summary
Fixes #200899
Added Synthetics Sub-feature for managing private locations !!
User can configure a sub feature in a role under synthetics to allow managing private locations ,
with role API it will be with
Create/delete actions on UI will be disabled
Release note
If you have already modified sub feature for the synthetics/uptime feature to disable user access for using elastic managed location, addition of this feature means, they will also will not be able to manage(add/delete) private locations. Though this will not impact usage of private locations in monitors. If you want those users to have ability to add/delete new private locations, you can enable that by toggle this feature in role ui or via api.