Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENCRYPTED COSIGN PRIVATE KEY -> ENCRYPTED SIGSTORE PRIVATE KEY #101

Merged
merged 2 commits into from
Jul 22, 2021

Conversation

dekkagaijin
Copy link
Member

Signed-off-by: Jake Sanders jsand@google.com

Signed-off-by: Jake Sanders <jsand@google.com>
@dekkagaijin dekkagaijin requested a review from dlorenc July 22, 2021 02:46
@@ -102,7 +102,7 @@ func UnmarshalPEMToPrivateKey(pemBytes []byte, pf PassFunc) (crypto.PrivateKey,
switch derBlock.Type {
case string(PrivateKeyPEMType):
return x509.ParsePKCS8PrivateKey(derBlock.Bytes)
case string(EncryptedCosignPrivateKeyPEMType):
case string(EncryptedSigstorePrivateKeyPEMType):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we support both here? It's kinda ugly but it it decodes, it decodes.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sgtm

Signed-off-by: Jake Sanders <jsand@google.com>
@dekkagaijin dekkagaijin merged commit 90b4c06 into sigstore:main Jul 22, 2021
@dekkagaijin dekkagaijin deleted the refacc branch July 22, 2021 03:31
@cpanato cpanato added this to the 0.1.0 milestone Jul 22, 2021
mtrmac pushed a commit to mtrmac/sigstore that referenced this pull request Mar 10, 2023
Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>
mtrmac pushed a commit to mtrmac/sigstore that referenced this pull request Mar 10, 2023
* Add kms to sign-blob

Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>

* Add documentation for KMS to README (sigstore#101)

Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>

* Add the public key from KMS (sigstore#100)

Signed-off-by: Dan Lorenc <dlorenc@google.com>
Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>

* remove unnecessary image input to sign function

Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>

* Add kms support to verify-blob as well

Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>

* Fix lint

Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>

* fix test

Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>

Co-authored-by: dlorenc <dlorenc@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants