Uh oh!
There was an error while loading. Please reload this page.
Fixes provenance always enabled - #13066
Conversation
glours
left a comment
There was a problem hiding this comment.
👍 LGTM
For legal reasons you need to sing-off your commits
glours
commented
Jul 17, 2025
Ho and you will need to run |
ndeloof
commented
Jul 17, 2025
this is somehow contradictory with #12853 Also, usage of this option is a bit obscure to me, as setting this to false enables |
ndeloof
commented
Jul 17, 2025
This also makes me wonder we don't have attestation (or provenance?) attribute in the compose-spec |
ndeloof
commented
Jul 17, 2025
.. also need to check we correctly behave when |
glours
commented
Jul 17, 2025
Good catches @ndeloof, my bad, my review was too fast 🤦♂️ |
ndeloof
commented
Jul 17, 2025
Not strictly speaking a solution to this issue, but I created compose-spec/compose-go#809 to offer better control over attestation generation. |
Signed-off-by: keitosuwahara <keitosuwahara0816@gmail.com>
suwakei
commented
Jul 18, 2025
@ndeloof@glours Since that PR supersedes this one and addresses the same goal in a more extensible way, Happy to review or help refine anything there. |
ndeloof
commented
Jul 21, 2025
Closing as #13067 was merged |
Problem:
Currently, the
buildoptionProvenanceis hard-coded to true in therunBuildfunction.This prevents users from disabling the generation of SLSA provenance metadata(used for software supply chain security and build traceability) at build time.
Since the provenance flag already exists in the buildOptions structure, this hard-coded value should be removed, and users should be able to control it via a command-line flag.
Suggestion for improvement:
Add
--provenanceflagIntroduce a new
--provenanceflag to thebuildcommand. This will give users explicit control over whether provenance metadata should be generated, making the tool more flexible and intuitive.As a security best practice, the default value of this flag should be true with true as the default, so provenance is generated unless users explicitly disable it.
Benefits
Improved control: Users can disable provenance generation by specifying
--provenance=false.Code clarity: Removes hard-coding and delegates control to existing
buildOptionsstructure.Security best practice: Enabling provenance by default supports secure software supply chains.