Skip to content

Commit

Permalink
test/e2e: Fix sealed secret padding
Browse files Browse the repository at this point in the history
Since confidential-containers/guest-components@8749486
the cdh doesn't support padding in secrets,
so switch to the Raw Encoding to match that.

Signed-off-by: stevenhorsman <[email protected]>
  • Loading branch information
stevenhorsman committed Jan 17, 2025
1 parent 64bbeb4 commit 1314c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cloud-api-adaptor/test/e2e/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ func CreateSealedSecretValue(resourceURI string) string {
if err != nil {
panic(err)
}
payload := b64.URLEncoding.EncodeToString([]byte(metadataStr))
payload := b64.RawURLEncoding.EncodeToString([]byte(metadataStr))
header := "fakejwsheader"
signature := "fakesignature"
return fmt.Sprintf("sealed.%s.%s.%s", header, payload, signature)
Expand Down

0 comments on commit 1314c9e

Please sign in to comment.