Skip to content

Commit

Permalink
Improve kratos secret templating
Browse files Browse the repository at this point in the history
  • Loading branch information
pvannierop committed Apr 10, 2024
1 parent 21b5362 commit c7dd00e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions etc/base.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ radar_grafana:
# kratos:
# {{- $secrets := exec "sops" (list "-d" "production.yaml") | fromYaml }}
# config:
# {{- $postgres_user := "postgres" }}
# {{- $postgres_user := $secrets.management_portal.postgres.user | default "postgres" }}
# {{- $postgres_password := $secrets.management_portal.postgres.password }}
# {{- $postgres_database := $secrets.management_portal.postgres.password }}
# dsn: {{ printf "postgres://%s:%s@%s/%s" $postgres_user $postgres_password "postgres/" $postgres_database | quote }}
# {{- $postgres_host := $secrets.management_portal.postgres.host | default "postgresql" }}
# {{- $postgres_port := $secrets.management_portal.postgres.port | default "5432" }}
# {{- $postgres_database := "kratos" }}
# dsn: {{ printf "postgres://%s:%s@%s:%d/%s" $postgres_user $postgres_password $postgres_host $postgres_port $postgres_database | quote }}
# courier:
# smtp:
# {{- $smtp_user := $secrets.management_portal.smtp.username }}
Expand Down

0 comments on commit c7dd00e

Please sign in to comment.