Secrets in double quotes, single quotes, or no quotes?

Hey.

Probably a dumb question, but should secrets be placed into single quotes, double quotes, or no quotes at all? Or what are the rules for that? The docs shows example with a password put into double quotes. But there are also examples with no quotes.

If I want to store MySQL connection info, should it be

mysql_dburl: "mysql://ha:[email protected]/ha?charset=utf8mb4"

or

mysql_dburl: 'mysql://ha:[email protected]/ha?charset=utf8mb4'

or

mysql_dburl: mysql://ha:[email protected]/ha?charset=utf8mb4

Double quotes works for me.

1 Like

My secrets.yaml uses no quotes for 150+ items, both numeric and text. Works just fine.

1 Like