From b34ef0af0eca60f7b040a3e49b1c887cdfed29c5 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Thu, 10 Oct 2024 18:18:29 +0200 Subject: [PATCH] Rage --- bin/deploy-hobby | 2 +- bin/upgrade-hobby | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/deploy-hobby b/bin/deploy-hobby index b6da3876a79cd..93df1b1aac3a6 100755 --- a/bin/deploy-hobby +++ b/bin/deploy-hobby @@ -12,7 +12,7 @@ export SENTRY_DSN="${SENTRY_DSN:-'https://public@sentry.example.com/1'}" POSTHOG_SECRET=$(head -c 28 /dev/urandom | sha224sum -b | head -c 56) export POSTHOG_SECRET -ENCRYPTION_KEY=$(dd if=/dev/urandom bs=32 count=1 2>/dev/null | openssl base64) +ENCRYPTION_KEY=$(openssl rand -hex 16) export ENCRYPTION_SALT_KEYS # Talk to the user diff --git a/bin/upgrade-hobby b/bin/upgrade-hobby index 8c3a746e1eadc..f3968321a22c8 100755 --- a/bin/upgrade-hobby +++ b/bin/upgrade-hobby @@ -60,7 +60,7 @@ fi # we introduced ENCRYPTION_SALT_KEYS and so if there isn't one, need to add it # check for it in the .env file if ! grep -q "ENCRYPTION_SALT_KEYS" .env; then - ENCRYPTION_KEY=$(dd if=/dev/urandom bs=32 count=1 2>/dev/null | openssl base64) + ENCRYPTION_KEY=$(openssl rand -hex 16) echo "ENCRYPTION_SALT_KEYS=$ENCRYPTION_KEY" >> .env echo "Added missing ENCRYPTION_SALT_KEYS to .env file" source .env