barbican/barbican/plugin
Douglas Mendizábal 70aac1f698 Ignore network errors during C_Finalize
The Trustway Proteccio HSM can somtimes return a network error when
attempting to finalize the cryptoki library.

The error can prevent reinitialization because we attempt to finalize
the library before initalizing a new connection.  When a network error
occurrs, barbican gets stuck in an error loop trying to finalize the
dead connection before starting a new one.

This patch adds code to ignore the network error when finalizing to
ensure we are able to attempt to reinitialize.

Connection errors during other operations will still result in 500
errors as expected.

Change-Id: I9ac6c7bbda0f81cb26e1c589803317df1ef11f39
2021-09-17 13:36:03 -05:00
..
crypto Ignore network errors during C_Finalize 2021-09-17 13:36:03 -05:00
interface Remove six.add_metaclass 2020-09-29 15:19:56 +08:00
util Remove six.PY3 2020-09-22 05:32:06 +00:00
__init__.py Restructure project to accommodate plugin types 2014-06-18 23:46:07 -05:00
castellan_secret_store.py Fix Castellan Secret Store inconsistent encoding 2021-09-15 08:42:25 -05:00
dogtag.py Update hacking for Python3 2020-10-12 21:20:06 +02:00
dogtag_config_opts.py Fix config option type 2020-04-29 21:30:30 +02:00
kmip_secret_store.py Fix broken gate due to breaking dependency changes 2018-06-01 17:33:51 -05:00
resources.py Central logic to sync secret store data with conf data (Part 3) 2016-09-14 06:49:53 -07:00
simple_certificate_manager.py Remove translation of log messages 2017-06-03 10:18:55 +07:00
snakeoil_ca.py Replace oslo_utils.fnmatch with fnmatch 2021-07-06 21:23:59 +09:00
store_crypto.py Remove redundancy code 2017-12-02 11:14:42 +07:00
symantec.py Remove pep8 error in symantec plugin 2016-01-17 17:53:04 +01:00
vault_secret_store.py Enable KV mountpoint configuration for Vault 2019-02-21 09:46:40 +00:00