Mark sensitive config options as secret.

Avoid these values inadvertently leaking into logs.

Change-Id: Iec3a683f8aeca265143ac450f5153f3d10dba1c5
This commit is contained in:
Eoghan Glynn 2013-05-28 10:45:56 +00:00
parent 2fcd26397a
commit 63f68735c2
3 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,7 @@ METER_PUBLISH_OPTS = [
deprecated_group="DEFAULT",
),
cfg.StrOpt('metering_secret',
secret=True,
default='change this or be hacked',
help='Secret value for signing metering messages',
deprecated_group="DEFAULT",

View File

@ -46,6 +46,7 @@ CLI_OPTIONS = [
default=os.environ.get('OS_USERNAME', 'ceilometer'),
help='Username to use for openstack service access'),
cfg.StrOpt('os-password',
secret=True,
default=os.environ.get('OS_PASSWORD', 'admin'),
help='Password to use for openstack service access'),
cfg.StrOpt('os-tenant-id',

View File

@ -34,6 +34,7 @@ STORAGE_ENGINE_NAMESPACE = 'ceilometer.storage'
STORAGE_OPTS = [
cfg.StrOpt('database_connection',
secret=True,
default='mongodb://localhost:27017/ceilometer',
help='Database connection string',
),