strimzi-kafka-oauth
strimzi-kafka-oauth copied to clipboard
OAuth librabry don't remove newline char at the end of secret
After a discussion with @mstruk we think the library should truncate \n
at the end of secret. We hit this during refactor of Strimzi oauth tests.
For example:
printf "%s" "team-a-client-secret" | base64
echo "team-a-client-secret" | base64
return different values because \n
at the end of encoded data.
This issue is still present and I hit it today. Is it possible to give it a priority?
Unless there is a clear standard which says that whitespaces cannot be part of the secret I do not think we should remove them.