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

[v12] Record and verify WebAuthn RPIDs #25289

Merged
merged 1 commit into from
Apr 28, 2023

Conversation

codingllama
Copy link
Contributor

Record and verify the credential RPID in WebauthnDevice, so we can detect and warn against accidental RPID changes.

RPID changes are not allowed by WebAuthn, so there's little Teleport can do to mitigate them.

Users that have only "invalid" WebAuthn devices will get "invalid credentials" errors on login. While a bit opaque, this is likely to lead to an user reset, which is the correct fix if only a few users are affected.

Backports #25238 to branch/v12.

@codingllama
Copy link
Contributor Author

codingllama commented Apr 27, 2023

The only conflict was on api/types/types.pb.go (solved via make grpc), everything else backported cleanly.

@zmb3 zmb3 added this pull request to the merge queue Apr 28, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 28, 2023
Record and verify the credential RPID in `WebauthnDevice`, so we can
detect and warn against accidental RPID changes.

RPID changes are not allowed by WebAuthn, so there's little Teleport can
do to mitigate them.

Users that have only "invalid" WebAuthn devices will get ["invalid
credentials"][1] errors on login. While a bit opaque, this is likely to
lead to an user reset, which is the correct fix if only a few users are
affected.

[1]: https://github.com/gravitational/teleport/blob/7a90a0ff9943e4f536736372dbdc90d324f143a2/lib/web/apiserver.go#L2180
@codingllama codingllama force-pushed the codingllama/backport/25238-v12 branch from 247f1fd to 7fe8b0a Compare April 28, 2023 15:03
@codingllama codingllama force-pushed the codingllama/backport/25238-v12 branch from 7fe8b0a to 5982def Compare April 28, 2023 15:06
@codingllama codingllama added this pull request to the merge queue Apr 28, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 28, 2023
@r0mant r0mant added this pull request to the merge queue Apr 28, 2023
Merged via the queue into branch/v12 with commit 95035b3 Apr 28, 2023
@r0mant r0mant deleted the codingllama/backport/25238-v12 branch April 28, 2023 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants