#2559 [BUG] flyteadmin should not interfere with the format of client secrets
Issue created by
eapolinario
Describe the bug
Currently flyteadmin
removes newlines from user-provided secrets.
Expected behavior
flyteadmin should load the contents of the secret file as it's provided, as having this extra cleaning step introduces potential divergences in how client secrets are used in other parts of the system, including client SDKs.
At the very least we should detect the presence of trailing newlines and warn the user that having such characters there might indicate that this is not what they wanted in the first place.
Additional context to reproduce
Any client secret that contains a trailing newline triggers this behavior.
Screenshots
No response
Are you sure this issue hasn't been raised already?
☑︎ Yes
Have you read the Code of Conduct?
☑︎ Yes
flyteorg/flyte