From c418f1dd462d30a768634317d8d95a4ba1da7d03 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 23 Nov 2026 15:35:01 +0500 Subject: [PATCH] stand: connect IAM to Django database containing legacy resources --- apps/iam/stand/spicedb.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) 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: