-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
correct CheckHSMConnection error handling (#1000)
With GetPrivKeyHandle removed in #992, we forgot to update the error handling in CheckHSMConnection causing it to always return an error. Now we rely soely on the earlier PrivateKeyHasPEMPrefix call for whether the key is in the HSM. Along the way, we cause main to error if the HSM connection check fails. This allows autograph and the integration tests to fail immediately if the HSM is believed to be unavailable. We found this problem at staging deploy time because we weren't checking the HSM connection on boot. The deploy was failing because the HSM healthcheck failed, but those aren't checked in integration tests.
- Loading branch information
Showing
2 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters