-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use KMS keys to sign and verify. (#41)
Use KMS keys and [kmssigner](https://github.com/transparency-dev/armored-witness/tree/main/pkg/kmssigner) instead of plaintext keys passed in as env vars. This involves some changes to the args for calling the GCF functions to specify the KMS key to be used. Also fix some other sharp edges: * If JSON decode fails (e.g. user sets key version to a string instead of an integer), write the error to the HTTP response instead of just logging it in Cloud Logging. * In the Sequence function, compare paths of to-sequence file names only after calling `filepath.Clean` on them. Tested by deploying `integrate_dev` and `sequence_dev` GCF functions in our Armored Witness GCP project.
- Loading branch information
Showing
3 changed files
with
179 additions
and
107 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
Oops, something went wrong.