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

Remove lib/devicetrust from lib/client #43186

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Conversation

rosstimothy
Copy link
Contributor

The native device trust libraries included in lib/devicetrust prevent building client tools that don't use device trust from building with cgo disabled. This moves the default device auth ceremony and device enrollment from lib/client into a location specific to tsh since it's the only tool that requires them.

Updates #43112.

@rosstimothy rosstimothy added backport/branch/v14 no-changelog Indicates that a PR does not require a changelog entry backport/branch/v15 backport/branch/v16 labels Jun 18, 2024
@rosstimothy rosstimothy force-pushed the tross/refactor_dt_overrides branch 2 times, most recently from edde3a8 to 3b50e37 Compare June 18, 2024 14:53
@rosstimothy rosstimothy marked this pull request as ready for review June 18, 2024 15:10
@rosstimothy rosstimothy requested a review from codingllama June 18, 2024 15:10
@github-actions github-actions bot requested review from gzdunek and smallinsky June 18, 2024 15:10
@github-actions github-actions bot added size/sm tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Jun 18, 2024
@rosstimothy rosstimothy requested a review from codingllama June 18, 2024 17:54
Copy link
Contributor

@codingllama codingllama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Thanks for all the testing you did to make sure this is safe!

@rosstimothy
Copy link
Contributor Author

@gzdunek would appreciate if you could double check that I've covered all places that Connect might be impacted by this change.

Copy link
Contributor

@gzdunek gzdunek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Connect changes LGTM.

However, I didn't test it, if I'm correct, it requires a regular tag build (if you have one, I can the test device trust in Connect).

lib/client/api.go Outdated Show resolved Hide resolved
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from smallinsky June 19, 2024 09:19
@codingllama
Copy link
Contributor

However, I didn't test it, if I'm correct, it requires a regular tag build (if you have one, I can the test device trust in Connect).

@gzdunek you can get a local build going yourself, or one of us can send you a pre-built binary. I rarely do tag builds for dev only purposes.

@gzdunek
Copy link
Contributor

gzdunek commented Jun 19, 2024

Thanks @codingllama. I tested device trust in Connect, works fine.

The native device trust libraries included in lib/devicetrust
prevent building client tools that don't use device trust from
building with cgo disabled. This moves the default device auth
ceremony and device enrollment from lib/client into a location
specific to tsh since it's the only tool that requires them.

Updates #43112.
@rosstimothy rosstimothy force-pushed the tross/refactor_dt_overrides branch from 46fe90b to 8a8db1c Compare June 20, 2024 12:44
@rosstimothy rosstimothy enabled auto-merge June 20, 2024 12:45
@rosstimothy rosstimothy added this pull request to the merge queue Jun 20, 2024
Merged via the queue into master with commit 359ad77 Jun 20, 2024
37 checks passed
@rosstimothy rosstimothy deleted the tross/refactor_dt_overrides branch June 20, 2024 13:21
@public-teleport-github-review-bot

@rosstimothy See the table below for backport results.

Branch Result
branch/v14 Failed
branch/v15 Create PR
branch/v16 Create PR

rosstimothy added a commit that referenced this pull request Jun 20, 2024
The native device trust libraries included in lib/devicetrust
prevent building client tools that don't use device trust from
building with cgo disabled. This moves the default device auth
ceremony and device enrollment from lib/client into a location
specific to tsh since it's the only tool that requires them.

Updates #43112.
github-merge-queue bot pushed a commit that referenced this pull request Jun 20, 2024
The native device trust libraries included in lib/devicetrust
prevent building client tools that don't use device trust from
building with cgo disabled. This moves the default device auth
ceremony and device enrollment from lib/client into a location
specific to tsh since it's the only tool that requires them.

Updates #43112.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v14 backport/branch/v15 backport/branch/v16 no-changelog Indicates that a PR does not require a changelog entry size/sm 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.

3 participants