Defect #41776
closedDefault Postgresql configuration example should not have quotation marks around password
0%
Description
In database configuration example:
https://www.redmine.org/projects/redmine/repository/svn/entry/tags/6.0.1/config/database.yml.example
The password for Postgresql has quotation marks around it. This misleads users to include the quotation marks while setting the password and also is inconsistent with the rest of the settings (eg no quotation marks). See -
# PostgreSQL configuration example
#production:
# adapter: postgresql
# database: redmine
# host: localhost
# username: postgres
# password: "postgres"
I suggest removing it to prevent future misconfiguration.
Updated by Go MAEDA about 1 month ago
I believe that double quotation marks are necessary for the password in the configuration example.
If the password consists only of letters and numbers, double quotation marks are not necessary. However, if the password includes certain symbols, enclosing it in double quotation marks is essential to avoid YAML parsing errors (e.g., #12229).
Therefore, it is safer to always enclose passwords in double quotation marks.
Updated by Go MAEDA about 1 month ago
- Status changed from New to Closed
- Resolution set to Wont fix