-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
boundary authenticate (type) can conflict with BOUNDARY_AUTH_METHOD_ID #1833
Comments
The CLI help text is outdated -- I'll get it fixed up. Thanks for the pointer! |
Closing this via #1835. A couple of notes:
|
Would you not be able to add another environment variable? Remember that Boundary is and probably will remain overly complex for the vast majority of people whom we want to use it. Allowing us to pre-provision their environment so that stuff "just works" is going to be very important. "They are going to be responsible for typing long complex command lines" is not workable.
We do give them instructions. But the problem was that the help text was very directive on how to use, and made use of a value without mentioning that it was a variable. This requires a person to be trained in Boundary to read the help text and recognize that it is a value they must supply. To be honest your change in #1835 missed a significant part of this confusion as what the user sees isn't mapped to the example text: $ boundary authenticate
Usage: boundary authenticate [sub command] [options] [args] Your help text does tell them what sub commands are available, but never mentions auth-method. I'm also not convinced "sub-command" is the right text for someone to grasp the meaning. This seems to be conflating implementation with meaning, no? Would something like this not be more clear?
|
Describe the bug
The command
boundary authenticate
requires the user to provide a typeoidc
orpassword
.It also accepts setting the auth-method via
BOUNDARY_AUTH_METHOD_ID
... which makes the user selection unnecessary, and potentially wrong. If a user environment is set up correctly for OIDC auth but they type the wrong option here they get incorrect instructions.To Reproduce
Steps to reproduce the behavior:
BOUNDARY_AUTH_METHOD_ID
to an oidc methodboundary authenticate
by itselfboundary authenticate password
(because user doesn't recognize oidc)Expected behavior
BOUNDARY_AUTH_METHOD_ID
is setampw_1234567890
without any mention that this value cannot be used as-isThe text was updated successfully, but these errors were encountered: