Skip to content

Commit

Permalink
fix: Sign bundles when publishing from archives
Browse files Browse the repository at this point in the history
The code flow for publishing from archives is different from publishing
from a porter bundle definition. This resulted in signing never happened
when publishing from an archive.
This change introduces the signing when publishing from archives too.

Signed-off-by: Kim Christensen <[email protected]>
  • Loading branch information
kichristensen committed Aug 11, 2024
1 parent ddf7d68 commit 277cd62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/porter/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ func (p *Porter) InstallBundle(ctx context.Context, opts InstallOptions) error {
}

invocationImage := bun.Definition.InvocationImages[0].Image
if relocInvImage, ok := bun.RelocationMap[invocationImage]; ok {
invocationImage = relocInvImage
}
log.Debugf("verifying invocation image signature for %s", invocationImage)
err = p.Signer.Verify(ctx, invocationImage)
if err != nil {
Expand Down

0 comments on commit 277cd62

Please sign in to comment.