Commit Graph

35 Commits (276e307a1d6192d57904713be4d0c14c81ee51dc)

Author SHA1 Message Date
Mariano Cano d30a95236d Use always go.step.sm/crypto 4 years ago
Mariano Cano ddb4ca7a74 Move load of kms to main package.
With this change packages that import the authority won't load by
default all the supported kms with all its dependencies.

Fixes #228
4 years ago
Mariano Cano 6c9cd7050c Add test with query strings. 4 years ago
Mariano Cano dfe8e11e44 Remove anchor from link. 4 years ago
Mariano Cano 7104588fcb Fix linter error. 4 years ago
Mariano Cano aaf71ce66a Add unit tests for awskms. 4 years ago
Mariano Cano d4cb9f4ac7 Define an interface for kms operations.
This interface will be used for unit testing.
4 years ago
Mariano Cano 82fb96588e Fix unit tests. 4 years ago
Mariano Cano c32abb76cd Add initial implementation to support AWS KMS. 4 years ago
Mariano Cano b0f768a3fb Add implementation of URIs for KMS.
Implementation is based on the PKCS #11 URI Scheme RFC
https://tools.ietf.org/html/rfc7512
4 years ago
Mariano Cano 012a4734bf Add better messaging when yubikey is not detected. 4 years ago
Mariano Cano 7d61c0003c Enable softkms and cloudkms. 4 years ago
Mariano Cano 63e36ecd7a Refactor the initialization of KeyManagers. 4 years ago
Mariano Cano 029483463b Remove extra +build statement. 4 years ago
Mariano Cano 677e99793e Create alternative yubikey file when cgo is not enabled.
This yubikey will always fail.
4 years ago
Mariano Cano 6868190fff Add initial support for yubikey. 4 years ago
Mariano Cano 1138cc4207 Retry CloudKMS GetPublicKey.
On HSM keys are not generated instantly and the GetPublicKey fails
with a FailedPrecondition error. This change will retry GetPublicKey
if this happens.
4 years ago
Mariano Cano 5c8c741fab Fix linting issues. 4 years ago
Mariano Cano dd5a96a42e Fix typo. 4 years ago
Mariano Cano b724f5a338 Fix typos. 4 years ago
Mariano Cano 6987a46b76 Skip test on travis. 4 years ago
Mariano Cano b11bbd5728 Fix typo. 4 years ago
Mariano Cano cff346e7fd Skip test on travis, it won't fail because they have access to the KMS. 4 years ago
Mariano Cano fa8116497c Make Signer public and add contructor NewCloudKMS. 4 years ago
Mariano Cano 5d5ee68d88 Make GCP client public to facilitate extensibility. 4 years ago
Mariano Cano dff498f17f Add tests for cloudkms. 5 years ago
Mariano Cano 264179cda3 Add tests for kms and kms/apiv1 packages. 5 years ago
Mariano Cano c250c6ad91 Add unit tests for softkms. 5 years ago
Mariano Cano a773977a81 Fix interface change. 5 years ago
Mariano Cano 927a3b3a86 Return crypto.PublicKey on kms.GetPublicKey. 5 years ago
Mariano Cano a9c2db8f98 Add close method and fix types in softkms. 5 years ago
Mariano Cano a3128a26bb Add Close method to the key manager interface. 5 years ago
Mariano Cano e60beeb7fc Make cloudkms more robust.
* Automatically create key rings if needed.
* User CryptoKeyVersions if needed.
* Add support to close the client.
* Add new pareters to CreateKey responses to make things easier.
5 years ago
Mariano Cano 3f8de17a40 Cleanup types and add initial support for the options required for PKCS11. 5 years ago
Mariano Cano d13754166a Add support for cloudkms and softkms. 5 years ago