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

Machine ID does not detect token in file configuration #11099

Closed
russjones opened this issue Mar 13, 2022 · 0 comments · Fixed by #11169
Closed

Machine ID does not detect token in file configuration #11099

russjones opened this issue Mar 13, 2022 · 0 comments · Fixed by #11169
Assignees

Comments

@russjones
Copy link
Contributor

russjones commented Mar 13, 2022

Attempted to run Machine ID with the following file configuration.

auth_server: "auth.example.com:3025"
certificate_ttl: "5m"
renewal_interval: "1m"
onboarding:
  join_method: "token"
  token: "00000000000000000000000000000000"
  ca_pins:
  - "sha256:1111111111111111111111111111111111111111111111111111111111111111"
storage:
  directory: /home/ubuntu/run/bin-m/primary
destinations:
  - directory: /home/ubuntu/run/bin-m/secondary

Ran into the following error.

$ tbot start -d -c /home/ubuntu/run/tbot.yaml
WARN [TBOT]      CLI parameters are overriding certificate TTL configured in /home/ubuntu/run/tbot.yaml config/config.go:230
WARN [TBOT]      CLI parameters are overriding onboarding config from /home/ubuntu/run/tbot.yaml config/config.go:284
INFO [TBOT]      Created directory "/home/ubuntu/run/bin-m/primary" config/destination_directory.go:125
DEBU [TBOT]      Loaded 1 SSH CA certs and 1 TLS CA certs identity/identity.go:438

ERROR REPORT:
Original Error: *trace.BadParameterError unable to start: no token present
Stack Trace:
	/go/src/github.com/gravitational/teleport/tool/tbot/main.go:384 main.getIdentityFromToken
	/go/src/github.com/gravitational/teleport/tool/tbot/main.go:227 main.onStart
	/go/src/github.com/gravitational/teleport/tool/tbot/main.go:127 main.Run
	/go/src/github.com/gravitational/teleport/tool/tbot/main.go:61 main.main
	/opt/go/src/runtime/proc.go:255 runtime.main
	/opt/go/src/runtime/asm_amd64.s:1581 runtime.goexit
User Message: unable to start: no token present
timothyb89 added a commit that referenced this issue Mar 16, 2022
The default `join_method` value was improperly assumed to be "" which
caused any onboarding config from the config file to be overwritten.

This uses the correct default and allows bots to be fully onboarded
via config file.

Fixes #11099
timothyb89 added a commit that referenced this issue Mar 16, 2022
The default `join_method` value was improperly assumed to be "" which
caused any onboarding config from the config file to be overwritten.

This uses the correct default and allows bots to be fully onboarded
via config file.

Fixes #11099
timothyb89 added a commit that referenced this issue Mar 16, 2022
The default `join_method` value was improperly assumed to be "" which
caused any onboarding config from the config file to be overwritten.

This uses the correct default and allows bots to be fully onboarded
via config file.

Fixes #11099
zmb3 pushed a commit that referenced this issue Mar 16, 2022
…11206)

The default `join_method` value was improperly assumed to be "" which
caused any onboarding config from the config file to be overwritten.

This uses the correct default and allows bots to be fully onboarded
via config file.

Fixes #11099
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants