opensearch-js
opensearch-js copied to clipboard
[FEATURE] Add support for Security plugin APIs
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
I think this is a worthwhile endeavor. Do you have any suggestions as to what would be a good interface?
On Tue, Nov 15, 2022 at 1:49 AM Gtofig @.***> wrote:
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
— Reply to this email directly, view it on GitHub https://github.com/opensearch-project/opensearch-js/issues/329, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5PRLWGBTWDTKU2OTORXP3WINMBVANCNFSM6AAAAAASAXUFLQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
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"
]
}]
})
+1! Would love to see this feature be added!!
If anyone wants to submit a solution, feel free to do so.