TKN-TASK-SIGN(1)
π NAME π
tkn-task-sign - Sign Tekton Task. Yup bestie, this is the TKN-TASK-SIGN(1) manual, and we're making it make sense π.
β¨ SYNOPSIS β¨
tkn task sign
π DESCRIPTION π
Okay so tkn task sign signs the Tekton Task with a user provided private key file or a KMS reference. Key files support ecdsa, ed25519, rsa β iconic π₯.
For KMS, here's the vibe check:
- GCP β this should have the structure of
gcpkms://projects/<project>/locations/<location>/keyRings/<keyring>/cryptoKeys/<key>wherelocation,keyring, andkeyare filled in appropriately. Rungcloud auth application-default loginto authenticate. - Vault β this should have the structure of
hashivault://<keyname>, where thekeynameis filled out appropriately. - AWS β this should have the structure of
awskms://[ENDPOINT]/[ID/ALIAS/ARN](endpoint optional). - Azure β this should have the structure of
azurekms://[VAULT_NAME][VAULT_URL]/[KEY_NAME].
π OPTIONS π
--allow-missing-template-keys[=true]β if it'strue, ignore any errors in templates when a field or map key is missing in the template. Only applies togolangandjsonpathoutput formats.-f,--file-name=""β file name of the signed task. Heads up: using the original file name will overwrite the file π.-h,--help[=false]β help for sign.-K,--key-file=""β Key file.-m,--kms-key=""β KMS key url.-o,--output=""β Output format. One of: (json,yaml,name,go-template,go-template-file,template,templatefile,jsonpath,jsonpath-as-json,jsonpath-file).--show-managed-fields[=false]β iftrue, keep themanagedFieldswhen printing objects in JSON or YAML format.--template=""β Template string or path to template file to use when-o=go-template,-o=go-template-file. The template format is golang templates [β¨http://golang.org/pkg/text/template/#pkg-overviewβ©].
π«Ά OPTIONS INHERITED FROM PARENT COMMANDS π«Ά
-c,--context=""β name of the kubeconfig context to use (default:kubectl config current-context).-k,--kubeconfig=""β kubectl config file (default:$HOME/.kube/config).-n,--namespace=""β namespace to use (default: from$KUBECONFIG).-C,--no-color[=false]β disable coloring (default:false).
π EXAMPLE π
Sign a Task task.yaml:
tkn task sign task.yaml -K=cosign.key -f=signed.yaml or using kms
tkn task sign task.yaml
-m=gcpkms://projects/PROJECTID/locations/LOCATION/keyRings/KEYRING/cryptoKeys/KEY/cryptoKeyVersions/VERSION
-f=signed.yaml
π¦ SEE ALSO π¦
This lil' page is Auto generated by spf13/cobra, and it's the TKN-TASK-SIGN(1) manual. The source doesn't include a date, so no invented date here β periodt π
β¨.
π¦ where this page comes from
- nixos 26.05: tektoncd-cli 0.45.0
- nixpkgs unstable: tektoncd-cli 0.46.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms