Double Quotes in configuration properties can lead to JSON templating failing
UnseenWizzard opened this issue · 0 comments
UnseenWizzard commented
As quotes are currently not escaped before placing config properties from a yaml into a json,
it is possible to define configuration properties in a config yaml that lead to invalid JSONs on templating.
Specifically this happens as YAML allows:
- key: This is a perfectly fine "string value"
Which on templating a json of the form:
{
"value" : " {{ .key }}"
}
Results in the invalid output:
{
"value" : "This is a perfectly fine "string value""
}
Which should instead be:
{
"value" : "This is a perfectly fine \"string value\""
}