-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sign image and attach SBOM attestion #12
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cosign seems like a good choice to me.
Perhaps we can enable using Fulcio and Rekor as well. I left a few comments to that end; hope they help a bit ;-)
I think this could also be merged as is!
} | ||
|
||
func (c *CosignClient) commonArgs(imageRef string) []string { | ||
args := []string{"--tlog-upload=false", "--key", c.key} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps it would be worthwhile to also allow using a custom rekor URL so one could run a private rekor instance.
If we would make the rekor url a parameter one could by default have it empty meaning it is not used. A special value could be used for not disabling using rekor and instead use it's default URL.
@@ -88,6 +91,7 @@ var defaultOptions = options{ | |||
buildahBuildExtraArgs: "", | |||
buildahPushExtraArgs: "", | |||
trivySBOMExtraArgs: "", | |||
cosignKey: "", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should cosignExtraArgs be added to facilitate experimentation?
Awesome, thanks for the feedback. I basically agree to all your mentioned points. However, they all can be added later on without breaking the current behaviour. Therefore I am going to merge this now, and when the need arises we can build on top of it. |
Closes #11.