From 5d9bed130adbb2155944c66616cff963d292c606 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 31 Oct 2021 16:54:10 +0100 Subject: [PATCH] root: fix Detection of S3 settings for backups closes #1698 Signed-off-by: Jens Langhammer --- authentik/root/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/root/settings.py b/authentik/root/settings.py index c8ea994b2..e5abff0df 100644 --- a/authentik/root/settings.py +++ b/authentik/root/settings.py @@ -380,7 +380,7 @@ DBBACKUP_CONNECTOR_MAPPING = { "django_prometheus.db.backends.postgresql": "dbbackup.db.postgresql.PgDumpConnector", } DBBACKUP_TMP_DIR = gettempdir() if DEBUG else "/tmp" # nosec -if CONFIG.y("postgresql.s3_backup"): +if CONFIG.y("postgresql.s3_backup.bucket", "") != "": DBBACKUP_STORAGE = "storages.backends.s3boto3.S3Boto3Storage" DBBACKUP_STORAGE_OPTIONS = { "access_key": CONFIG.y("postgresql.s3_backup.access_key"),