From 928803819cc259437f213c94e596c48ac3b3b682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20J=C3=B8rgensen?= Date: Wed, 25 Sep 2024 17:53:45 +0200 Subject: [PATCH] Make secret name configurable --- .env.example | 1 + docker-compose.yaml | 1 + src/main/resources/bootstrap.properties | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 2f153b5..159c4b5 100644 --- a/.env.example +++ b/.env.example @@ -16,3 +16,4 @@ AWS_REGION= AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= ENABLE_SECRETS_MANAGER=false +SECRET_NAME=secrets diff --git a/docker-compose.yaml b/docker-compose.yaml index d4ff897..77697cf 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -19,5 +19,6 @@ services: - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} - ENABLE_SECRETS_MANAGER=${ENABLE_SECRETS_MANAGER} + - SECRET_NAME=${SECRET_NAME} volumes: - ./heimdall-storage:/var/lib/heimdall diff --git a/src/main/resources/bootstrap.properties b/src/main/resources/bootstrap.properties index 9778de4..983b6cd 100644 --- a/src/main/resources/bootstrap.properties +++ b/src/main/resources/bootstrap.properties @@ -7,4 +7,4 @@ aws.distributed-configuration.search-common-application=false # If enabled, will resolve secret with name /config/heimdall/secrets aws.secretsmanager.enabled=${ENABLE_SECRETS_MANAGER:false} aws.secretsmanager.secrets[0].prefix="" -aws.secretsmanager.secrets[0].secret-name="secrets" +aws.secretsmanager.secrets[0].secret-name=${SECRET_NAME:secrets}