You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In environments where we are utilizing vault as part of this helm-chart but using Istio LoadBalancers, or AWS ELBs forwarding traffic to the Vault server the included agent injector deployment is not able to get the correct VAULT_ADDR with the existing options to set AGENT_INJECT_VAULT_ADDR
To Reproduce
Steps to reproduce the behavior:
Install chart
Create secret and serviceAccount and all included options to configure another deployment to utilize a secret from Vault.
Add kubernetes labels to inject deployment so it can utilize vault secrets
Pod is never able to communicate with Vault because we use our own cert and (E)LB and VAULT_ADDR is set to https://vault-vault.vault.svc:8200
Expected behavior
Agent Injector VAULT_ADDR endpoint is configurable
Environment
Kubernetes version: 1.23.8
Distribution or cloud vendor (OpenShift, EKS, GKE, AKS, etc.): RKE2
Other configuration options or runtime services (istio, etc.): istio 1.14.2
+1 on this .We are facing a similar issue as we need to customize the AGENT_INJECT_VAULT_ADDR value to support our TLS setup but without disabling the vault server deployment!
- name: AGENT_INJECT_VAULT_ADDR
{{- if .Values.global.externalVaultAddr }}
value: "{{ .Values.global.externalVaultAddr }}"
{{- else if .Values.injector.externalVaultAddr }}
value: "{{ .Values.injector.externalVaultAddr }}"
{{- else }}
value: {{ include "vault.scheme" . }}://{{ template "vault.fullname" . }}.{{ include "vault.namespace" . }}.svc:{{ .Values.server.service.port }}
{{- end }}
But in the values.yaml,
section injector:
# Deprecated: Please use global.externalVaultAddr instead.
externalVaultAddr: ""
section global:
# External vault server address for the injector and CSI provider to use.
# Setting this will disable deployment of a vault server.
externalVaultAddr: ""
At some point I guess the plan is to remove injector.externalVaultAddr. When this is done, can you provide an alternative method of setting the address of vault in the injector.
I want to set the external Vault Addr for the injector (for tls/cert reasons), and also deploy the server. There are cases where its not a mutually exclusive setting.
Thanks,
Edit:
I think its not currently possible to deploy vault server set and set an externalVaultAddr (i.e., configure AGENT_INJECT_VAULT_ADDR . I had to amend my ansible role to post-json-patch the AGENT_INJECT_VAULT_ADDR env variable.
Describe the bug
In environments where we are utilizing vault as part of this helm-chart but using Istio LoadBalancers, or AWS ELBs forwarding traffic to the Vault server the included agent injector deployment is not able to get the correct VAULT_ADDR with the existing options to set
AGENT_INJECT_VAULT_ADDR
To Reproduce
Steps to reproduce the behavior:
https://vault-vault.vault.svc:8200
Expected behavior
Agent Injector VAULT_ADDR endpoint is configurable
Environment
Chart values:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: