-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Secret exposure through environment variables #2409
Comments
@than-pet I agree that {{- if .Values.remoteWrite.postgres.enabled }}
- name: REMOTE_WRITE_ENABLED
value: "true"
- name: REMOTE_WRITE_PASSWORD
value: {{ .Values.remoteWrite.postgres.auth.password }}
{{- end }} Are you interested in authoring the PR? |
conversation seems to have focused on |
@bt-macole The |
@thomasvn thanks for the reply, I removed it via a patch already. I didn't see a way to do it via helm, which would make my life easier. certainly not urgent or blocking though. |
@bt-macole Ok thanks for the feedback! Yes I'd agree that it would be good to make |
In 2.x |
Describe the bug
cost-analyzer
deployment has the following "sensitive" environmental variables defined as plain text:REMOTE_WRITE_PASSWORD
CLOUD_PROVIDER_API_KEY
REMOTE_WRITE_PASSWORD
environmental variable is always set even if theremoteWrite.postgres.enabled
value isfalse
.Expected behavior
https://github.com/kubecost/cost-analyzer-helm-chart/blob/develop/cost-analyzer/templates/cost-analyzer-deployment-template.yaml#L379-L383
REMOTE_WRITE_PASSWORD
shouldn't be set as env variable when theremoteWrite.postgres
is disabled.https://github.com/kubecost/cost-analyzer-helm-chart/blob/develop/cost-analyzer/templates/cost-analyzer-deployment-template.yaml#L648-L649
The text was updated successfully, but these errors were encountered: