From 7a2e11953a3f6afd01a53e339e6da9f39ab678bf Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Thu, 18 Dec 2025 13:40:57 -0600 Subject: [PATCH] Update config defs --- backend/src/core/config/config-loader.ts | 6 +++--- config/app/production.yml | 1 - scripts/inject-secrets.sh | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/backend/src/core/config/config-loader.ts b/backend/src/core/config/config-loader.ts index c53530b..e0eb168 100644 --- a/backend/src/core/config/config-loader.ts +++ b/backend/src/core/config/config-loader.ts @@ -41,13 +41,13 @@ const configSchema = z.object({ audience: z.string(), }), - // External APIs configuration + // External APIs configuration (optional) external: z.object({ vpic: z.object({ url: z.string(), timeout: z.string(), - }), - }), + }).optional(), + }).optional(), // Service configuration service: z.object({ diff --git a/config/app/production.yml b/config/app/production.yml index 752f18f..c0ff2b0 100755 --- a/config/app/production.yml +++ b/config/app/production.yml @@ -29,7 +29,6 @@ auth0: audience: https://api.motovaultpro.com # client_id and client_secret loaded from secrets -# External APIs Configuration # google_maps_api_key loaded from secrets/app/google-maps-api-key.txt # Service Authentication diff --git a/scripts/inject-secrets.sh b/scripts/inject-secrets.sh index 989b28d..b890211 100755 --- a/scripts/inject-secrets.sh +++ b/scripts/inject-secrets.sh @@ -57,9 +57,9 @@ inject_secret() { rm -rf "$target_path" fi - # Copy the secret file + # Copy the secret file (644 so container users can read) cp "$source_path" "$target_path" - chmod 600 "$target_path" + chmod 644 "$target_path" echo " OK: $file_name" }