-
Notifications
You must be signed in to change notification settings - Fork 612
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
Compose: support cosign #607
Comments
otherwise we don't have to set the configuration in the compose spec it can be supported by flags. sthg like |
No, because a single YAML may have references to images signed with different keys. |
sounds amazing @AkihiroSuda 🤩 when do we start implementing this 🚀 |
Passing If we really want to pass variables by using flags, we probably find a way out how should we map the specified key for each image such as follows:
|
@AkihiroSuda @Dentrax having the cosign verification in the spec has a lot of advantages too. The major one is that this verification is easily reproductible |
I think in most cases, the signature keys of different images may be different, which cannot be controlled by the user. Maybe we can map the specified key for different services. |
kindly ping ✌️ |
I think maybe we can follow the following design. services:
foo:
image: bar
x-nerdctl-verify: cosign
x-nerdctl-cosign-key: /path/to/cosign.pub
foo2:
image: bar
x-nerdctl-need-verify: true
codesign:
x-nerdctl-cosign-key: /path/to/cosign.pub People can spec a global cosign key and decide which image would be verified and override the global key or not. |
kindly ping @AkihiroSuda @Dentrax |
Depends on:
nerdctl run
: support--verify=cosign
#611Cosign support for
nerdctl pull
andnerdctl push
is being added in #556 #606 (v0.15).We should support cosign for
nerdctl compose
too.Probably we should extend the Compose Spec with
x-nerdctl-
prefix. https://github.com/compose-spec/compose-spec/blob/master/spec.md#extensionYAML for verifying the image could be like this:
But I'm not sure how the YAML should look like for signing the images with
nerdctl compose push
, as we will have to have two different properties for prv key and pub key.Maybe like this:
The text was updated successfully, but these errors were encountered: