open-vault/builtin/logical/pki
Alexander Scheel a18187c643
Correctly distinguish empty issuer names in PKI (#18466)
* Correctly distinguish empty issuer names

When using client.Logical().JSONMergePatch(...) with an empty issuer
name, patch incorrectly reports:

> issuer name contained invalid characters

In this case, both the error in getIssuerName(...) is incorrect and
patch should allow setting an empty issuer name explicitly.

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

* Add changelog

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

* Add tests

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

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-01-10 10:04:30 -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 Correctly distinguish empty issuer names in PKI (#18466) 2023-01-10 10:04:30 -05:00
ca_test.go Add issuer reference info on JSON endpoint (#18482) 2022-12-19 21:39:01 +00:00
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
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
path_config_ca.go
path_config_cluster.go Add cluster_aia_path templating variable (#18493) 2023-01-10 09:51:37 -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 Add cluster_aia_path templating variable (#18493) 2023-01-10 09:51:37 -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 Correctly distinguish empty issuer names in PKI (#18466) 2023-01-10 10:04:30 -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
path_revoke.go Refactor PKI to use shared storage context (#18266) 2022-12-08 09:27:02 -05:00
path_roles.go
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 Correctly handle issuer tidying in auto-tidy config (#18347) 2022-12-14 15:35:21 -05:00
path_tidy_test.go Correctly handle issuer tidying in auto-tidy config (#18347) 2022-12-14 15:35:21 -05:00
secret_certs.go Refactor PKI to use shared storage context (#18266) 2022-12-08 09:27:02 -05:00
storage.go Add cluster_aia_path templating variable (#18493) 2023-01-10 09:51:37 -05:00
storage_migrations.go
storage_migrations_test.go
storage_test.go
test_helpers.go
util.go Correctly distinguish empty issuer names in PKI (#18466) 2023-01-10 10:04:30 -05:00