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] Add support for Security plugin APIs #329

Open
Gtofig opened this issue Nov 15, 2022 · 4 comments
Open

[FEATURE] Add support for Security plugin APIs #329

Gtofig opened this issue Nov 15, 2022 · 4 comments

Comments

@Gtofig
Copy link

Gtofig commented Nov 15, 2022

Is your feature request related to a problem?

I want to configure OpenSearch Fine-Grained Access Control settings, by calling security plugin APIs, but the client currently does not support it.

What solution would you like?

Add security plugin APIs to the client

What alternatives have you considered?

The only alternative I can think of now is to send custom request directly to OpenSearch endpoint

@wbeckler
Copy link

wbeckler commented Nov 17, 2022 via email

@Gtofig
Copy link
Author

Gtofig commented Nov 17, 2022

Perhaps something like client.security_plugin.roles.<api_name>?

All the APIs are defined here

Example:

client.security_plugin.roles.create_role("myRole", {
  "cluster_permissions": [
    "cluster_composite_ops",
    "indices_monitor"
  ],
  "index_permissions": [{
    "index_patterns": [
      "movies*"
    ],
    "dls": "",
    "fls": [],
    "masked_fields": [],
    "allowed_actions": [
      "read"
    ]
  }],
  "tenant_permissions": [{
    "tenant_patterns": [
      "human_resources"
    ],
    "allowed_actions": [
      "kibana_all_read"
    ]
  }]
})

@314pies
Copy link

314pies commented Mar 23, 2023

+1!
Would love to see this feature be added!!

@wbeckler
Copy link

If anyone wants to submit a solution, feel free to do so.

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

No branches or pull requests

3 participants