Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SR] Prevent change to snapshot name / repository for managed SLM pol…
…icies (#172291) ## Summary Managed SLM policies `Snapshot name` and `Repository` field values can be changed from the **Snapshot and Restore** UI. This is particularly an issue with the `cloud-snapshot-policy` as changes to the snapshot name or target repository will lead to plan failures on ESS. Besides having a warning message displayed for managed SLM policies: > This is a managed policy. Changing this policy might affect other systems that use it. Proceed with caution. field values being editable is prone to errors. This PR disable the `Snapshot name` and `Repository` field for managed SLM policies to prevent edits. **Example - Regular SLM policy:** ![Untitled2](https://github.com/elastic/kibana/assets/7076736/64d501d2-3ab5-462a-af64-e04c2bc7721e) **Example - Managed SLM policy:** ![Untitled](https://github.com/elastic/kibana/assets/7076736/abf9f2a0-c672-4317-b6e6-942c80769cff) I'm open to suggestions if there is a better way to do this. This PR fixes #124916 ### Checklist - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers) ### For maintainers - [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Yulia Čech <[email protected]> Co-authored-by: Yulia Cech <[email protected]>
- Loading branch information