-
Notifications
You must be signed in to change notification settings - Fork 102
Patching a role with "add" operation is replacing the tenant patterns #450
Comments
IS there anyone that can help ? |
Hi @JohnMops, thanks for reporting. This looks like a bug to me. I've reported it over at the security repository as https://github.com/opendistro-for-elasticsearch/security/issues/1099. For the time being, I think the best solution (even though it's obviously suboptimal) is to first GET the current configuration, append on the client side, and then send the updated permissions either through a PATCH or just a PUT (since they unfortunately do the same thing at the moment). |
Any news on this one? @aetter |
Hi @JohnMops, nothing to report. I'm reopening this issue so that we can fix the link (which now 404s) whenever the security team finishes their housekeeping, though. |
Thank you very much |
Hi @JohnMops, I'm going to close this out again in favor of opensearch-project/security#1099 |
Hi everyone,
I am trying to implement an API call to add tenant patterns to a specific role that is mapped to multiple users and then remove it once the troubleshooting is done.
When sending a request to https://localhost:9200/_opendistro/_security/api/roles/somerole?pretty with the body of:
The tenant patterns are changing from:
To this :
Expected: I would expect the call to add the new pattern to the list instead of acting the same way as the "replace" operation.
Appreciate any help.
The text was updated successfully, but these errors were encountered: