-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phase one of addressing exposed passwords. #497
base: master
Are you sure you want to change the base?
Conversation
Additional, I am in all the CLAs as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passing --db-password on the command line is a convenience for local development. There are already multiple mechanisms for doing this more securely.
- Mount an entire odoo.conf into the container, replacing these defaults and adding your password in the config file.
# docker-compose.yaml
volumes:
- ./odoo.conf:/etc/odoo/odoo.conf
- Expose sensitive values as environment variables:
# docker-compose.yaml
environment:
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
I generally find this pull request without merit and think it should be closed.
@@ -1,12 +1,16 @@ | |||
[options] | |||
addons_path = /mnt/extra-addons | |||
data_dir = /var/lib/odoo | |||
db_name = postgress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--database > db_name
setting
database(s) used when installing or updating modules. Providing a comma-separated list restrict access to databases provided in list.
Setting a default db_name here unexpectedly restricts available databases, breaking current expectations.
Note to viewers, the CLI wins over the config file in some cases like db config. Read more at https://github.com/odoo/odoo/blob/17.0/odoo/tools/config.py#L448-L484 |
Phase one of addressing exposed passwords.
The problem
The goal
Related