When working with decK dump files, especially for plugins like the OpenID Connect plugin, you might notice that some configuration values are enclosed in single quotes. decK dump files use YAML, and according to the YAML 1.2 specification, certain characters can cause the YAML parser to misinterpret an unquoted string as a different data type or structure. To prevent this, YAML automatically encloses affected strings in quotes.
This happens in the following scenarios:
- The string contains special characters:
#,:,{,},[,],,,&,*,?,|,-,=,!,%,@,`,', or" - The string starts with leading zeros (for example, a numeric string like
007) - The string exactly matches a reserved word:
true,false,on,off, ornull
For example, if token_post_args_values is set to }E]0Y1a$-P, the decK dump shows:
token_post_args_values:
- '}E]0Y1a$-P'This quoting ensures the YAML parser correctly interprets the value as a string. For the full list of characters and scenarios that trigger quoting, see the YAML 1.2 specification.