Merge pull request #234 from opensearch-project/rev_parameter

Added -rev parameter to securityadmin.sh
This commit is contained in:
Ashwin Kumar 2021-10-20 13:34:42 -07:00 committed by GitHub
commit d991dd48c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -47,6 +47,21 @@ If you use the `-f` argument rather than `-cd`, you can load a single YAML file
-key ../../../config/kirk-key.pem
```
To resolve all environment variables before applying the security configurations, use the `-rev` parameter.
```bash
./securityadmin.sh -cd ../securityconfig/ \
-rev \
-cacert ../../../root-ca.pem \
-cert ../../../kirk.pem \
-key ../../../kirk.key.pem
```
Heres an example of an environment variable in the `config.yml` file:
```yml
password: ${env.LDAP_PASSWORD}
```
## Configure the admin certificate