opensearch-project / security-dashboards-plugin

🔐 Manage your internal users, roles, access control, and audit logs from OpenSearch Dashboards
https://opensearch.org/docs/latest/security-plugin/index/
Apache License 2.0
71 stars 161 forks source link

[Improvement] Use hideLocalCluster flag to determine whether a dataSourceId must be present #2136

Open DarshitChanpura opened 1 month ago

DarshitChanpura commented 1 month ago

At present, the dataSourceId schema validation for a route is lax in the sense that a dataSourceId when not present, it falls back to "Local Cluster".

This validation should be updated to check for hideLocalCluster flag. If the flag is set to false, then check if dataSourceId is present and a non-empty string.

cwperks commented 1 month ago

[Triage] @DarshitChanpura Should I assign this issue to you?