Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Read-only access to security plugin resources (eg. roles, mappings) #4942

Open
riconnon opened this issue Dec 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@riconnon
Copy link

riconnon commented Dec 3, 2024

Is your feature request related to a problem?
We run terraform in our CI environment and would like to use the opensearch provider.
On PRs we run with an identity that has only read-only credentials, and need to be able to grant read-only access to read resources such as roles, role mappings, etc. to that identity.

What solution would you like?
Create permissions to allow read-only access to security plugin resources available in the terraform provider.

What alternatives have you considered?
N/A

Do you have any additional context?
N/A

@riconnon riconnon added enhancement New feature or request untriaged Require the attention of the repository maintainers and may need to be prioritized labels Dec 3, 2024
@cwperks
Copy link
Member

cwperks commented Dec 9, 2024

I believe this is possible using the plugins.security.restapi.endpoints_disabled.{role}.{endpoint}: [HTTP Verbs...] setting.

See example below from opensearch.yml.example below:

# Disable particular endpoints and their HTTP methods for roles. 
# By default all endpoints/methods are allowed.
#plugins.security.restapi.endpoints_disabled.<role>.<endpoint>: <array of http methods>
# Example:
#plugins.security.restapi.endpoints_disabled.all_access.ACTIONGROUPS: ["PUT","POST","DELETE"]
#plugins.security.restapi.endpoints_disabled.xyz_role.LICENSE: ["DELETE"]

@cwperks cwperks removed the untriaged Require the attention of the repository maintainers and may need to be prioritized label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants