Project

General

Profile

Actions

Defect #41776

closed

Default Postgresql configuration example should not have quotation marks around password

Added by Kelvin Quee 8 days ago. Updated 4 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix
Affected version:

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.

Actions #1

Updated by Go MAEDA 8 days 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.

Actions #2

Updated by Go MAEDA 4 days ago

  • Status changed from New to Closed
  • Resolution set to Wont fix
Actions

Also available in: Atom PDF