Closed Despire closed 2 weeks ago
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.
We should not trim whitespace from user-supplied keys and treat the input as is.
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.