-
Notifications
You must be signed in to change notification settings - Fork 23
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
update signature bundle format #46
Conversation
8fa2c0a
to
06330a7
Compare
Signed-off-by: Brian DeHamer <bdehamer@github.com>
06330a7
to
063edae
Compare
@@ -83,7 +83,7 @@ jobs: | |||
npm pack | |||
- name: Sign package | |||
run: | | |||
./bin/sigstore.js sign sigstore-0.0.0.tgz > artifact.sig | |||
./bin/sigstore.js sign sigstore-0.0.0.tgz > bundle.sigstore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! 🙌
src/sign.ts
Outdated
payloadHash: digest, | ||
payloadAlgorithm: 'sha256', | ||
base64Signature: signature, | ||
}, | ||
cert: b64Certificate, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to align with the current (in flight spec)?
cert: b64Certificate, | |
certificate: b64Certificate, |
src/sign.ts
Outdated
payloadAlgorithm: 'sha256', | ||
base64Signature: signature, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the current proposal
payloadAlgorithm: 'sha256', | |
base64Signature: signature, | |
payloadHashAlgorithm: 'sha256', | |
signature: signature, |
src/sign.ts
Outdated
base64Signature: string; | ||
export interface SigstoreBundle { | ||
attestationType: string; | ||
attestation: Record<string, string>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be updated to a new interface?
src/sign.ts
Outdated
export interface SignedPayload { | ||
base64Signature: string; | ||
export interface SigstoreBundle { | ||
attestationType: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enum?
src/dsse.ts
Outdated
const dsseBundle: DSSEBundle = { | ||
attestationType: 'attestation/dsse', | ||
attestation: envelope, | ||
cert: bundle.cert, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cert: bundle.cert, | |
certificate: bundle.cert, |
README.md
Outdated
``` | ||
$ openssl x509 -in signingcert.pem -text | ||
$ cat signature | jq --raw-output '.cert' | base64 -d | openssl x509 -text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ cat signature | jq --raw-output '.cert' | base64 -d | openssl x509 -text | |
$ cat signature | jq --raw-output '.certificate' | base64 -d | openssl x509 -text |
README.md
Outdated
"payloadAlgorithm": "sha256", | ||
"base64Signature": "MEUCIQC7Rrrjmrwdxuc2qvWiWzaoUdV8+VFv+fvDquvAGmxr3AIgaPEqQ5YvxjfeqgXYXvISzgyVA8y/Zw+G/LDYlt2RHMk=" | ||
}, | ||
"cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNvakNDQWllZ0F3SUJBZ0lVQkswdTBRdWF3dkVJWm82YS9keGVzbEthZU9jd0NnWUlLb1pJemowRUF3TXcKTnpFVk1CTUdBMVVFQ2hNTWMybG5jM1J2Y21VdVpHVjJNUjR3SEFZRFZRUURFeFZ6YVdkemRHOXlaUzFwYm5SbApjbTFsWkdsaGRHVXdIaGNOTWpJd09ERTJNVFEwTVRJd1doY05Nakl3T0RFMk1UUTFNVEl3V2pBQU1Ga3dFd1lICktvWkl6ajBDQVFZSUtvWkl6ajBEQVFjRFFnQUVFRWlrR2hsMXdzSzFLMStSYTBQRU9SQzh5SXE4bTBWM0VXSSsKbDIrY2w3aUFyM0xrc292Nk5qUmtyc3VjUVVpMmRmSi9uUlZlYi9rREw1WTJYbS9VTGFPQ0FVWXdnZ0ZDTUE0RwpBMVVkRHdFQi93UUVBd0lIZ0RBVEJnTlZIU1VFRERBS0JnZ3JCZ0VGQlFjREF6QWRCZ05WSFE0RUZnUVVnNUtlCk9JWnRvRktnd3ZKVjZSSHB6M2h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NtVXdkakFRQmdjcWhrak9QUUlCQmdVcmdRUUFJZ05pQUFUNwpYZUZUNHJiM1BRR3dTNElhanRMazMvT2xucGdhbmdhQmNsWXBzWUJyNWkrNHluQjA3Y2ViM0xQME9JT1pkeGV4Clg2OWM1aVZ1eUpSUStIejA1eWkrVUYzdUJXQWxIcGlTNXNoMCtIMkdIRTdTWHJrMUVDNW0xVHIxOUw5Z2c5MmoKWXpCaE1BNEdBMVVkRHdFQi93UUVBd0lCQmpBUEJnTlZIUk1CQWY4RUJUQURBUUgvTUIwR0ExVWREZ1FXQkJSWQp3QjVma1VXbFpxbDZ6SkNoa3lMUUtzWEYrakFmQmdOVkhTTUVHREFXZ0JSWXdCNWZrVVdsWnFsNnpKQ2hreUxRCktzWEYrakFLQmdncWhrak9QUVFEQXdOcEFEQm1BakVBajFuSGVYWnArMTNOV0JOYStFRHNEUDhHMVdXZzF0Q00KV1AvV0hQcXBhVm8wamhzd2VORlpnU3MwZUU3d1lJNHFBakVBMldCOW90OThzSWtvRjN2WllkZDMvVnRXQjViOQpUTk1lYTdJeC9zdEo1VGZjTExlQUJMRTRCTkpPc1E0dm5CSEoKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQ==", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"payloadAlgorithm": "sha256", | |
"base64Signature": "MEUCIQC7Rrrjmrwdxuc2qvWiWzaoUdV8+VFv+fvDquvAGmxr3AIgaPEqQ5YvxjfeqgXYXvISzgyVA8y/Zw+G/LDYlt2RHMk=" | |
}, | |
"cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNvakNDQWllZ0F3SUJBZ0lVQkswdTBRdWF3dkVJWm82YS9keGVzbEthZU9jd0NnWUlLb1pJemowRUF3TXcKTnpFVk1CTUdBMVVFQ2hNTWMybG5jM1J2Y21VdVpHVjJNUjR3SEFZRFZRUURFeFZ6YVdkemRHOXlaUzFwYm5SbApjbT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TTUVHREFXZ0JSWXdCNWZrVVdsWnFsNnpKQ2hreUxRCktzWEYrakFLQmdncWhrak9QUVFEQXdOcEFEQm1BakVBajFuSGVYWnArMTNOV0JOYStFRHNEUDhHMVdXZzF0Q00KV1AvV0hQcXBhVm8wamhzd2VORlpnU3MwZUU3d1lJNHFBakVBMldCOW90OThzSWtvRjN2WllkZDMvVnRXQjViOQpUTk1lYTdJeC9zdEo1VGZjTExlQUJMRTRCTkpPc1E0dm5CSEoKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQ==", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome seeing this being implemented as the spec is being written! Good way to sanity check the implementation. Left a few minor comments about matching some attributes names to the current spec proposal in the google doc
Signed-off-by: Brian DeHamer <bdehamer@github.com>
e335822
to
0f0f89e
Compare
@feelepxyz I wasn't sure about some of the field names in the new bundle since there is contradictory info in the current proposal. I updated to reflect your suggestions, but will keep an eye on things to see how they ultimately shake out. |
Summary
Updates the bundle object returned from
Signer.sign
to include all of the data necessary for offline verification. This aligns pretty closely w/ the proposal being discussed in sigstore/cosign#2131 but will make sure any further refinements are also incorporated intosigstore-js
.Release Note
sigstore.sign
to return the newSigstoreBundle
type which contains all the data necessary for offline verification.dsse.sign
to return the newDSSEBundle
type which includes the DSSE envelope and Rekor entry metadata.sign
andsign-dsse
CLI commands now return a Sigstore bundles.Signed-off-by: Brian DeHamer bdehamer@github.com