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 U2F fallback from client tools #43133

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Remove U2F fallback from client tools #43133

merged 1 commit into from
Jun 17, 2024

Conversation

rosstimothy
Copy link
Contributor

@rosstimothy rosstimothy commented Jun 17, 2024

U2F support was deprecated in favor of WebAuthn many releases ago, however, not all references were removed when working on #10375. This eliminates the last remaining inclusions of github.com/flynn/u2f and github.com/flynn/hid from lib/client and drops all support of falling back to U2F if client tools are not built with FIDO2 enabled.

In practice, this should only cause problems for people building tsh/tctl locally without setting the correct build flags. All release artifacts published should already be built with the appropriate flags and not cause any issues as a result.

Updates #43112.

@rosstimothy rosstimothy force-pushed the tross/remove_u2f branch 2 times, most recently from 9451a73 to 4c96631 Compare June 17, 2024 20:22
@rosstimothy rosstimothy marked this pull request as ready for review June 17, 2024 20:56
@rosstimothy rosstimothy requested a review from codingllama June 17, 2024 20:56
@github-actions github-actions bot requested a review from rudream June 17, 2024 20:57
@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 17, 2024
@gravitational gravitational deleted a comment from github-actions bot Jun 17, 2024
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.

Thanks for the cleanup!

lib/auth/webauthncli/api.go Show resolved Hide resolved
@codingllama codingllama changed the title Remove U2F support from client tools Remove U2F fallback from client tools Jun 17, 2024
@codingllama
Copy link
Contributor

Re-phrased title, as technically U2F support still exists, it's the U2F "native" fallback code that we are deleting.

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from rudream June 17, 2024 21:32
U2F support was deprecated in favor of WebAuthn many releases ago, however,
not all references were removed when working on
#10375. This eliminates
the last remaining inclusions of github.com/flynn/u2f and
github.com/flynn/hid from lib/client and drops all support of
falling back to U2F if client tools are not built with FIDO2
enabled.

In practice, this should only cause problems for people building
tsh/tctl locally without setting the correct build flags. All
release artifacts published should already be built with the
appropriate flags and not cause any issues as a result.

Updates #43112.
@rosstimothy rosstimothy added this pull request to the merge queue Jun 17, 2024
Merged via the queue into master with commit c82ff54 Jun 17, 2024
40 checks passed
@rosstimothy rosstimothy deleted the tross/remove_u2f branch June 17, 2024 22:49
@public-teleport-github-review-bot

@rosstimothy See the table below for backport results.

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

@ravicious
Copy link
Member

This makes it so that tsh needs to be build with FIDO2 for Webauthn to work on macOS, otherwise you get some variant of "hardware device MFA not supported by your platform, please register an OTP device".

rosstimothy added a commit that referenced this pull request Jun 18, 2024
#43133 removed the
fallback to U2F that this target was relying on to exercise code
that required 2FA. The build tags set in `test-go-flaky` now
include LIBFIDO2_TEST_TAG in a similar manner to other targets
that are passing in CI without issue (`lint-go`, `test-go-unit`).
github-merge-queue bot pushed a commit that referenced this pull request Jun 18, 2024
#43133 removed the
fallback to U2F that this target was relying on to exercise code
that required 2FA. The build tags set in `test-go-flaky` now
include LIBFIDO2_TEST_TAG in a similar manner to other targets
that are passing in CI without issue (`lint-go`, `test-go-unit`).
@codingllama
Copy link
Contributor

This makes it so that tsh needs to be build with FIDO2 for Webauthn to work on macOS, otherwise you get some variant of "hardware device MFA not supported by your platform, please register an OTP device".

This is intended, although in hindsight we should have communicated better. Tim and I are talking about ways to improve our developer experience around this.

rosstimothy added a commit that referenced this pull request Jun 20, 2024
U2F support was deprecated in favor of WebAuthn many releases ago, however,
not all references were removed when working on
#10375. This eliminates
the last remaining inclusions of github.com/flynn/u2f and
github.com/flynn/hid from lib/client and drops all support of
falling back to U2F if client tools are not built with FIDO2
enabled.

In practice, this should only cause problems for people building
tsh/tctl locally without setting the correct build flags. All
release artifacts published should already be built with the
appropriate flags and not cause any issues as a result.

Updates #43112.
rosstimothy added a commit that referenced this pull request Jun 20, 2024
U2F support was deprecated in favor of WebAuthn many releases ago, however,
not all references were removed when working on
#10375. This eliminates
the last remaining inclusions of github.com/flynn/u2f and
github.com/flynn/hid from lib/client and drops all support of
falling back to U2F if client tools are not built with FIDO2
enabled.

In practice, this should only cause problems for people building
tsh/tctl locally without setting the correct build flags. All
release artifacts published should already be built with the
appropriate flags and not cause any issues as a result.

Updates #43112.
rosstimothy added a commit that referenced this pull request Jun 20, 2024
U2F support was deprecated in favor of WebAuthn many releases ago, however,
not all references were removed when working on
#10375. This eliminates
the last remaining inclusions of github.com/flynn/u2f and
github.com/flynn/hid from lib/client and drops all support of
falling back to U2F if client tools are not built with FIDO2
enabled.

In practice, this should only cause problems for people building
tsh/tctl locally without setting the correct build flags. All
release artifacts published should already be built with the
appropriate flags and not cause any issues as a result.

Updates #43112.
github-merge-queue bot pushed a commit that referenced this pull request Jun 24, 2024
U2F support was deprecated in favor of WebAuthn many releases ago, however,
not all references were removed when working on
#10375. This eliminates
the last remaining inclusions of github.com/flynn/u2f and
github.com/flynn/hid from lib/client and drops all support of
falling back to U2F if client tools are not built with FIDO2
enabled.

In practice, this should only cause problems for people building
tsh/tctl locally without setting the correct build flags. All
release artifacts published should already be built with the
appropriate flags and not cause any issues as a result.

Updates #43112.
github-merge-queue bot pushed a commit that referenced this pull request Jun 24, 2024
U2F support was deprecated in favor of WebAuthn many releases ago, however,
not all references were removed when working on
#10375. This eliminates
the last remaining inclusions of github.com/flynn/u2f and
github.com/flynn/hid from lib/client and drops all support of
falling back to U2F if client tools are not built with FIDO2
enabled.

In practice, this should only cause problems for people building
tsh/tctl locally without setting the correct build flags. All
release artifacts published should already be built with the
appropriate flags and not cause any issues as a result.

Updates #43112.
github-merge-queue bot pushed a commit that referenced this pull request Jun 24, 2024
U2F support was deprecated in favor of WebAuthn many releases ago, however,
not all references were removed when working on
#10375. This eliminates
the last remaining inclusions of github.com/flynn/u2f and
github.com/flynn/hid from lib/client and drops all support of
falling back to U2F if client tools are not built with FIDO2
enabled.

In practice, this should only cause problems for people building
tsh/tctl locally without setting the correct build flags. All
release artifacts published should already be built with the
appropriate flags and not cause any issues as a result.

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

Successfully merging this pull request may close these issues.

4 participants