vmware-archive / gangway

An application that can be used to easily enable authentication flows via OIDC for a kubernetes cluster.
Apache License 2.0
410 stars 112 forks source link

Sanitize data from OIDC Provider #171

Open CyrilBurd opened 4 years ago

CyrilBurd commented 4 years ago

What happened: After successful authorization, the instructions given to user fail, because they have spaces in usernames from the OIDC Provider. There are also spaces in cluster name and .pem filename.

What you expected to happen: Authorized user should be able to copy/paste and execute the instructions.

How to reproduce it Set a value with white-spaces for clusterName and KubeCfgUser

Proposed fixes: Sanitize the input values.

cc: @chaosaffe