Added secrets management for data and parity disks
This commit is contained in:
@@ -180,6 +180,15 @@ files_generation() {
|
||||
PASSBOLT_MYSQL_USER=$(openssl rand -base64 29 | tr -d "123456789=+/" | cut -c1-10)
|
||||
PASSBOLT_MYSQL_PASSWORD=$(openssl rand -base64 29 | tr -d "=+/" | cut -c1-64)
|
||||
FTLCONF_WEBSERVER_PASSWORD=$(openssl rand -base64 29 | tr -d "=+/" | cut -c1-64)
|
||||
DATA-DISK-1=$(openssl rand -base64 300 | tr -d "=+/" | cut -c1-256)
|
||||
DATA-DISK-2=$(openssl rand -base64 300 | tr -d "=+/" | cut -c1-256)
|
||||
DATA-DISK-3=$(openssl rand -base64 300 | tr -d "=+/" | cut -c1-256)
|
||||
DATA-DISK-4=$(openssl rand -base64 300 | tr -d "=+/" | cut -c1-256)
|
||||
DATA-DISK-5=$(openssl rand -base64 300 | tr -d "=+/" | cut -c1-256)
|
||||
DATA-DISK-6=$(openssl rand -base64 300 | tr -d "=+/" | cut -c1-256)
|
||||
PARITY-DISK-1=$(openssl rand -base64 300 | tr -d "=+/" | cut -c1-256)
|
||||
PARITY-DISK-2=$(openssl rand -base64 300 | tr -d "=+/" | cut -c1-256)
|
||||
PARITY-DISK-3=$(openssl rand -base64 300 | tr -d "=+/" | cut -c1-256)
|
||||
|
||||
echo -e "\n\n ✅ Encrypting secrets in the correct file..."
|
||||
envsubst < "config-files/sops-nix/secrets.yaml" | sops encrypt --filename-override secrets.yaml \
|
||||
|
||||
Reference in New Issue
Block a user