Let’s say I want to add new internal user, this would require me to add new entry to sg_internal_users.yml and sg_roles_mapping file manually.
I would like to be able to add new internal user programmatically. Is there a way to do this? Maybe using java searchguard plugin library or other API ?
Let’s say I want to add new internal user, this would require me to add new entry to sg_internal_users.yml and sg_roles_mapping file manually.
I would like to be able to add new internal user programmatically. Is there a way to do this? Maybe using java searchguard plugin library or other API ?
–
You received this message because you are subscribed to the Google Groups “Search Guard” group.
Let’s say I want to add new internal user, this would require me to add new entry to sg_internal_users.yml and sg_roles_mapping file manually.
I would like to be able to add new internal user programmatically. Is there a way to do this? Maybe using java searchguard plugin library or other API ?
–
You received this message because you are subscribed to the Google Groups “Search Guard” group.
Our use case is slightly different in user management is part of OpenShift and the visibility of indexes is tied to projects, which is how the indexes are organized. We desired not to manage users and chose to update the ACL as users try to access the cluster. Digging through the code, you will see we have classes that allow de/serialization of the SG document and it is updated as needed. To update the document progammatically is a matter of following the ES documentation for reading/writing a document and updating it accordingly. Unfortunately there is no public SG API for the ACL document but it is trivial enough that you can recreate those classes yourself.
···
On Friday, January 6, 2017 at 6:04:20 PM UTC-5, Ben Kaffani wrote:
How do you add the user in the code? Are you using this library?
Let’s say I want to add new internal user, this would require me to add new entry to sg_internal_users.yml and sg_roles_mapping file manually.
I would like to be able to add new internal user programmatically. Is there a way to do this? Maybe using java searchguard plugin library or other API ?
–
You received this message because you are subscribed to the Google Groups “Search Guard” group.