Skip to content
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

Merged
merged 1 commit into from
Mar 18, 2020
Merged

Update tctl CLI output messages #3442

merged 1 commit into from
Mar 18, 2020

Conversation

kimlisa
Copy link
Contributor

@kimlisa kimlisa commented Mar 13, 2020

Part of issue #3363

  • tctl users add and tctl users reset outputs different messages
  • [Teleport DB users only] prefix added to users reset
  • tctl tokens ls lists password token as type Password instead of User Signup

OSS output

oss-v2

Enterprise output

e

@@ -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",
Copy link
Contributor

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?

Copy link
Contributor

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]"
Copy link
Contributor

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".

Copy link
Contributor Author

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?

Copy link
Contributor

@fspmarshall fspmarshall left a 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!

@benarent
Copy link
Contributor

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.

@kimlisa
Copy link
Contributor Author

kimlisa commented Mar 18, 2020

retest this please

1 similar comment
@alex-kovoy
Copy link
Contributor

retest this please

@alex-kovoy alex-kovoy merged commit 83642fa into hornet Mar 18, 2020
@kimlisa kimlisa deleted the lisa/update-tctl-cli branch March 27, 2020 18:13
alex-kovoy pushed a commit that referenced this pull request Apr 14, 2020
alex-kovoy pushed a commit that referenced this pull request Apr 15, 2020
alex-kovoy added a commit that referenced this pull request Apr 15, 2020
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants