shield

package
v0.0.0-...-70b66e7 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

View Source
const (
	EventTypeAnnotationKey       = "integrityshield.io/eventType"
	EventResultAnnotationKey     = "integrityshield.io/eventResult"
	EventTypeValueVerifyResult   = "verify-result"
	EventTypeAnnotationValueDeny = "deny"
)
View Source
const AnnotationKeyDomainShield = "integrityshield.io"
View Source
const SignatureAnnotationKeyShield = "integrityshield.io/signature"
View Source
const SignatureAnnotationTypeShield = "IntegrityShield"
View Source
const SignatureResourceLabel = "integrityshield.io/signatureResource"

Variables

View Source
var (
	SkipUser          = "Allowed by skipUsers rule."
	NoMutation        = "Allowed because no mutation found."
	SkipObject        = "Allowed by skipObjects rule."
	NonScopeObject    = "Allowed because this resource is not in-scope."
	SignatureResource = "Allowed because this resource is signatureResource."
)

Allow message

Functions

func VerifyImagesInManifest

func VerifyImagesInManifest(request *admission.AdmissionRequest, imageProfile config.ImageProfile) (bool, string)

Image verification

func VerifyResource

func VerifyResource(request *admission.AdmissionRequest, mvconfig *config.ManifestVerifyConfig, rule *config.ManifestVerifyRule) (allow bool, message string, err error)

VerifyResource checks if manifest is valid based on signature, ManifestVerifyRule and RequestFilterProfile which is included in ManifestVerifyConfig. VerifyResource uses the default profile if ManifestVerifyConfig input is nil.

Types

type ResultFromRequestHandler

type ResultFromRequestHandler struct {
	Allow   bool   `json:"allow"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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