Skip to content

Error generating report.

0

Hello,

I'm using opensearch service on AWS. I create a specific tenant, create index pattern and give access to users thru a dedicated role. They can watch the datas thru Discover without any problem. But when they try to export a report by "Reporting"-> "Generate CSV", they always get an error messahe "Insufficient permissions. Reach out to your OpenSearch Dashboards administrator." In the audit logs I see many rows wich indicate missing permission on .kibana_6 Ex: "{""audit_cluster_name"":"""",""audit_transport_headers"":{""X-Opaque-Id"":""4de8050e-1e55-4fe1-b3ce-2276297955a4""},""audit_node_name"":""f8ff75af80aad9e7891fb9f1dd07ad59"",""audit_trace_task_id"":""gTu_KnXRRuOHyXVckKQmzA:89181302"",""audit_transport_request_type"":""GetRequest"",""audit_category"":""MISSING_PRIVILEGES"",""audit_request_origin"":""REST"",""audit_node_id"":""gTu_KnXRRuOHyXVckKQmzA"",""audit_request_layer"":""TRANSPORT"",""@timestamp"":""2025-07-18T07:03:49.585+00:00"",""audit_format_version"":4,""audit_request_remote_address"":""IP"",""audit_request_privilege"":""indices:data/read/get"",""audit_trace_doc_id"":""config:x@x"",""audit_request_effective_user"":""x@x"",""audit_trace_indices"":["".kibana""],""audit_trace_resolved_indices"":["".kibana_6""]}"

I already add following permissions like this : .opensearch_dashboards_* .kibana* indices_all

But they continue to have the error.

Can you help me ?

Thanks in advance

asked a year ago348 views

3 Answers
0

To resolve the "Insufficient permissions" error when users try to generate CSV reports in OpenSearch Dashboards, you need to ensure they have the appropriate permissions for both the data they're viewing and the reporting functionality.

The error message and audit logs indicate that users are missing privileges on the .kibana_6 index, which is used by OpenSearch Dashboards to store configuration data, including reporting configurations.

Here's what you should do:

  1. Ensure your users' role includes the necessary permissions for reporting functionality. They need both read access to the data they're viewing and specific permissions to generate reports.

  2. For the reporting functionality specifically, you need to grant additional permissions beyond just index access. The error suggests that the users are missing the indices:data/read/get permission on the .kibana_6 index.

  3. Update your role configuration to include more comprehensive permissions for the OpenSearch Dashboards system indices:

  • .kibana* (which you already have)
  • .reporting* (for the reporting functionality)
  • Ensure the permissions include not just index access but also specific actions like indices:data/read/get
  1. For read-only operations in OpenSearch UI, note that even though you're only viewing data, some features like the Discover page require POST permissions (ESHttpPost) because they use POST requests to perform searches and retrieve data.

  2. If you're using fine-grained access control, make sure the role has the appropriate cluster permissions for reporting in addition to the index permissions.

By ensuring your users have the complete set of permissions needed for both viewing data and generating reports, they should be able to successfully export CSV reports from the Discover page.
Sources
OpenSearch UI dashboard's Discover page requires ESHttpPost permission even when you only want to grant read access | AWS re:Post
Troubleshoot OpenSearch Serverless errors | AWS re:Post

answered a year ago

0

Does this part: "For read-only operations in OpenSearch UI, note that even though you're only viewing data, some features like the Discover page require POST permissions (ESHttpPost) because they use POST requests to perform searches and retrieve data" is about access policy to the opensearch cluster defined in the security configuration ?

answered a year ago

0

Yes, for read-only operations in OpenSearch UI, the Discover page requires ESHttpPost permissions even when you're only viewing data. This is because:

  • The Discover page uses POST requests to perform searches and retrieve data
  • Even for read-only operations, POST requests are necessary as they allow for more complex query structures and larger payloads than GET requests
  • GET requests are limited in functionality and cannot support all features required by OpenSearch UI
  • Without ESHttpPost permission, you'll encounter errors like "Search Error - forbidden" when trying to use the Discover page
  • When users attempt to use the Discover page with only ESHttpGet permissions, they typically see 403 responses for POST requests to endpoints like /internal/search/opensearch. [1] [2]

[1] OpenSearch UI dashboard's Discover page requires ESHttpPost permission even when you only want to grant read access

[2] Issues Connecting Service hosted on Fargate to OpenSearch in Same VPC

Access Control Solutions

Since ESHttpPost cannot be avoided for the Discover page, you can implement these solutions for controlled read-only access:

Fine-Grained Access Control (FGAC)

  1. Enable FGAC on your OpenSearch domain
  2. Create roles that allow read-only access to specific indices and fields
  3. Restrict access to specific indices
  4. Limit actions on those indices (allow search but not write)
  5. Control access to specific fields within documents

This approach provides the most flexible and secure option for read-only access while still allowing the necessary POST operations for the UI functionality. [3] [4]

[3] OpenSearch UI dashboard's Discover page requires ESHttpPost permission even when you only want to grant read access

[4] Cross-Region and cross-account data access with cross-cluster search

AWS
EXPERT

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.