review

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttestorValidatingTransport added in v0.2.0

type AttestorValidatingTransport struct {
	Client   metadata.ReadOnlyClient
	Attestor v1beta1.AttestationAuthority
}

Implements ValidatingTransport.

func (*AttestorValidatingTransport) GetValidatedAttestations added in v0.2.0

func (avt *AttestorValidatingTransport) GetValidatedAttestations(image string) ([]attestation.ValidatedAttestation, error)

type Config

type Config struct {
	Validate  securitypolicy.ValidateFunc
	Secret    secrets.Fetcher
	Auths     authority.Fetcher
	Strategy  violation.Strategy
	IsWebhook bool
}

type Reviewer

type Reviewer struct {
	// contains filtered or unexported fields
}

func New

func New(c *Config) Reviewer

func (Reviewer) ReviewGAP

func (r Reviewer) ReviewGAP(images []string, gaps []v1beta1.GenericAttestationPolicy, pod *v1.Pod, c metadata.ReadOnlyClient) error

ReviewGAP reviews images against generic attestation policies Returns error if violations are found and handles them per violation strategy

func (Reviewer) ReviewISP

func (r Reviewer) ReviewISP(images []string, isps []v1beta1.ImageSecurityPolicy, pod *v1.Pod, c metadata.ReadWriteClient) error

ReviewISP reviews images against image security policies Returns error if violations are found and handles them per violation strategy

type ValidatingTransport added in v0.2.0

type ValidatingTransport interface {
	GetValidatedAttestations(image string) ([]attestation.ValidatedAttestation, error)
}

ValidatingTransport allows the caller to obtain validated attestations for a given container image. Implementations should return trusted and verified attestations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL