Skip to content
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

Begin exploration of an trust path for specified, unsigned images #1877

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pkg/apis/cosigned/v1alpha1/clusterimagepolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ type Authority struct {
// +optional
Keyless *KeylessRef `json:"keyless,omitempty"`
// +optional
Trusted *TrustedRef `json:"trusted,omitempty"`
// +optional
Sources []Source `json:"source,omitempty"`
// +optional
CTLog *TLog `json:"ctlog,omitempty"`
Expand Down Expand Up @@ -141,6 +143,13 @@ type KeylessRef struct {
CACert *KeyRef `json:"ca-cert,omitempty"`
}

// TrustedRef is reserved for those images that for whatever reason are not or cannot
// be signed. An optional expiry date may be added.
type TrustedRef struct {
Trust string `json:"trust,omitempty"`
Expiry string `json:"expiry,omitempty"`
}

// Attestation defines the type of attestation to validate and optionally
// apply a policy decision to it. Authority block is used to verify the
// specified attestation types, and if Policy is specified, then it's applied
Expand Down