From 97a86477988c1bfa13364ff9e903fa25761c92f7 Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Tue, 15 Apr 2025 08:40:07 +0200 Subject: [PATCH] refactor(secrets-store): streamline configuration format Convert value mapping to JSON strings for services and secrets. This change simplifies the structure, improves readability, and ensures consistency across service configurations. --- kind/secrets-store.yaml | 78 ++++++++++++++++------------------------- 1 file changed, 30 insertions(+), 48 deletions(-) diff --git a/kind/secrets-store.yaml b/kind/secrets-store.yaml index d8f1ee9..1ce2264 100644 --- a/kind/secrets-store.yaml +++ b/kind/secrets-store.yaml @@ -6,51 +6,33 @@ spec: provider: fake: data: - - key: "applications/shiny/accounting-service" - valueMap: - SENTRY_DSN: "" - SENTRY_DISABLED: "true" - - key: "applications/shiny/authz-service" - valueMap: - SENTRY_DSN: "" - SENTRY_DISABLED: "true" - - key: "applications/shiny/company-service" - valueMap: - SENTRY_DSN: "" - SENTRY_DISABLED: "true" - - key: "applications/shiny/consumer-service" - valueMap: - SENTRY_DSN: "" - SENTRY_DISABLED: "true" - - key: "applications/shiny/employee-service" - valueMap: - SENTRY_DSN: "" - SENTRY_DISABLED: "true" - - key: "applications/shiny/invoice-service" - valueMap: - SENTRY_DSN: "" - SENTRY_DISABLED: "true" - - key: "applications/shiny/notification-service" - valueMap: - SENTRY_DSN: "" - SENTRY_DISABLED: "true" - - key: "applications/shiny/salary-service" - valueMap: - SENTRY_DSN: "" - SENTRY_DISABLED: "true" - - key: "applications/shiny/time-service" - valueMap: - SENTRY_DSN: "" - SENTRY_DISABLED: "true" - - key: "applications/shiny/gateway" - valueMap: - ISSUER: "auth0" - STRICT_SSL: "false" - - key: "rds/postgres/prod-psql" - valueMap: - POSTGRES_URL: "postgres://postgres:postgres@postgres:5432/postgres?sslmode=disable" - DB_HOST: "postgres" - DB_NAME: "postgres" - DB_PASSWORD: "postgres" - DB_PORT: "5432" - DB_USERNAME: "postgres" + - key: "applications/shiny/accounting-service" + value: '{"SENTRY_DSN": "", "SENTRY_DISABLED": "true"}' + - key: "applications/shiny/authz-service" + value: '{"SENTRY_DSN": "", "SENTRY_DISABLED": "true"}' + - key: "applications/shiny/company-service" + value: '{"SENTRY_DSN": "", "SENTRY_DISABLED": "true"}' + - key: "applications/shiny/consumer-service" + value: '{"SENTRY_DSN": "", "SENTRY_DISABLED": "true"}' + - key: "applications/shiny/employee-service" + value: '{"SENTRY_DSN": "", "SENTRY_DISABLED": "true"}' + - key: "applications/shiny/invoice-service" + value: '{"SENTRY_DSN": "", "SENTRY_DISABLED": "true"}' + - key: "applications/shiny/notification-service" + value: '{"SENTRY_DSN": "", "SENTRY_DISABLED": "true"}' + - key: "applications/shiny/salary-service" + value: '{"SENTRY_DSN": "", "SENTRY_DISABLED": "true"}' + - key: "applications/shiny/supplier-service" + value: '{"SENTRY_DSN": "", "SENTRY_DISABLED": "true"}' + - key: "applications/shiny/supplier-invoice-service" + value: '{"SENTRY_DSN": "", "SENTRY_DISABLED": "true"}' + - key: "applications/shiny/time-service" + value: '{"SENTRY_DSN": "", "SENTRY_DISABLED": "true"}' + - key: "applications/shiny/gateway" + value: '{"API_KEY": "us_ak_vUj37A1ukjIfhkJH"}' + - key: "rds/postgres/prod-psql" + value: '{"POSTGRES_URL": "postgres://postgres:postgres@postgres:5432/postgres?sslmode=disable", "DB_HOST": "postgres", "DB_NAME": "postgres", "DB_PASSWORD": "postgres", "DB_PORT": "5432", "DB_USERNAME": "postgres"}' + - key: "mq/rabbit/prod" + value: '{"AMQP_URL": "amqp://user:password@rabbitmq:5672/"}' + - key: "services/schemas" + value: '{"ISSUER": "auth0", "STRICT_SSL": "false"}'