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 [v16] fails if device mode "required" is set in the config file #44089

Closed
codingllama opened this issue Jul 11, 2024 · 1 comment
Closed

Comments

@codingllama
Copy link
Contributor

codingllama commented Jul 11, 2024

Expected behavior:

tctl works in all scenarios.

Current behavior:

tctl using the user's identity works:

$ tctl users ls
> User                          Roles                                
> ----------------------------- ------------------------------------ 
> llama                         access,editor

tctl using a config file fails:

$ TELEPORT_CONFIG_FILE=/path/to/teleport.yaml tctl users ls
> ERROR: device trust mode "required" requires Teleport Enterprise

tctl Enterprise v15, with the same invocation as above, works:

$ tctl15 version
> Teleport Enterprise v15.4.9 git:v15.4.9-0-gaea5781 go1.22.5

$ TELEPORT_CONFIG_FILE=/path/to/teleport.yaml tctl15 users ls
> User                          Roles                                
> ----------------------------- ------------------------------------ 
> alpaca                        access,editor,require-trusted-device 

A certain conjunction of factors has to be present for the failure to happen:

  1. tctl is build with "OSS modules" (always true for v16+)
  2. A teleport config file is used (not user identity)
  3. The teleport config file is Enterprise and has device_trust.mode=required set
version: v1
teleport:
  # not relevant

auth_service:
  # not relevant, except for
  enabled: "yes"
  authentication:
    device_trust:
      mode: required

This hits the following lines, in sequence:

which then make the invocation fail, as the binary modules don't match the configuration.

Bug details:

  • Teleport version: v16+
  • Recreation steps: see above
  • Debug logs: not necessary / see above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants