Tekton pipelines - secret displayed on dashboard

713 views Asked by At

Just wanted to know if there is a way I can stop showing the secret I created on tekton dashboard. For example -

In the tekton task running this following command -

enter image description here

The $APIKEY is being pulled from a secret resource created.

And in the dashboard, I am seeing the API key is displayed when running the above command -

enter image description here

1

There are 1 answers

1
MrSimpleMind On

Parameters are always, embedded as plaintext and will be, passed as plaintext. You will see the values not only in dashboard but even if you are using the tkn cli.

Either you use a file or a env var, see examples in

file https://github.com/tektoncd/catalog/blob/master/task/aws-cli/0.1/aws-cli.yaml

env https://github.com/tektoncd/catalog/blob/master/task/sendmail/0.1/sendmail.yaml