-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tctl CLI output messages #3442
Conversation
@@ -135,7 +137,7 @@ func (u *UserCommand) ResetPassword(client auth.ClientI) error { | |||
func (u *UserCommand) PrintResetPasswordToken(token services.ResetPasswordToken, format string) error { | |||
err := u.printResetPasswordToken(token, | |||
format, | |||
"Reset password token has been created and is valid for %v. Share this URL with the user to complete password reset process:\n%v\n\n", | |||
"User %v has been reset. Share this URL with the user to complete password reset, link is valid for %v:\n%v\n\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@benarent are you sure you want this message as opposed to explicitly mentioning reset password token?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy with the solution, it focuses on the UX of the user being reset, with the outcome being a that they need to complete a reset password, vs being the other way around.
@@ -57,10 +57,12 @@ type UserCommand struct { | |||
|
|||
// Initialize allows UserCommand to plug itself into the CLI parser | |||
func (u *UserCommand) Initialize(app *kingpin.Application, config *service.Config) { | |||
const helpPrefix string = "[Teleport DB users only]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are these users called in docs? I usually refer to them as "local users".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@benarent what do you think of Local users only
vs Teleport DB users only
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned above, "DB users" should be "local users". Other than that, looks good!
I'm open to new names, but don't want to confuse DB user, with 'local user/UNIX logins' . Since we are already using DB Users, I would say we keep it for now. |
retest this please |
1 similar comment
retest this please |
* Add monorepo * Add reset/passwd capability for local users (#3287) * Add UserTokens to allow password resets * Pass context down through ChangePasswordWithToken * Rename UserToken to ResetPasswordToken * Add auto formatting for proto files * Add common Marshaller interfaces to reset password token * Allow enterprise "tctl" reuse OSS user methods (#3344) * Pass localAuthEnabled flag to UI (#3412) * Added LocalAuthEnabled prop to WebConfigAuthSetting struct in webconfig.go * Added LocalAuthEnabled state as part of webCfg in apiserver.go * update e-refs * Fix a regression bug after merge * Update tctl CLI output msgs (#3442) * Use local user client when resolving user roles * Update webapps ref * Add and retrieve fields from Cluster struct (#3476) * Set Teleport versions for node, auth, proxy init heartbeat * Add and retrieve fields NodeCount, PublicURL, AuthVersion from Clusters * Remove debug logging to avoid log pollution when getting public_addr of proxy * Create helper func GuessProxyHost to get the public_addr of a proxy host * Refactor newResetPasswordToken to use GuessProxyHost and remove publicUrl func * Remove webapps submodule * Add webassets submodule * Replace webapps sub-module reference with webassets * Update webassets path in Makefile * Update webassets 1b11b26 Simplify and clean up Makefile (#62) gravitational/webapps@1b11b26 * Retrieve cluster details for user context (#3515) * Let GuessProxyHost also return proxy's version * Unit test GuessProxyHostAndVersion & GetClusterDetails * Update webassets 4dfef4e Fix build pipeline (#66) gravitational/webapps@4dfef4e * Update e-ref * Update webassets 0647568 Fix OSS redirects gravitational/webapps@0647568 * update e-ref * Update webassets e0f4189 Address security audit warnings Updates "minimist" package which is used by 7y old "optimist". gravitational/webapps@e0f4189 * Add new attr to Session struct (#3574) * Add fields ServerHostname and ServerAddr * Set these fields on newSession * Ensure webassets submodule during build * Update e-ref * Ensure webassets before running unit-tests * Update E-ref Co-authored-by: Lisa Kim <lisa@gravitational.com> Co-authored-by: Pierre Beaucamp <pierre@gravitational.com> Co-authored-by: Jenkins <jenkins@gravitational.io>
Part of issue #3363
tctl users add
andtctl users reset
outputs different messages[Teleport DB users only]
prefix added tousers reset
tctl tokens ls
lists password token as typePassword
instead ofUser Signup
OSS output
Enterprise output