-
Notifications
You must be signed in to change notification settings - Fork 2
[In progress][SECURESIGN-3238] List artifact signatures/attestations #34
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
base: main
Are you sure you want to change the base?
Conversation
Reviewer's GuideThis PR enhances the ImageMetadata endpoint to list cryptographic signatures and signed attestations by introducing helper functions that fetch and dedupe manifests via the go-containerregistry APIs, integrates these lists into the service response, and updates associated errors, models, and the OpenAPI spec. Sequence diagram for fetching image signatures and attestations in GetImageMetadatasequenceDiagram
participant S as "artifactService"
participant G as "getImageSignatures()"
participant A as "getImageAttestations()"
S->>G: getImageSignatures(digest, ref)
G-->>S: signatureList ([]string)
S->>A: getImageAttestations(digest, ref)
A-->>S: attestationList ([]string)
S->>S: Build ImageMetadataResponse with signatures and attestations
ER diagram for updated ImageMetadataResponse data structureerDiagram
IMAGE_METADATA_RESPONSE {
string digest
string[] signatures
string[] attestations
Metadata metadata
}
METADATA {
}
IMAGE_METADATA_RESPONSE ||--|| METADATA : contains
Class diagram for updated ImageMetadataResponse modelclassDiagram
class ImageMetadataResponse {
+string Digest
+Metadata Metadata
+string[] Signatures
+string[] Attestations
}
class Metadata {
...
}
ImageMetadataResponse --> Metadata
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||
Summary by Sourcery
Add support for listing image cryptographic signatures and signed attestations in the GetImageMetadata endpoint
New Features:
Enhancements:
Documentation: