cosign policy-controller v0.15.1

ClusterImagePolicy.spec.authorities[].keyless.ca-cert.secretRef.spec.policy

Policy is an optional policy that can be applied against all the successfully validated Authorities. If no authorities pass, this does not even get evaluated, as the Policy is considered failed.

8 fields
ClusterImagePolicy.spec.authorities[].keyless.ca-cert.secretRef.spec.policy fields and descriptions
Field / TypeDescription
object

ConfigMapRef defines the reference to a configMap with the policy definition.

data
string

Data contains the policy definition.

fetchConfigFile
boolean

FetchConfigFile controls whether ConfigFile will be fetched and made available for CIP level policy evaluation. Note that this only gets evaluated (and hence fetched) iff at least one authority matches. The ConfigFile will then be available in this format: https://github.com/opencontainers/image-spec/blob/main/config.md

includeObjectMeta
boolean

IncludeObjectMeta controls whether the ObjectMeta will be included and made available for CIP level policy evalutation. Note that this only gets evaluated iff at least one authority matches.

includeSpec
boolean

IncludeSpec controls whether resource `Spec` will be included and made available for CIP level policy evaluation. Note that this only gets evaluated iff at least one authority matches. Also note that because Spec may be of a different shape depending on the resource being evaluatied (see MatchResource for filtering) you might want to configure these to match the policy file to ensure the shape of the Spec is what you expect when evaling the policy.

includeTypeMeta
boolean

IncludeTypeMeta controls whether the TypeMeta will be included and made available for CIP level policy evalutation. Note that this only gets evaluated iff at least one authority matches.

object

Remote defines the url to a policy.

type
string

Which kind of policy this is, currently only rego or cue are supported. Furthermore, only cue is tested :)