berops / claudie

Cloud-agnostic managed Kubernetes
https://docs.claudie.io/
Apache License 2.0
600 stars 41 forks source link

Bug: Trimming White space from keys #1537

Closed Despire closed 2 weeks ago

Despire commented 2 weeks ago

Current Behaviour

We trim the leading and trailing whitespace from keys when generating them to be used for communicating with the nodes within the cluster https://github.com/berops/claudie/blob/424b86d0ccb844fa3949e6052ef0a7fb8e2f3751/internal/utils/key.go#L42 This can lead to ambiguous behavior for users and eventually lead to invalid keys being generated and the whole workflow errors.

Expected Behaviour

We should not trim whitespace from user-supplied keys and treat the input as is.