Merge "Fix barbican B105 issues"
This commit is contained in:
commit
db7e9cbc65
@ -143,8 +143,8 @@ class DbCommands(object):
|
||||
commands.current(verbose, sql_url=CONF.sql_connection)
|
||||
else:
|
||||
commands.current(verbose, sql_url=str(dburl))
|
||||
|
||||
sync_secret_stores_description = "Sync secret_stores with barbican.conf"
|
||||
sync_secret_stores_description = ("Sync secret_stores with " # nosec
|
||||
"barbican.conf")
|
||||
|
||||
@args('--db-url', '-d', metavar='<db-url>', dest='dburl',
|
||||
help='barbican database URL')
|
||||
|
@ -43,7 +43,7 @@ API_VERSION = 'v1'
|
||||
# barbican.plugin.interface.secret_store which introduces a cyclic dependency
|
||||
# if `secret_store` plugin needs to use db model classes. So moving shared
|
||||
# value to another common python module which is already imported in both.
|
||||
SECRET_TYPE_OPAQUE = "opaque"
|
||||
SECRET_TYPE_OPAQUE = "opaque" # nosec
|
||||
|
||||
|
||||
def _do_allow_certain_content_types(func, content_types_list=[]):
|
||||
|
@ -165,8 +165,8 @@ class DogtagKRAPlugin(sstore.SecretStoreBase):
|
||||
BIT_LENGTH = "bit_length"
|
||||
GENERATED = "generated"
|
||||
KEY_ID = "key_id"
|
||||
SECRET_MODE = "secret_mode"
|
||||
PASSPHRASE_KEY_ID = "passphrase_key_id"
|
||||
SECRET_MODE = "secret_mode" # nosec
|
||||
PASSPHRASE_KEY_ID = "passphrase_key_id" # nosec
|
||||
CONVERT_TO_PEM = "convert_to_pem"
|
||||
|
||||
# string constants
|
||||
|
@ -278,7 +278,7 @@ class SecretType(object):
|
||||
PRIVATE = "private"
|
||||
"""Constant to define the passphrase type. Used by getSecret to retrieve a
|
||||
passphrase."""
|
||||
PASSPHRASE = "passphrase"
|
||||
PASSPHRASE = "passphrase" # nosec
|
||||
"""Constant to define the certificate type. Used by getSecret to retrieve a
|
||||
certificate."""
|
||||
CERTIFICATE = "certificate"
|
||||
|
2
tox.ini
2
tox.ini
@ -149,7 +149,7 @@ exclude = .git,.idea,.tox,bin,dist,debian,rpmbuild,tools,*.egg-info,*.eggs,contr
|
||||
[testenv:bandit]
|
||||
basepython = python3
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
commands = bandit -r barbican -x tests -n5 -s B105
|
||||
commands = bandit -r barbican -x tests -n5
|
||||
|
||||
[testenv:bindep]
|
||||
basepython = python3
|
||||
|
Loading…
Reference in New Issue
Block a user