VerificationPolicy [tekton.dev/v1alpha1]
- Description
- VerificationPolicy defines the rules to verify Tekton resources. VerificationPolicy can config the mapping from resources to a list of public keys, so when verifying the resources we can use the corresponding public keys.
- Type
object- Required
spec
Specification
.spec
- Description
- Spec holds the desired state of the VerificationPolicy.
- Type
object- Required
authoritiesresources
.spec.authorities
- Description
- Authorities defines the rules for validating signatures.
- Type
array
.spec.authorities[]
- Description
- The Authority block defines the keys for validating signatures.
- Type
object- Required
name
.spec.authorities[].key
- Description
- Key contains the public key to validate the resource.
- Type
object
.spec.authorities[].key.secretRef
- Description
- SecretRef sets a reference to a secret with the key.
- Type
object
.spec.resources
- Description
- Resources defines the patterns of resources sources that should be subject to this policy. For example, we may want to apply this Policy from a certain GitHub repo. Then the ResourcesPattern should be valid regex. E.g. If using gitresolver, and we want to config keys from a certain git repo. `ResourcesPattern` can be `https://github.com/tektoncd/catalog.git`, we will use regex to filter out those resources.
- Type
array
.spec.resources[]
- Description
- ResourcePattern defines the pattern of the resource source
- Type
object- Required
pattern
API Endpoints
The following API endpoints are available:
/apis/tekton.dev/v1alpha1/namespaces/{namespace}/verificationpoliciesDELETE: delete collection of VerificationPolicyGET: list objects of kind VerificationPolicyPOST: create a new VerificationPolicy
/apis/tekton.dev/v1alpha1/namespaces/{namespace}/verificationpolicies/{name}DELETE: delete the specified VerificationPolicyGET: read the specified VerificationPolicyPATCH: partially update the specified VerificationPolicyPUT: replace the specified VerificationPolicy
/apis/tekton.dev/v1alpha1/namespaces/{namespace}/verificationpolicies
- HTTP method
DELETE- Description
- delete collection of VerificationPolicy
- HTTP responses
- HTTP method
GET- Description
- list objects of kind VerificationPolicy
- HTTP responses
- HTTP method
POST- Description
- create a new VerificationPolicy
- Query parameters
- Body parameters
- HTTP responses
/apis/tekton.dev/v1alpha1/namespaces/{namespace}/verificationpolicies/{name}
- HTTP method
DELETE- Description
- delete the specified VerificationPolicy
- Query parameters
- HTTP responses
- HTTP method
GET- Description
- read the specified VerificationPolicy
- HTTP responses
- HTTP method
PATCH- Description
- partially update the specified VerificationPolicy
- Query parameters
- HTTP responses
- HTTP method
PUT- Description
- replace the specified VerificationPolicy
- Query parameters
- Body parameters
- HTTP responses