diff --git a/apps/iam/stand/spicedb.yaml b/apps/iam/stand/spicedb.yaml index 9438cf4..b65f944 100644 --- a/apps/iam/stand/spicedb.yaml +++ b/apps/iam/stand/spicedb.yaml @@ -115,6 +115,15 @@ spec: {{- end -}}' traffic.sidecar.istio.io/excludeOutboundPorts: 4317,4318,9411,8200,8443,50051 + vault.hashicorp.com/agent-inject-secret-iam-db: secrets/data/apps/django/postgres + vault.hashicorp.com/agent-inject-template-iam-db: '{{- with secret "secrets/data/apps/django/postgres" + -}} + + DB_DSN=postgres://{{ index .Data.data "username" }}:{{ index .Data.data + "password" }}@{{ index .Data.data "host" }}:{{ index .Data.data "port" + }}/{{ index .Data.data "database" }} + + {{- end -}}' postRenderers: - kustomize: patches: