barbican/barbican/plugin
Douglas Mendizábal e7a714bd1f 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
(cherry picked from commit 70aac1f698)
(cherry picked from commit 1b6cf81c23)
(cherry picked from commit 2792aca796)
(cherry picked from commit 238b72caca)
2021-10-18 21:16:36 +00:00
..
crypto Ignore network errors during C_Finalize 2021-10-18 21:16:36 +00:00
interface Fix barbican B105 issues 2019-08-05 16:36:38 +02:00
util Fix the bug of pep8 and building api-guide 2019-08-05 16:36:02 +02:00
__init__.py Restructure project to accommodate plugin types 2014-06-18 23:46:07 -05:00
castellan_secret_store.py Fix getting secret for vault plugin 2018-07-26 22:34:16 +12:00
dogtag.py Start using the f29 nodeset 2019-09-18 12:15:53 -05:00
dogtag_config_opts.py Add retries for Dogtag plugin 2018-03-22 13:03:16 -04: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 Replaces uuid.uuid4 with uuidutils.generate_uuid() 2017-06-19 18:01:52 +05:30
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