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

tctl duplicate output #2107

Closed
celi28 opened this issue Jul 23, 2018 · 2 comments · Fixed by #2112
Closed

tctl duplicate output #2107

celi28 opened this issue Jul 23, 2018 · 2 comments · Fixed by #2112
Assignees

Comments

@celi28
Copy link

celi28 commented Jul 23, 2018

What happened:
When creating an user after the web password registration, user appear between 3 or 5 times on tctl users ls output. Same with tctl get users 
What you expected to happen:
Only have one record/line output per user registered
How to reproduce it (as minimally and precisely as possible):

  • Launch teleport
  • Create user with tctl users add jhmartin root
  • Set the password
  • Run tctl users ls.

Environment:

  • Teleport version (use teleport version): Teleport v2.7.0-alpha.5 git:v2.7.0-alpha.5-64-g031168bb
  • Tsh version (use tsh version): Teleport v2.7.0-alpha.5 git:v2.7.0-alpha.5-64-g031168bb
  • OS (e.g. from /etc/os-release): Debian GNU/Linux 9 (stretch)

Same with 2.7 compiled branch.

Relevant Debug Logs If Applicable

INFO [AUTH]      [AUTH API] created the signup token for "User(name=test, roles=[], identities=[])" auth/new_web_user.go:114
DEBU             [web] GET zip:/app/vendor.74f7a92a8aff0163c57f9be83b093efc.css web/static.go:195
DEBU             [web] zip::Close(vendor.74f7a92a8aff0163c57f9be83b093efc.css) web/static.go:188
INFO [AUTH]      [AUTH] Created user: User(name=test, roles=[admin], identities=[]) auth/new_web_user.go:346
DEBU [KEYGEN]    generated user key for [test] with expiry on (1532383324) 2018-07-23 22:02:04.537950661 +0000 UTC m=+43759.044903475 native/native.go:231

>> tctl users ls 
User   Allowed logins 
------ -------------- 
cecile root,cecile    
cecile root,cecile    
cecile root,cecile    
test   test           
test   test           
test   test           
test   test           
test   test   

>> tctl get users
- kind: user
  metadata:
    name: cecile
  spec:
    created_by:
      time: 0001-01-01T00:00:00Z
      user:
        name: ""
    expires: 0001-01-01T00:00:00Z
    roles:
    - admin
    status:
      is_locked: false
      lock_expires: 0001-01-01T00:00:00Z
      locked_time: 0001-01-01T00:00:00Z
    traits:
      logins:
      - root
      - cecile
  version: v2
- kind: user
  metadata:
    name: cecile
  spec:
    created_by:
      time: 0001-01-01T00:00:00Z
      user:
        name: ""
    expires: 0001-01-01T00:00:00Z
    roles:
    - admin
    status:
      is_locked: false
      lock_expires: 0001-01-01T00:00:00Z
      locked_time: 0001-01-01T00:00:00Z
    traits:
      logins:
      - root
      - cecile
  version: v2
- kind: user
  metadata:
    name: cecile
  spec:
    created_by:
      time: 0001-01-01T00:00:00Z
      user:
        name: ""
    expires: 0001-01-01T00:00:00Z
    roles:
    - admin
    status:
      is_locked: false
      lock_expires: 0001-01-01T00:00:00Z
      locked_time: 0001-01-01T00:00:00Z
    traits:
      logins:
      - root
      - cecile
  version: v2
- kind: user
  metadata:
    name: test
  spec:
    created_by:
      time: 0001-01-01T00:00:00Z
      user:
        name: ""
    expires: 0001-01-01T00:00:00Z
    roles:
    - admin
    status:
      is_locked: false
      lock_expires: 0001-01-01T00:00:00Z
      locked_time: 0001-01-01T00:00:00Z
    traits:
      logins:
      - test
  version: v2
- kind: user
  metadata:
    name: test
  spec:
    created_by:
      time: 0001-01-01T00:00:00Z
      user:
        name: ""
    expires: 0001-01-01T00:00:00Z
    roles:
    - admin
    status:
      is_locked: false
      lock_expires: 0001-01-01T00:00:00Z
      locked_time: 0001-01-01T00:00:00Z
    traits:
      logins:
      - test
  version: v2
- kind: user
  metadata:
    name: test
  spec:
    created_by:
      time: 0001-01-01T00:00:00Z
      user:
        name: ""
    expires: 0001-01-01T00:00:00Z
    roles:
    - admin
    status:
      is_locked: false
      lock_expires: 0001-01-01T00:00:00Z
      locked_time: 0001-01-01T00:00:00Z
    traits:
      logins:
      - test
  version: v2
- kind: user
  metadata:
    name: test
  spec:
    created_by:
      time: 0001-01-01T00:00:00Z
      user:
        name: ""
    expires: 0001-01-01T00:00:00Z
    roles:
    - admin
    status:
      is_locked: false
      lock_expires: 0001-01-01T00:00:00Z
      locked_time: 0001-01-01T00:00:00Z
    traits:
      logins:
      - test
  version: v2

@dkrutsko
Copy link

@russjones It looks like this issue has returned for me in version 3.1.1.

@bharadwajrembar
Copy link

Can confirm this as well

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 a pull request may close this issue.

5 participants