open-vault/builtin/logical/pki
Alexander Scheel a8764e0cf1
Refactor PKI to use shared storage context (#18266)
A lot of places took a (context, backend, request) tuple, ignoring the
request proper and only using it for its storage. This (modified) tuple
is exactly the set of elements in the shared storage context, so we
should be using that instead of manually passing all three elements
around.

This simplifies a few places where we'd generate a storage context at
the request level and then split it apart only to recreate it again
later (e.g., CRL building).

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
2022-12-08 09:27:02 -05:00
..
cmd/pki
backend.go Refactor PKI to use shared storage context (#18266) 2022-12-08 09:27:02 -05:00
backend_test.go Address race in PKI test case (#18267) 2022-12-08 09:11:05 -05:00
ca_test.go
ca_util.go
cert_util.go Refactor PKI to use shared storage context (#18266) 2022-12-08 09:27:02 -05:00
cert_util_test.go Refactor PKI to use shared storage context (#18266) 2022-12-08 09:27:02 -05:00
chain_test.go Move pki docker tests to pkiext (#17928) 2022-11-14 18:26:26 -05:00
chain_util.go PKI - Fix order of chain building writes (#17772) 2022-11-03 11:50:03 -04:00
config_util.go Handle removed default issuers (#17930) 2022-11-14 15:13:39 -05:00
crl_test.go Refactor PKI to use shared storage context (#18266) 2022-12-08 09:27:02 -05:00
crl_util.go Refactor PKI to use shared storage context (#18266) 2022-12-08 09:27:02 -05:00
fields.go Add automatic tidy of expired issuers (#17823) 2022-11-10 10:53:26 -05:00
integration_test.go Respond with data to all writes in PKI engine (#18222) 2022-12-05 10:40:39 -05:00
key_util.go
managed_key_util.go
ocsp.go Refactor PKI to use shared storage context (#18266) 2022-12-08 09:27:02 -05:00
ocsp_test.go Respond with data to all writes in PKI engine (#18222) 2022-12-05 10:40:39 -05:00
path_config_ca.go Move from %v->%w for errs (#17860) 2022-11-09 15:40:26 -05:00
path_config_cluster.go Allow templating cluster-local AIA URIs (#18199) 2022-12-05 10:38:26 -05:00
path_config_crl.go Refactor PKI to use shared storage context (#18266) 2022-12-08 09:27:02 -05:00
path_config_urls.go Allow templating cluster-local AIA URIs (#18199) 2022-12-05 10:38:26 -05:00
path_fetch.go Refactor PKI to use shared storage context (#18266) 2022-12-08 09:27:02 -05:00
path_fetch_issuers.go Refactor PKI to use shared storage context (#18266) 2022-12-08 09:27:02 -05:00
path_fetch_keys.go
path_intermediate.go PKI: Add support for signature_bits param to the intermediate/generate api (#17388) 2022-10-03 12:39:54 -04:00
path_issue_sign.go
path_manage_issuers.go Refactor PKI to use shared storage context (#18266) 2022-12-08 09:27:02 -05:00
path_manage_keys.go
path_manage_keys_test.go Move pki docker tests to pkiext (#17928) 2022-11-14 18:26:26 -05:00
path_resign_crls.go New PKI API to generate and sign a CRL based on input data (#18040) 2022-11-22 11:41:04 -05:00
path_resign_crls_test.go Respond with data to all writes in PKI engine (#18222) 2022-12-05 10:40:39 -05:00
path_revoke.go Refactor PKI to use shared storage context (#18266) 2022-12-08 09:27:02 -05:00
path_roles.go Respond with data to all writes in PKI engine (#18222) 2022-12-05 10:40:39 -05:00
path_roles_test.go Move pki docker tests to pkiext (#17928) 2022-11-14 18:26:26 -05:00
path_root.go Refactor PKI to use shared storage context (#18266) 2022-12-08 09:27:02 -05:00
path_sign_issuers.go
path_tidy.go Refactor PKI to use shared storage context (#18266) 2022-12-08 09:27:02 -05:00
path_tidy_test.go Move pki docker tests to pkiext (#17928) 2022-11-14 18:26:26 -05:00
secret_certs.go Refactor PKI to use shared storage context (#18266) 2022-12-08 09:27:02 -05:00
storage.go Allow templating cluster-local AIA URIs (#18199) 2022-12-05 10:38:26 -05:00
storage_migrations.go PKI - Fix order of chain building writes (#17772) 2022-11-03 11:50:03 -04:00
storage_migrations_test.go Respond with data to all writes in PKI engine (#18222) 2022-12-05 10:40:39 -05:00
storage_test.go Move pki docker tests to pkiext (#17928) 2022-11-14 18:26:26 -05:00
test_helpers.go Add new PKI api to combine and sign different CRLs from the same issuer (#17813) 2022-11-17 16:53:05 -05:00
util.go Move from %v->%w for errs (#17860) 2022-11-09 15:40:26 -05:00