Skip to content

SearchGuard

Check auth

curl -Ss -u admin:password localhost:9200/_searchguard/authinfo | pjson

REST-API

Internal Users: https://docs.search-guard.com/latest/rest-api-internalusers Roles: https://docs.search-guard.com/latest/rest-api-roles

Apply changes in internal users (demo data)

docker exec -it {ID}  bash
#
export JAVA_HOME=/usr/share/elasticsearch/jdk

# users
./plugins/search-guard-7/tools/sgadmin.sh -icl -f ./plugins/search-guard-7/sgconfig/sg_internal_users.yml -cacert ./config/certs/root-ca.pem -cert ./config/certs/kirk.pem -key ./config/certs/kirk-key.pem

# roles
./plugins/search-guard-7/tools/sgadmin.sh -icl -f ./plugins/search-guard-7/sgconfig/sg_roles.yml -cacert ./config/certs/root-ca.pem -cert ./config/certs/kirk.pem -key ./config/certs/kirk-key.pem