-
Notifications
You must be signed in to change notification settings - Fork 29
Using secrets for Datadog chart #62
Comments
So it seems like landscaper's method of handling secrets is not typically compatible with publicly available charts. Public charts create and reference their own secrets. It seems to me like landscaper would benefit from an ability to load secrets into values. In the short term, I think our team is going to template in secrets into the values section during CI. |
AFAIK there is not a standardized common way to deal with secrets in Charts. What the Datadog chart is doing is creating a secret object and plugging in a value. What landscaper does for its secrets is create a secret object, plug secrets from environment variables into it. A chart that uses this does not create a secret object itself from values, but rely on that externally provided secret object. And yes, these two approaches overlap and are incompatible with each other. But say that one would put secrets in values, as the datadog chart expects, then the secret can be read with a simple |
@rollulus -- Yes, it will appear via helm get as a user supplied value.
This seems to be the standard approach for all the public helm charts. Related issue: helm/helm#2196 Your approach definitely is more secure. Using something like sempl seems like a decent workaround for our team in the meantime, rather than forking public charts. |
Interesting. To be honest, I have no clue about helm release rollbacks at all, sorry. |
This is my state file for Datadog Chart:
and this is how run landscraper
Unfortunately the secret API_KEY is not applied. Any idea?
The text was updated successfully, but these errors were encountered: