Skip to content

[tctl] Seperate config parsing from client init#57265

Closed
okraport wants to merge 2 commits intomasterfrom
okraport/tctl-top-teleport-config
Closed

[tctl] Seperate config parsing from client init#57265
okraport wants to merge 2 commits intomasterfrom
okraport/tctl-top-teleport-config

Conversation

@okraport
Copy link
Copy Markdown
Contributor

This change moves the tctl configuration parsing
to be done before running the selected command and not be part of client init. This means commands
that do not need a client can access the config
such as tctl top when using socket mode.

@okraport okraport added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v16 backport/branch/v17 backport/branch/v18 labels Jul 29, 2025
This change moves the tctl configuration parsing
to be done before running the selected command and
not be part of client init. This means commands
that do not need a client can access the config
such as `tctl top` when using socket mode.

Co-authored-by: Tim Ross <tim.ross@goteleport.com>
@okraport okraport force-pushed the okraport/tctl-top-teleport-config branch from 115e8e3 to d7235a4 Compare July 30, 2025 08:07
@okraport
Copy link
Copy Markdown
Contributor Author

Tested locally with

 cat /etc/teleport.yaml 
version: v3
teleport:
  nodename: Mac.oasis.lan
  data_dir: /var/lib/teleport-alt

And tctl top now picks up the configuration correctly on unix socket client.

@okraport okraport force-pushed the okraport/tctl-top-teleport-config branch 2 times, most recently from 59bfad2 to 8be697d Compare July 30, 2025 12:11
@okraport
Copy link
Copy Markdown
Contributor Author

Closing in favour of #57312

@okraport okraport closed this Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/branch/v17 backport/branch/v18 no-changelog Indicates that a PR does not require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant