]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Mark sql_connection with secret flag
authorMichael J Fork <mjfork@us.ibm.com>
Thu, 28 Mar 2013 02:58:04 +0000 (02:58 +0000)
committerChuck Short <chuck.short@canonical.com>
Thu, 11 Apr 2013 17:19:49 +0000 (12:19 -0500)
sql_connection contains the password in some setups and marking as
secret prevents accidental logging

fixes bug 1160680

Change-Id: I3704237d0923bb30138b5ece7e5c7bbda0a78b9b
(cherry picked from commit 9f8ee9d2981c5f317139e3743385b59956546d65)

cinder/flags.py

index d82e1ca8a508107898d8c8dc4910873b75863bf9..27e5b41b42dee8814d53143acf3086672ee8b49e 100644 (file)
@@ -81,7 +81,8 @@ core_opts = [
     cfg.StrOpt('sql_connection',
                default='sqlite:///$state_path/$sqlite_db',
                help='The SQLAlchemy connection string used to connect to the '
-                    'database'),
+                    'database',
+               secret=True),
     cfg.IntOpt('sql_connection_debug',
                default=0,
                help='Verbosity of SQL debugging information. 0=None, '