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
chain_util.go
config_util.go
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
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
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
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
path_resign_crls.go
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
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
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
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
test_helpers.go
util.go