Introduce SHOW_DB_URI config value
ClosedPublic

Authored by mkrizek on Jun 17 2014, 9:00 AM.

Details

Summary

Fixes T220

Test Plan

Run run_cli.py with TEST and/or PROD set to true and see if DB URI is shown.

Diff Detail

Repository
rRSDB resultsdb
Lint
Lint Skipped
Unit
Unit Tests Skipped
mkrizek retitled this revision from to Introduce SHOW_DB_URI config value.Jun 17 2014, 9:00 AM
mkrizek updated this object.
mkrizek edited the test plan for this revision. (Show Details)
mkrizek added reviewers: tflink, jskladan.
tflink requested changes to this revision.Jun 17 2014, 11:11 AM
tflink added inline comments.
resultsdb/config.py
50

Unfortunately, this still leaks the DBURI by default since DevelopmentConfig is the config used if nothing else is selected.

I'd rather see it false in config.py and maybe commented out or set to false in conf/settings.py.example

This revision now requires changes to proceed.Jun 17 2014, 11:11 AM
mkrizek added inline comments.Jun 17 2014, 11:17 AM
resultsdb/config.py
50

Unfortunately, this still leaks the DBURI by default since DevelopmentConfig is the config used if nothing else is selected.

Isn't it expected that the DBURI is shown in DevelopmentConfig?

If you have other ideas on how to keep the DBURI from leaking to logs by default, I'm not set on a single particular solution

resultsdb/config.py
50

Perhaps but my concern is that the complete DBURI is leaking by default. I just don't want to have to run around changing db passwords every time I forget to put PROD='true' in front of a command

mkrizek updated this revision to Diff 421.Jun 17 2014, 2:35 PM

Address issue mentioned in the review

tflink accepted this revision.Jun 17 2014, 2:45 PM

Looks good to me

This revision is now accepted and ready to land.Jun 17 2014, 2:45 PM
mkrizek closed this revision.Jun 23 2014, 9:26 AM
mkrizek updated this revision to Diff 427.

Closed by commit rRSDB55bfa3c97e0a (authored by @mkrizek).