charm-vault/unit_tests
Martin Kalcok 1a1953b0ef Implement cert cache for vault units (v4)
This cache is used to store certificates and keys
issued by the leader unit. Non-leader units read
these certificates and keep data in their
"tls-certificates" relations up to date.
This ensures that charm units that receive certs
from vault can read from relation data of any
vault unit and receive correct data.

This patch is mostly the same as
I18aa6c9193379ea454851b6f60a8f331ef88a980
but improved to avoid LP#1896542 by removing
the section where a certificate can be reused
from cache during create_certs.

Co-Authored-By: Rodrigo Barbieri <rodrigo.barbieri@canonical.com>
Co-Authored-By: Alex Kavanagh <alex.kavanagh@canonical.com>

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1084

Closes-Bug: #1940549
Closes-Bug: #1983269
Closes-Bug: #1845961
Related-Bug: #1896542
Change-Id: I0cca13d2042d61ffc6a7c13eccb0ec8c292020c9
2023-07-26 08:54:22 +00:00
..
__init__.py Use unittest.mock instead of mock 2021-12-15 11:38:28 +00:00
test_actions.py Add `force` flag to get-csr 2023-02-23 12:43:12 +00:00
test_lib_charm_vault.py Update hvac library to latest version 2022-07-04 09:34:33 +09:30
test_lib_charm_vault_pki.py Implement cert cache for vault units (v4) 2023-07-26 08:54:22 +00:00
test_reactive_vault_handlers.py Implement cert cache for vault units (v4) 2023-07-26 08:54:22 +00:00
test_utils.py Merge "Use unittest.mock instead of mock" 2021-12-16 10:26:17 +00:00