When creating a secret, it should be a requirement that the secret either needs an access token or a password associated with it.
I can create a secret with just a name and a namespace, and without selecting to have a password or access token. The secret is created as an access token secret where the access token is an empty string.
Kubernetes Platform:
Tekton Pipelines version:
Tekton Triggers version:
Tekton Dashboard version:
The 'Password' type radio button should probably be selected by default. That would prevent this from occurring as there's no way to unselect a radio button other than choosing another from the same group (i.e. access token).
Alternatively if we want to force the user to explicitly choose the type we could add validation on the create to ensure one option or other is chosen.
/assign
/close
@Megan-Wright: Closing this issue.
In response to this:
/close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
Most helpful comment
The 'Password' type radio button should probably be selected by default. That would prevent this from occurring as there's no way to unselect a radio button other than choosing another from the same group (i.e. access token).
Alternatively if we want to force the user to explicitly choose the type we could add validation on the create to ensure one option or other is chosen.