api: use new signature type for Azure SNP versions

* Remove signature checks from unittests. Would need to export
signature from client/fetcher (unwanted). Can't figure out a better way.
e2e test completes in ~4sec and runs automatically.
So seems like a acceptable tradeoff.
* list object is now signed, but not verified. If we start to verify the list
we will have to adapt the e2e test to restore the previous list.
Otherwise there could be conflicts between dev and release keys.
This commit is contained in:
Otto Bittner 2023-08-25 15:10:24 +02:00
parent 2b19632e09
commit fdaa5aab3c
6 changed files with 28 additions and 117 deletions

View file

@ -374,5 +374,5 @@ func (s signature) ValidateRequest() error {
// Validate checks that the signature is base64 encoded.
func (s signature) Validate() error {
return sigstore.IsBase64([]byte(s.Signature))
return sigstore.IsBase64(s.Signature)
}