OpenSearch-Dashboards
OpenSearch-Dashboards copied to clipboard
[Workspace]Restrict data source permission when workspace enabled
Description
The data source CUD operations will be restricted in the #7091 , this PR is an enhancement for #7091 in the saved object client get
and find
methods. It includes below main changes:
- Restrict data source permission for non dashboard admin when workspace enabled, global data source only can be accessed by dashboard admin
- Remove options.workspaces drop logic in conflict wrapper
Issues Resolved
#7127
Screenshot
No ui changes
Testing the changes
See the integration test file: src/plugins/workspace/server/saved_objects/integration_tests/workspace_saved_objects_client_wrapper.test.ts
Changelog
- fix: [Workspace]Limit data source permission when workspace enabled
Check List
- [x] All tests pass
- [ ]
yarn test:jest
- [ ]
yarn test:jest_integration
- [ ]
- [ ] New functionality includes testing.
- [ ] New functionality has been documented.
- [ ] Update CHANGELOG.md
- [x] Commits are signed per the DCO using --signoff