Open classabbyamp opened 1 year ago
Thank you for submitting this request! Please note that you can also use echo -n
in order to echo without a newline.
For others who are interested in this, please stick a 👍 on this issue. We’re currently developing an internal process to review and prioritize requests.
as I mentioned in the original report, echo
was just for demonstration purposes, I'm not actually passing my password in plaintext with echo
...
This issue would be a delicate balance between not introducing unexpected data transformations in places that could break things for people, and making the CLI useful for ad-hoc use.
Unfortunately there probably is no single choice of behaviour that will make everyone happy here. It's possible that leaving things as is might be the least worst compromise.
Describe the bug
when passing a password from stdin, it may contain an extra trailing newline. this causes the error
ldap operation failed: failed to bind as user
, which is very misleading. However, the real issue is that it accepted the newline as part of the password.To Reproduce
Steps to reproduce the behavior:
this is made clear by using
-output-curl-string
:Expected behavior
login from stdin works as intended:
Environment:
vault status
): 1.12.1vault version
): 1.13.0Vault server configuration file(s):
I am just a user, I did not set up this vault server.