manifests icon indicating copy to clipboard operation
manifests copied to clipboard

How to set OIDC env using vault sidecar

Open himanshujaindev opened this issue 6 months ago • 2 comments

vault.hashicorp.com/agent-inject-secret-oauth2-secrets.sh: "secret/[DC]/oidc-client-secret"
vault.hashicorp.com/agent-inject-template-oauth2-secrets.sh: |
    {{- with secret "secret/[DC]/oidc-client-secret" -}}
    OAUTH2_PROXY_CLIENT_ID='name-oauth-client'
    OAUTH2_PROXY_CLIENT_SECRET={{ .Data.oidc_client_secret }}
    OAUTH2_PROXY_COOKIE_SECRET=dd if=/dev/urandom bs=32 count=1 2>/dev/null | base64 | tr -d -- '\n' | tr -- '+/' '-_' ; echo
    {{- end -}}

How can we set the above in deployment.yaml ?

@pierluigilenoci - Would appreciate any help on this.

himanshujaindev avatar Aug 06 '24 12:08 himanshujaindev