Skip to content
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

feat(contrib/helm): evaluate the provided passwordSecretName value as a template #4046

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oOraph
Copy link

@oOraph oOraph commented Nov 4, 2024

Useful to reuse some defined variables or functions directly to compute the value (external chart for instance, that depends on this one)

example:
'{{ include "something.defined.elsewhere" $ }}-secrets'

Reference:
like done here for redis
https://github.com/bitnami/charts/blob/7eb2f519f77638c5e1b60aa62f3d3fa2f4cddbe8/bitnami/redis/templates/_helpers.tpl#L208

Drawback: unsanitized/user provided code injection, in the unlikely event where this chart is used by some with untrusted user input values (not sure who would do this but just want to mention this cornercase)

… a template

Useful to reuse some defined variables or functions directly to compute the value
(external chart for instance, that depends on this one)

example:
'{{ include "something.defined.elsewhere" $ }}-secrets'

Signed-off-by: Raphael Glon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant