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
I have a custom helm chart post renderer https://github.com/DaspawnW/vault-crd-helm-renderer that receives a valid helm chart with some jinja2 templates and performs vault lookups to replace those lookups with real values out of HashiCorp Vault.
By accident we detected today that Jinjava doesn't enforce a strict mode by default. If you provide an expression that is invalid like this one:
I would expect that Jinjava now fails as it doesn't contain the last "'", but it seems that the rendering continues and everything that happens after this invalid expression now fails to render properly.
Is there a way to enforce Jinjava to be in a strict mode?
Please see below a testcase where I would expect that it fails when the expression is wrongly written:
I have a custom helm chart post renderer https://github.com/DaspawnW/vault-crd-helm-renderer that receives a valid helm chart with some jinja2 templates and performs vault lookups to replace those lookups with real values out of HashiCorp Vault.
By accident we detected today that Jinjava doesn't enforce a strict mode by default. If you provide an expression that is invalid like this one:
I would expect that Jinjava now fails as it doesn't contain the last "'", but it seems that the rendering continues and everything that happens after this invalid expression now fails to render properly.
Is there a way to enforce Jinjava to be in a strict mode?
Please see below a testcase where I would expect that it fails when the expression is wrongly written:
The text was updated successfully, but these errors were encountered: