OC-ADM-VERIFY-IMAGE-SIGNATURE(1)

πŸ“¦
version 4.22.0 Β· 2 versions
, in nixpkgs unstable

πŸ’– oc adm verify-image-signature πŸ’–

okay bestie, welcome to the OC ADM(1) manual page for oc adm verify-image-signature β€” June 2016 edition, and we are verifying image identity/signatures with main character energy. let's go πŸ’…

🏷️ NAME 🏷️

oc adm verify-image-signature β€” verify the image identity contained in the image signature. that's the name, that's the job, iconic ✨

🧾 SYNOPSIS 🧾

oc adm verify-image-signature [OPTIONS]

[OPTIONS] means you bring the flags, bestie 🫢

πŸ” DESCRIPTION πŸ”

This command verifies the image signature of an image imported to internal registry using the local public GPG key. lowkey powerful πŸ’œ

So basically it checks whether the image identity contained in the image signature can be trusted. How? It uses the public GPG key to verify the signature itself, and it matches the expected identity you provide against the identity (pull spec) of the given image. By default, this command uses the public GPG keyring located in "$GNUPGHOME/.gnupg/pubring.gpg" πŸŽ€

By default, this command will not save the result of the verification back to the image object; to do so the user must specify the "--save" flag. Note that to modify the image signature verification status, the user must have permissions to edit an image object (usually an "image-auditor" role). permissions check, always πŸ’…

⚠️ careful, bestie: using the "--save" flag on an already verified image together with an invalid GPG key or invalid expected identity will cause the saved verification status to be removed and the image will become "unverified". that's the danger zone 😭

If this command is outside the cluster, users must specify the "--registry-url" parameter with the public URL of image registry. no cap, you need the URL 🌈

To remove all verifications, users can use the "--remove-all" flag. clean slate energy 🧚

πŸ’… OPTIONS πŸ’…

  • --expected-identity="" β€” an expected image docker reference to verify (required). required, bestie, do not skip it πŸ‘‘
  • --insecure=false β€” if set, use the insecure protocol for registry communication. default is false πŸ”₯
  • --public-key="pubring.gpg" β€” a path to a public GPG key to be used for verification. defaults to "pubring.gpg" πŸŽ€
  • --registry-url="" β€” the address to use when contacting the registry, instead of using the internal cluster address. this is useful if you can't resolve or reach the internal registry address. very outside-the-cluster of you 🌸
  • --remove-all=false β€” if set, all signature verifications will be removed from the given image. default is false πŸ¦‹
  • --save=false β€” if true, the result of the verification will be saved to an image object. default is false ⭐

🧬 OPTIONS INHERITED FROM PARENT COMMANDS 🧬

these come from the parent commands, no cap:

  • --as="" β€” username to impersonate for the operation. user could be a regular user or a service account in a namespace. 🫢
  • --as-group=[] β€” group to impersonate for the operation; this flag can be repeated to specify multiple groups. πŸŽ€
  • --as-uid="" β€” UID to impersonate for the operation. πŸ’œ
  • --as-user-extra=[] β€” user extras to impersonate for the operation; this flag can be repeated to specify multiple values for the same key. 🌸
  • --cache-dir="/homeless-shelter/.kube/cache" β€” default cache directory. keep it exact, bestie πŸ’…
  • --certificate-authority="" β€” path to a cert file for the certificate authority. πŸ”₯
  • --client-certificate="" β€” path to a client certificate file for TLS. πŸ¦‹
  • --client-key="" β€” path to a client key file for TLS. πŸ”‘
  • --cluster="" β€” the name of the kubeconfig cluster to use. 🌈
  • --context="" β€” the name of the kubeconfig context to use. 🧚
  • --disable-compression=false β€” if true, opt-out of response compression for all requests to the server. default is false ⭐
  • --insecure-skip-tls-verify=false β€” if true, the server's certificate will not be checked for validity. this will make your HTTPS connections insecure ⚠️ default is false
  • --kubeconfig="" β€” path to the kubeconfig file to use for CLI requests. πŸŽ€
  • --kuberc="" β€” path to the kuberc file to use for preferences. this can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off. πŸ‘‘
  • --match-server-version=false β€” require server version to match client version. default is false 🫢
  • -n, --namespace="" β€” if present, the namespace scope for this CLI request. πŸ’œ
  • --profile="none" β€” name of profile to capture. one of (none|cpu|heap|goroutine|threadcreate|block|mutex). default is "none" πŸ”₯
  • --profile-output="profile.pprof" β€” name of the file to write the profile to. default is "profile.pprof" 🌸
  • --request-timeout="0" β€” the length of time to wait before giving up on a single server request. non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). a value of zero means don't timeout requests. default is "0" ⭐
  • -s, --server="" β€” the address and port of the Kubernetes API server. 🌈
  • --tls-server-name="" β€” server name to use for server certificate validation. if it is not provided, the hostname used to contact the server is used. 🧚
  • --token="" β€” bearer token for authentication to the API server. πŸ”‘
  • --user="" β€” the name of the kubeconfig user to use. πŸ’…
  • --warnings-as-errors=false β€” treat warnings received from the server as errors and exit with a non-zero exit code. default is false 😭

πŸ“Έ EXAMPLE πŸ“Έ

okay these examples are exact, bestie β€” copy them character for character:

                # Verify the image signature and identity using the local GPG keychain
                oc adm verify-image-signature sha256:c841e9b64e4579bd56c794bdd7c36e1c257110fd2404bebbb8b613e4935228c4 \
                --expected-identity=registry.local:5000/foo/bar:v1

                # Verify the image signature and identity using the local GPG keychain and save the status
                oc adm verify-image-signature sha256:c841e9b64e4579bd56c794bdd7c36e1c257110fd2404bebbb8b613e4935228c4 \
                --expected-identity=registry.local:5000/foo/bar:v1 --save

                # Verify the image signature and identity via exposed registry route
                oc adm verify-image-signature sha256:c841e9b64e4579bd56c794bdd7c36e1c257110fd2404bebbb8b613e4935228c4 \
                --expected-identity=registry.local:5000/foo/bar:v1 \
                --registry-url=docker-registry.foo.com

                # Remove all signature verifications from the image
                oc adm verify-image-signature sha256:c841e9b64e4579bd56c794bdd7c36e1c257110fd2404bebbb8b613e4935228c4 --remove-all

πŸ‘€ SEE ALSO πŸ‘€

oc-adm(1), β€” go see the parent page, bestie, iykyk 🫢

πŸ•°οΈ HISTORY πŸ•°οΈ

June 2016, Ported from the Kubernetes man-doc generator β€” vintage, but make it fresh ✨


okay that's the whole page! cute sign-off time: the footer says source/version Openshift, manual collection Openshift CLI User Manuals, and date June 2016. mwah πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from