open-vault/command/healthcheck
Steven Clark 9338c22c53
Trap errors related to vault pki list-intermediate issuer reading (#19165)
* Rename files to match test suite and existing pattern

* Factor out issuer loading into a dedicated function

 - Add a little more checks/validation when loading the a PKI issuer
 - Factor out the issuer loading into a dedicated function
 - Leverage existing health check code to parse issuer certificates

* Read parent issuer once instead of reloading it for every child

 - Read in our parent issuer once instead of running it for every child
   we want to compare against
 - Provides clearer error message that we have failed reading from which
   path to the end user

* PR Feedback

 - Rename a variable for clarity
 - Use readIssuer in the validation of the parent issuer within
   pkiIssuer
 - Add some missing return 1 statements in error handlers that had been
   missed
2023-02-14 08:51:44 -05:00
..
healthcheck.go
pki.go Trap errors related to vault pki list-intermediate issuer reading (#19165) 2023-02-14 08:51:44 -05:00
pki_allow_if_modified_since.go Trap errors related to vault pki list-intermediate issuer reading (#19165) 2023-02-14 08:51:44 -05:00
pki_audit_visibility.go Trap errors related to vault pki list-intermediate issuer reading (#19165) 2023-02-14 08:51:44 -05:00
pki_ca_validity_period.go
pki_crl_validity_period.go
pki_enable_auto_tidy.go
pki_hardware_backed_root.go
pki_role_allows_glob_wildcards.go
pki_role_allows_localhost.go
pki_role_no_store_false.go
pki_root_issued_leaves.go
pki_tidy_last_run.go
pki_too_many_certs.go
shared.go Trap errors related to vault pki list-intermediate issuer reading (#19165) 2023-02-14 08:51:44 -05:00
util.go