Skip to content

Remove the webauthn.User proto#39950

Merged
codingllama merged 3 commits intomasterfrom
codingllama/wan-user
Mar 28, 2024
Merged

Remove the webauthn.User proto#39950
codingllama merged 3 commits intomasterfrom
codingllama/wan-user

Conversation

@codingllama
Copy link
Copy Markdown
Contributor

@codingllama codingllama commented Mar 28, 2024

Make the User type storage-only, similarly to the removal of SessionData from webauthn.proto (#36666).

This is just a cleanup, no behavioral changes.

@codingllama codingllama added the no-changelog Indicates that a PR does not require a changelog entry label Mar 28, 2024
@github-actions github-actions Bot requested review from espadolini and greedy52 March 28, 2024 14:04
// Used mainly to correlated a WebAuthn user handle with a Teleport user.
type User struct {
// Teleport user ID.
TeleportUser string `protobuf:"bytes,1,opt,name=teleport_user,json=teleportUser,proto3" json:"teleport_user,omitempty"`
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's pretty confusing to figure out which json tag is used, but it's actually the snake_case one. Confirmed by marshaling a webauthn.User (before removing) and by looking at the sqlite key (before applying the change).

$ select * from kv where key like '/webauthn/users/%';
> /webauthn/users/N2I4Y2QzZDAtYTU2OS00NDMzLWE1MzktYjkxZTgwZWQ3ZTVm|1711633239496051000||{"teleport_user":"llama"}|c0224976-44d1-4c06-9f1a-eed41a5e9bbb
> /webauthn/users/ZjAxM2QxNDQtODQ1ZS00OGEzLTkyMGItMjE4NTU2MzhmMjVm|1711634315315319000||{"teleport_user":"alpaca"}|e9a1527b-e33f-4011-a14f-1e97ce6f8d6c

@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from espadolini March 28, 2024 15:56
@codingllama codingllama added this pull request to the merge queue Mar 28, 2024
Merged via the queue into master with commit 9a8b3cb Mar 28, 2024
@codingllama codingllama deleted the codingllama/wan-user branch March 28, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Indicates that a PR does not require a changelog entry size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants