Snippet which uses a TPM based service account key to acquire an identity_token used to sign-blob using cosin
Normally, if you want to use cosign and a TPM, you would use the built in pkcs11 capability as described here:
However, this snippet encodes the service account private key into a TPM and then making it issue an id_token directly using: