2

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

Pranav Bhatia
  • 440
  • 2
  • 6
  • 10

1 Answers1

2

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

MrSimpleMind
  • 7,890
  • 3
  • 40
  • 45
  • 1
    Thanks will have a read but for this use-case I managed to do this by using set +x and -x before and after the shell command. – Pranav Bhatia Oct 13 '20 at 15:04