Difference between revisions of "Opensearch install"

From UVOO Tech Wiki
Jump to navigation Jump to search
Line 26: Line 26:
 
vi ~/config/opensearch-security/internal_users.yml
 
vi ~/config/opensearch-security/internal_users.yml
 
cd plugins/opensearch-security/tools
 
cd plugins/opensearch-security/tools
 +
 +
~/plugins/opensearch-security/tools/securityadmin.sh -cd /usr/share/opensearch/config/opensearch-security -icl -nhnv -cacert /usr/share/opensearch/config/root-ca.pem -cert /usr/share/opensearch/config/kirk.pem -key /usr/share/opensearch/config/kirk-key.pem
 +
 +
```
 +
 +
 +
# Trash
 +
```
 
sh securityadmin.sh -cd ../securityconfig/ -icl -nhnv -cacert /usr/share/opensearch/config/root-ca.pem -cert /usr/share/opensearch/config/kirk.pem -key /usr/share/opensearch/config/kirk-key.pem
 
sh securityadmin.sh -cd ../securityconfig/ -icl -nhnv -cacert /usr/share/opensearch/config/root-ca.pem -cert /usr/share/opensearch/config/kirk.pem -key /usr/share/opensearch/config/kirk-key.pem
 
```
 
```

Revision as of 23:43, 5 June 2022

https://opensearch.org/docs/latest/opensearch/install/docker/

https://opensearch.org/docs/latest/security-plugin/configuration/security-admin/

Change password on init

https://opensearch.org/docs/latest/security-plugin/access-control/api/#get-account-details

curl -XPUT https:/opensearch.dev.example.com/_plugins/_security/api/account -u 'admin:admin'  -d '{ "current_password" : "admin", "password" : "foothis" }'  -H 'Content-Type: application/json'
kubectl -n opensearch cp  opensearch-cluster-master-2:/usr/share/opensearch/config config-files



kubectl -n opensearch exec -it opensearch-cluster-master-2 -- bash
plugins/opensearch-security/tools/hash.sh -p mypassincleartext
vi ~/config/opensearch-security/internal_users.yml
cd plugins/opensearch-security/tools

~/plugins/opensearch-security/tools/securityadmin.sh -cd /usr/share/opensearch/config/opensearch-security -icl -nhnv -cacert /usr/share/opensearch/config/root-ca.pem -cert /usr/share/opensearch/config/kirk.pem -key /usr/share/opensearch/config/kirk-key.pem

Trash

sh securityadmin.sh -cd ../securityconfig/ -icl -nhnv -cacert /usr/share/opensearch/config/root-ca.pem -cert /usr/share/opensearch/config/kirk.pem -key /usr/share/opensearch/config/kirk-key.pem