feat(build, oci): add commands to manage oci artifacts#162
Open
reyreavman wants to merge 7 commits into
Open
Conversation
reyreavman
force-pushed
the
feat/oci/commands-to-manage-oci-artifacts
branch
8 times, most recently
from
July 9, 2026 12:28
18be74f to
a2a40fb
Compare
nervgh
force-pushed
the
feat/oci/commands-to-manage-oci-artifacts
branch
2 times, most recently
from
July 13, 2026 15:41
a2a40fb to
dc56c4d
Compare
nervgh
requested changes
Jul 14, 2026
reyreavman
force-pushed
the
feat/oci/commands-to-manage-oci-artifacts
branch
2 times, most recently
from
July 15, 2026 08:06
e520696 to
f08f1f4
Compare
New pkg/attestation/ package with DSSE signing, in-toto v1 wrapping, well-known predicate types (openvex, cyclonedx, spdxjson, slsaprovenance), and CLI commands for creating, retrieving, verifying, and listing OCI attestations attached to container images. Migrated pkg/sbom/image/dsse.go to delegate to pkg/attestation/. Added e2e test suite under test/e2e/attest/. Signed-off-by: Radmir Khurum <radmir.khurum@flant.com>
- Extract PredicateTypeHelp() from WellKnownPredicateTypes map and use it in all --type flag descriptions instead of hardcoded string - Use Ginkgo SpecContext instead of context.Background() in unit tests - Replace alpine:3.20 with registry.werf.io/base/alpine:3.21 in e2e fixture Signed-off-by: Radmir Khurum <radmir.khurum@flant.com>
Signed-off-by: Radmir Khurum <radmir.khurum@flant.com>
reyreavman
force-pushed
the
feat/oci/commands-to-manage-oci-artifacts
branch
from
July 15, 2026 09:16
f08f1f4 to
c2038de
Compare
- VerifyDSSE now reports how many signatures had invalid base64 encoding in the failure message instead of silently skipping them (gap 1) - HasSignatures returns (bool, error) instead of silently returning false on malformed envelope JSON; ls.go propagates the error (gap 3) - Add integration tests for Attach/PullFallbackIndex against an in-memory registry covering attach-without-imageName, dedup, and content round-trip (gaps 4, 5) Signed-off-by: Radmir Khurum <radmir.khurum@flant.com>
reyreavman
force-pushed
the
feat/oci/commands-to-manage-oci-artifacts
branch
from
July 16, 2026 08:33
0355b41 to
32c1c64
Compare
Signed-off-by: Alexandr Zaytsev <alexandr.zaytsev@flant.com>
Signed-off-by: Alexandr Zaytsev <alexandr.zaytsev@flant.com>
…List - --image help said "(required)" but the flag is optional by design (identity is the parent digest; imageName is only an index annotation disambiguating images that share a digest). Fix the help text; do not add validation. Regenerate CLI docs. - List() fetched content via GetAttachedContentAny on every iteration, so Signed/PredicateType reflected only the first DSSE artifact when an image had multiple attestations. Add OCIStore.GetContentByDigest and fetch each entry by its own descriptor digest. Signed-off-by: Radmir Khurum <radmir.khurum@flant.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.