From 347fd8086429817037d3bfb5749edd56b8056579 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Mon, 9 Dec 2019 17:50:53 -0800 Subject: [PATCH] generate_secrets: Remove unused initial_password_salt in production. Signed-off-by: Anders Kaseorg --- scripts/setup/generate_secrets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/setup/generate_secrets.py b/scripts/setup/generate_secrets.py index f8db281335..7baad7c243 100755 --- a/scripts/setup/generate_secrets.py +++ b/scripts/setup/generate_secrets.py @@ -25,7 +25,6 @@ CAMO_CONFIG_FILENAME = '/etc/default/camo' # Standard, 64-bit tokens AUTOGENERATED_SETTINGS = [ 'avatar_salt', - 'initial_password_salt', 'rabbitmq_password', 'shared_secret', 'thumbor_key', @@ -84,6 +83,8 @@ def generate_secrets(development=False): if need_secret(name): add_secret(name, generate_random_token(64)) + if development and need_secret("initial_password_salt"): + add_secret("initial_password_salt", generate_random_token(64)) if development and need_secret("local_database_password"): add_secret("local_database_password", generate_random_token(64))