berops/claudie

Bug: Trimming White space from keys

Closed this issue · 0 comments

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

return os.WriteFile(keyFileName, bytes.TrimSpace([]byte(key)), 0600)

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.