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

Add --current-device capabilities to tsh and tctl #30636

Merged
merged 9 commits into from
Aug 18, 2023

Conversation

codingllama
Copy link
Contributor

Add the ability to act on the current device more easily.

  1. tsh device asset-tag is a debug command we planned for, but never executed. It's a simpler version of tsh device collect.

  2. tsh device enroll --current-device attempts to enroll the current device. It's focused on device admins, as it requires various permissions end-users typically won't have.

  3. tctl has a --current-device flag added to various commands. It substitutes the need to provide --asset-tag and --os.

The changes above are all focused on "day 1" experience, thus are catered to powerful Teleport users - powerful as in with various administrative permissions.

@codingllama codingllama requested a review from zmb3 August 17, 2023 19:39
@codingllama
Copy link
Contributor Author

FYI @sshahcodes.

@github-actions github-actions bot added size/md tctl tctl - Teleport admin tool tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Aug 17, 2023
tool/tctl/common/devices.go Outdated Show resolved Hide resolved
tool/tsh/common/device.go Show resolved Hide resolved
tool/tsh/common/device.go Show resolved Hide resolved
tool/tsh/common/device.go Show resolved Hide resolved
lib/devicetrust/enroll/enroll.go Show resolved Hide resolved
lib/devicetrust/enroll/enroll.go Outdated Show resolved Hide resolved
tool/tsh/common/device.go Show resolved Hide resolved
tool/tsh/common/device.go Show resolved Hide resolved
@codingllama
Copy link
Contributor Author

PTAL, comments addressed.

@codingllama codingllama added this pull request to the merge queue Aug 18, 2023
Merged via the queue into master with commit 5c8f91a Aug 18, 2023
21 checks passed
@codingllama codingllama deleted the codingllama/dt-currentdevice branch August 18, 2023 15:37
@public-teleport-github-review-bot

@codingllama See the table below for backport results.

Branch Result
branch/v13 Failed

codingllama added a commit that referenced this pull request Aug 18, 2023
* Add the `tsh device asset-tag` hidden command

* Implement registration in the fake device service

* Add `--current-device` to `tsh device enroll`
github-merge-queue bot pushed a commit that referenced this pull request Aug 21, 2023
* Add the `tsh device asset-tag` hidden command

* Implement registration in the fake device service

* Add `--current-device` to `tsh device enroll`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v13 size/md tctl tctl - Teleport admin tool tsh tsh - Teleport's command line tool for logging into nodes running Teleport.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants