Skip to content

zarf component verify

zarf component verify

Verifies a published Zarf component signature

Synopsis

Verifies the Sigstore signature stored as an OCI referrer of a published Zarf component manifest.

zarf component verify COMPONENT_SOURCE [flags]

Examples

# Verify a published component with a public key
$ zarf component verify ghcr.io/my-org/my-component:1.0 --key ./public-key.pem
# Verify a keyless signature by its certificate identity
$ zarf component verify ghcr.io/my-org/my-component:1.0 --certificate-identity signer@example.com --certificate-oidc-issuer https://token.actions.githubusercontent.com

Options

--certificate-identity string Required identity claim in the signing certificate (keyless verify). Example: signer@example.com or https://github.com/org/repo/.github/workflows/release.yml@refs/heads/main
--certificate-identity-regexp string Regex variant of --certificate-identity
--certificate-oidc-issuer string Required OIDC issuer claim in the signing certificate (keyless verify). Example: https://github.com/login/oauth or https://token.actions.githubusercontent.com
--certificate-oidc-issuer-regexp string Regex variant of --certificate-oidc-issuer
-h, --help help for verify
--insecure-ignore-tlog Skip Rekor transparency log inclusion verification. Default true for air-gap. Auto-disabled when keyless identity flags are set (keyless signatures require Rekor inclusion proof to remain verifiable past certificate expiry). (default true)
-k, --key string Public key for signature verification
--trusted-root string Path to a Sigstore TrustedRoot JSON. Falls back to the binary-embedded copy when omitted.
--use-signed-timestamps Verify RFC3161 signed timestamps in the bundle. Auto-enabled when the bundle contains TSA timestamp data. Use when signing was done with --tsa-server-url and Rekor was not used.

Options inherited from parent commands

-a, --architecture string Architecture for OCI images and Zarf packages
--cache string Specify the location of the Zarf cache directory (default "~/.zarf-cache")
--features stringToString Provide a comma-separated list of feature names to bools to enable or disable. Ex. --features "foo=true,bar=false,baz=true" (default [])
--insecure-skip-tls-verify Skip checking server's certificate for validity. This flag should only be used if you have a specific reason and accept the reduced security posture.
--log-format string Select a logging format. Defaults to 'console'. Valid options are: 'console', 'json', 'dev'. (default "console")
-l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info")
--no-color Disable terminal color codes in logging and stdout prints.
--plain-http Allow OCI registry connections over HTTP instead of HTTPS. This flag should only be used if you have a specific reason and accept the reduced security posture.
--tmpdir string Specify the temporary directory to use for intermediate files

SEE ALSO