- Newest
- Most votes
- Most comments
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:
-
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.
-
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/getpermission on the.kibana_6index. -
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
-
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.
-
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
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
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]
[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)
- Enable FGAC on your OpenSearch domain
- Create roles that allow read-only access to specific indices and fields
- Restrict access to specific indices
- Limit actions on those indices (allow search but not write)
- 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]
[4] Cross-Region and cross-account data access with cross-cluster search
Relevant content
asked 2 years ago
