-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 windows desktop certs from client keyring #45939
remove windows desktop certs from client keyring #45939
Conversation
case p.RouteToWindowsDesktop.WindowsDesktop != "": | ||
req.Target = &proto.IsMFARequiredRequest_WindowsDesktop{WindowsDesktop: &p.RouteToWindowsDesktop} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a default case here? Should've we always had a default case here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we ever end up here or else it's a logic bug, but that's not obvious at all, so added a default case that returns an error
Co-authored-by: Zac Bergquist <[email protected]>
These aren't actually used in the client keyring anywhere, and clients never actually get desktop certs. These are the certs used for the desktop agent to dial to the windows desktop. They're only here for a
tctl auth sign
debug command just to pass the cert der through to the file writer. When we actually generate these desktop certs in lib/srv/desktop we don't use the client keyring at all.I also removed
client.ReissueParams.RouteToWindowsDesktop
which was never written to anywhere