From 61641ecf5ab2c954941b735ae3a8c1900e02c9dd Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Thu, 10 Dec 2020 15:16:19 +0100 Subject: [PATCH] Increase the secret key size to 50 chars This is recommended by Django and generates a warning about this when doing production checks. Since it's using cached data, this doesn't affect upgrading users. --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index ae5d5f48..f5d33c93 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -174,7 +174,7 @@ Optional[Stdlib::Absolutepath] $postgresql_db_ssl_cert = undef, Optional[Stdlib::Absolutepath] $postgresql_db_ssl_key = undef, Optional[Stdlib::Absolutepath] $postgresql_db_ssl_root_ca = undef, - String $django_secret_key = extlib::cache_data('pulpcore_cache_data', 'secret_key', extlib::random_password(32)), + String $django_secret_key = extlib::cache_data('pulpcore_cache_data', 'secret_key', extlib::random_password(50)), Integer[0] $redis_db = 8, Stdlib::Fqdn $servername = $facts['networking']['fqdn'], Array[Stdlib::Absolutepath] $allowed_import_path = ['/var/lib/pulp/sync_imports'],