-
Notifications
You must be signed in to change notification settings - Fork 164
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
Signatures in DSSE envelopes for intoto/v0.0.2 are double encoded #1139
Comments
I understand this is a known issue: https://sigstore.slack.com/archives/C01CX4E2K70/p1664483571881309, should I close this? |
which client is being used to upload? |
I was using a local built I was testing this locally too, and I think I |
no need, that's enough of a direction for me to look at. thanks! |
I was looking at this a few weeks back to understand how to implement this properly in
{
"apiVersion":"0.0.2",
"kind":"intoto",
"spec":{
"content":{
"envelope":{
"payload":"ZXdvZ0lDSmZkSGx3WlNJNklDSm9kSFJ3Y3pvdkwybHVMWFJ2ZEc4dWFXOHZVM1JoZEdWdFpXNTBMM1l3TGpFaUxBb2dJQ0p6ZFdKcVpXTjBJam9nV3dvZ0lDQWdld29nSUNBZ0lDQWlibUZ0WlNJNklDSnpiSE5oTFhCeWIzWmxibUZ1WTJVdE1DNHdMakV1ZEdkNklpd0tJQ0FnSUNBZ0ltUnBaMlZ6ZENJNklIc0tJQ0FnSUNBZ0lDQWljMmhoTlRFeUlqb2dJbUppWm1Rek56Sm1ZemxpWldWaU56YzNabVV6TldRd05XSmlNVEJqTUdNM01HRTVOek16WkRNMk5tRTNOV1psWkRka1pERTRPRFkyWXpjek9URmtaVE5sWlRkbE9EaGlZVGMwWkdRME4yRmlaak5sTVRWak9EUTFaVFUwTjJaalpqQmxOV016WkdFNE1EZzFOR00zTlRFMU5UUXlNalJrTTJFMlpEUmxOVFZtSWdvZ0lDQWdJQ0I5Q2lBZ0lDQjlDaUFnWFN3S0lDQWljSEpsWkdsallYUmxWSGx3WlNJNklDSm9kSFJ3Y3pvdkwzTnNjMkV1WkdWMkwzQnliM1psYm1GdVkyVXZkakF1TWlJc0NpQWdJbkJ5WldScFkyRjBaU0k2SUhzS0lDQWdJQ0ppZFdsc1pGUjVjR1VpT2lB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EFJMlZBTUFTa2hRTTdDd3U2a29BKzBzbWF2WGRKUDJIK0cvOWlmUlRoa085"
}
]
},
"hash":{
"algorithm":"sha256",
"value":"d0dd92729d5d6273186f9083dccc4c53f0eb9d13f6f61b79bdbad22abbdb8aca"
}
}
}
} |
@bobcallaway Can this be closed as won't fix? We've now got the DSSE type that should fix this |
Description
When uploading an
intoto
object with version0.0.2
, the retrieved entry has the signature double base64 encoded.An example entry with this:
When retrieving the entry:
After base64 decode the signature, we get the real signature:
which was uploaded:
Version
Rekor as deployed of 2022-10-21.
The text was updated successfully, but these errors were encountered: