Encryption#
To ensure the secure storage of passwords in the configuration file config.ini (for example, backend/config/config.ini), encryption can be used.
Encryption works with the following parameters:
database_passwordproxy_passwordsmtp_passwordldap_passwordoAuthClientSecretdatabase_password_archive
To encrypt passwords, follow these steps:
- Go to Sherpa Orchestrator by adding
/generate-key.phpto the address and clickGenerate. Random IV and encryption key will be generated (encoded in Base64 format). Be sure to save them. - Go to Sherpa Orchestrator by adding
/encryptor.phpto the address. Enter the IV and key (obtained in the previous step) in the corresponding fields. In theText to encryptfield, enter the password that needs to be encrypted and clickGenerate. Save the resulting encrypted password. - In the configuration file
backend/config/config.ini, save the encrypted password in the corresponding parameter. - In the configuration file, add the parameter
use_encryptionwith the value1. Save the changes. - Create an environment variable
ORCHESTRATOR_ENCRYPTION_KEYand save the encryption key obtained in the first step. - Make sure that in
docker-compose.ymlunder theenvironmentsection of theorchestratorcontainer, the line is specified:ORCHESTRATOR_ENCRYPTION_KEY=${ORCHESTRATOR_ENCRYPTION_KEY}. - Restart the containers using
run.sh.