Merge "Add digest_algorith config option"

This commit is contained in:
Jenkins 2016-10-08 15:46:05 +00:00 committed by Gerrit Code Review
commit 5b661fc342
2 changed files with 26 additions and 0 deletions

View File

@ -39,8 +39,33 @@ paste_deploy_opts = [
help=_('Name of the paste configuration file.')),
]
common_opts = [
cfg.StrOpt('digest_algorithm',
default='sha256',
help=_("""
Digest algorithm to use for digital signature.
Provide a string value representing the digest algorithm to
use for generating digital signatures. By default, ``sha256``
is used.
To get a list of the available algorithms supported by the version
of OpenSSL on your platform, run the command:
``openssl list-message-digest-algorithms``.
Examples are 'sha1', 'sha256', and 'sha512'.
Possible values:
* An OpenSSL message digest algorithm identifier
Relation options:
* None
""")),
]
CONF = cfg.CONF
CONF.register_opts(paste_deploy_opts, group='paste_deploy')
CONF.register_opts(common_opts)
policy.Enforcer(CONF)

View File

@ -35,6 +35,7 @@ _artifacts_opts = [
glare.api.middleware.context.context_opts,
glare.api.v1.resource.list_configs,
glare.api.versions.versions_opts,
glare.common.config.common_opts,
glare.common.wsgi.bind_opts,
glare.common.wsgi.eventlet_opts,
glare.common.wsgi.socket_opts,