Skip to content

Document FGAC OpenSearch sink permissions #4194 - #7149

Open
AzazelSensei wants to merge 1 commit into
opensearch-project:mainfrom
AzazelSensei:docs-fgac-sink-permissions-4194
Open

AzazelSensei wants to merge 1 commit into
opensearch-project:mainfrom
AzazelSensei:docs-fgac-sink-permissions-4194

Conversation

@AzazelSensei

Copy link
Copy Markdown

Description

I added the FGAC cluster and index permissions for the OpenSearch sink. On Amazon OpenSearch Service with fine-grained access control the existing cluster_all list is not enough for a non-admin user.

Issues Resolved

Resolves #4194

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

On FGAC domains the cluster_all role list is not enough for a
non-admin user. Record the working cluster and index permissions
and point at security.md for master-user / all_access ISM setup.

Signed-off-by: Abdullah <[email protected]>
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🧪 No relevant tests
🔒 No security concerns identified
✅ No TODO sections
🔀 No multiple PR themes
⚡ No major issues detected


### Amazon OpenSearch Service with fine-grained access control

On FGAC-enabled Amazon OpenSearch Service domains, the cluster and index lists above are not enough for a non-admin user. Map the sink user to a role with these permissions instead:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this, @AzazelSensei! Could you share how you tested this role? The description has no test results.

I tried it on a plain OpenSearch 2.19.5 cluster with the security plugin, using the real sink (index_type: trace-analytics-raw). With this role the sink did not start. It only started after I added cluster:monitor/main, ISM policy get and write, and index template get and put. I have not tested on Amazon OpenSearch Service, so this may differ there.

Could you:

  1. Tell us which call failed for you with the current doc on Amazon OpenSearch Service?
  2. Confirm the sink starts and writes with the new role on a real domain, including after a restart?
  3. Limit manage and write to the indices the sink writes to? On my test cluster this role could delete any index.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] [Docs] OpenSearch sink documented permissions insufficient

2 participants