Commit Graph

2 Commits

Author SHA1 Message Date
hc-github-team-secure-vault-core
02bc25417a Trap errors related to vault pki list-intermediate issuer reading (#19165) (#19177)
* 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

Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-02-14 09:51:12 -05:00
hc-github-team-secure-vault-core
3e4710d7ad backport of commit d08de3e78e (#19178)
Co-authored-by: Kit Haines <khaines@mit.edu>
2023-02-14 14:23:50 +00:00