TKN-TASK-SIGN(1)

πŸ“¦ version 0.46.2, in nixos 26.05, nixpkgs unstable

πŸŽ€ 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> where location, keyring, and key are filled in appropriately. Run gcloud auth application-default login to authenticate.
  • Vault β€” this should have the structure of hashivault://<keyname>, where the keyname is 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's true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output 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] β€” if true, keep the managedFields when 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