opensearch-project / reporting

Export and automate PNG, PDF, and CSV reports in OpenSearch Dashboards
https://opensearch.org/docs/latest/dashboards/reporting/
Apache License 2.0
28 stars 64 forks source link

[BUG] Report Permissions documentation not complete, and inconsistent #974

Open w0otness opened 4 months ago

w0otness commented 4 months ago

What is the bug? I have been trying to properly scope down access to tenants with just read only access to dashboards, visualisations, and reports on specific indexes, but retain the ability to generate CSV reports on saved searches and report definitions. The base role has _cluster_composite_opsro, _opensearch_dashboards_allread, and all readonly Reporting permissions.

Reporting using OpenSearch Dashboards neither captures that indices:monitor/settings/get must be allowed on the Index permissions of the Role, nor that the Tenant Permission must be Read/Write.

Regarding the Read/Write Tenant Permission, generating a report is technically writing, but for someone just downloading a CSV of a saved search, do I have to leave the Tenant open for modification or is there another way?