You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The assert step in the validate vsa task reads
the output from a task result which has to be
under 4k.
This step determines whether the task fails or not.
This is similar to the appstudio output for validate image.
example
{"result": "FAILURE"}
Copy file name to clipboardExpand all lines: cmd/validate/vsa.go
+52-20Lines changed: 52 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -216,7 +216,7 @@ func addVSAFlags(cmd *cobra.Command, data *validateVSAData) {
216
216
cmd.Flags().BoolVar(&data.noFallback, "no-fallback", false, "Disable fallback to image validation when VSA validation fails (fallback is enabled by default)")
217
217
cmd.Flags().StringVar(&data.fallbackPublicKey, "fallback-public-key", "", "Public key to use for fallback image validation (different from VSA verification key)")
Validates a Snapshot using Conforma in two phases: 1) `ec validate vsa` (CLI will fall back to `validate image` if VSA missing/expired) 2) `ec validate image` with release-time rules only (pipeline_intention=release)
8
+
9
+
10
+
== Params
11
+
[horizontal]
12
+
13
+
*SNAPSHOT_FILENAME* (`string`):: The filename of the Snapshot located within the trusted artifact
14
+
*SOURCE_DATA_ARTIFACT* (`string`):: Trusted Artifact to use to obtain the Snapshot to validate.
15
+
*POLICY_CONFIGURATION* (`string`):: Name of the policy configuration (EnterpriseContractPolicy
16
+
resource) to use. `namespace/name` or just `name`. Can also be a
17
+
Git URL, e.g. `github.com/conforma/config//slsa3`.
18
+
19
+
+
20
+
*Default*: `enterprise-contract-service/default`
21
+
*PUBLIC_KEY* (`string`):: Public key used to verify signatures. Must be a valid k8s cosign reference (e.g. k8s://my-ns/my-secret) where the secret contains `cosign.pub`.
22
+
23
+
*VSA_PUBLIC_KEY* (`string`):: Public key used to verify signatures. Must be a valid k8s cosign reference (e.g. k8s://my-ns/my-secret) where the secret contains `cosign.pub`.
24
+
25
+
*REKOR_HOST* (`string`):: Rekor host for transparency log lookups
26
+
*IGNORE_REKOR* (`string`):: Skip Rekor transparency log checks during validation.
27
+
+
28
+
*Default*: `true`
29
+
*TUF_MIRROR* (`string`):: TUF mirror URL. Provide a value when NOT using public sigstore deployment.
30
+
*SSL_CERT_DIR* (`string`):: Extra certs path(s) for external services. Useful with local
31
+
registries/Rekor. Multiple paths can be provided using `:`.
32
+
33
+
*CA_TRUST_CONFIGMAP_NAME* (`string`):: Name of the ConfigMap to read CA bundle data from.
34
+
+
35
+
*Default*: `trusted-ca`
36
+
*CA_TRUST_CONFIG_MAP_KEY* (`string`):: Key in the ConfigMap that contains the CA bundle data.
37
+
+
38
+
*Default*: `ca-bundle.crt`
39
+
*INFO* (`string`):: Include rule titles/descriptions in output. Set to "false" to disable.
40
+
+
41
+
*Default*: `true`
42
+
*STRICT* (`string`):: Fail the task if policy fails. Set to "false" to disable.
43
+
+
44
+
*Default*: `true`
45
+
*HOMEDIR* (`string`):: Value for the HOME environment variable.
46
+
+
47
+
*Default*: `/tekton/home`
48
+
*EFFECTIVE_TIME* (`string`):: Run policy checks with the provided time.
49
+
+
50
+
*Default*: `now`
51
+
*EXTRA_RULE_DATA* (`string`):: Merge additional Rego variables into the policy data. Syntax: key=val,key2=val2
52
+
53
+
*TIMEOUT* (`string`):: Deprecated; ignored by the task. EC is run without a timeout (use Tekton timeouts).
54
+
55
+
*WORKERS* (`string`):: Number of parallel workers to use for policy evaluation.
56
+
+
57
+
*Default*: `4`
58
+
*SINGLE_COMPONENT* (`string`):: Reduce Snapshot to only the component whose build created the Snapshot
59
+
+
60
+
*Default*: `false`
61
+
*SINGLE_COMPONENT_CUSTOM_RESOURCE* (`string`):: Kind/name of the Kubernetes resource to query labels when single component mode is enabled, e.g. pr/somepipeline.
62
+
63
+
+
64
+
*Default*: `unknown`
65
+
*SINGLE_COMPONENT_CUSTOM_RESOURCE_NS* (`string`):: Namespace where SINGLE_COMPONENT_CUSTOM_RESOURCE is found (for single component mode).
66
+
*ORAS_OPTIONS* (`string`):: ORAS options to pass to Trusted Artifacts calls
67
+
*TRUSTED_ARTIFACTS_DEBUG* (`string`):: Enable debug logging in trusted artifacts when non-empty.
68
+
*TRUSTED_ARTIFACTS_EXTRACT_DIR* (`string`):: Directory to extract the trusted artifact archive into.
69
+
+
70
+
*Default*: `/var/workdir/conforma`
71
+
*RETRY_DURATION* (`string`):: Base duration for exponential backoff (e.g., "1s", "500ms")
0 commit comments