feat(container): surface provenance attestations behind feature flag [PRIM-100] - #7047
feat(container): surface provenance attestations behind feature flag [PRIM-100]#7047bdemeo12 wants to merge 2 commits into
Conversation
…[PRIM-100] Bump snyk-docker-plugin to ^9.18.0 (adds provenance attestation extraction) and gate the provenanceMetadata fact behind the surfaceProvenanceAttestations feature flag in filterDockerFacts, mirroring the allowNewContainerFacts pattern. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
This comment has been minimized.
This comment has been minimized.
Picks up snyk-docker-plugin 9.19.0, which falls back to BuildKit's vcs.source for buildConfigSourceUri on local builds (snyk/snyk-docker-plugin#889) so locally-built images still surface their source repository in the provenanceMetadata fact. Registry maps that field to repository_uri when relaying the asset upsert. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
PR Reviewer Guide 🔍
|
What
Surfaces container image provenance attestations through the CLI, gated behind a feature flag.
snyk-docker-plugin^9.16.0→^9.18.0, which adds provenance attestation extraction (emits theprovenanceMetadatafact).surfaceProvenanceAttestationsfeature flag infilterDockerFacts, mirroring the existingallowNewContainerFactspattern. When the flag is off,provenanceMetadatais filtered out before facts are sent downstream; when on, it is forwarded to Registry for upsert.The provenance flag is independent of
allowNewContainerFactsso it can be rolled out separately.Changes
package.json/package-lock.json— bumpsnyk-docker-pluginto^9.18.0.src/cli/commands/constants.ts— addSURFACE_PROVENANCE_ATTESTATIONS_FEATURE_FLAG = 'surfaceProvenanceAttestations'.src/lib/ecosystems/common.ts— infilterDockerFacts, filterprovenanceMetadataunless the flag is enabled.Feature flag
surfaceProvenanceAttestations— defined in registry (snyk/registry#44819).Downstream
This is the CLI half of the end-to-end provenance work. Registry relays the fact and assets-api persists it.
Notes
n/a