-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fix the new license flow #43
Conversation
8f382cf
to
a2274ea
Compare
b87a883
to
b14690c
Compare
de2196f
to
42efb5f
Compare
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 have nearly enough context to understand the business logic parts of this, fwiw.
src/core/license.rs
Outdated
return Err(Error::RdpError(RdpError::new( | ||
RdpErrorKind::InvalidData, | ||
"SEC: Invalid Licence packet", | ||
format!("SEC: Invalid Licence packet (flag={:x})", security_flag).as_str(), |
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.
format!("SEC: Invalid Licence packet (flag={:x})", security_flag).as_str(), | |
&format!("SEC: Invalid Licence packet (flag={security_flag:x})"), |
42efb5f
to
06379dd
Compare
Fixes several bugs with the new license flow and allows us to successfully obtain a license. Additionally, use a client-provided UUID to identify the client instead of using the Windows domain (which isn't unique per-agent).
bf453b1
to
d5e7bd2
Compare
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 be concerned with the API breakage? Or is this intended for our private fork?
I'm not concerned. Teleport's branch/v14 is the only consumer of this repo, and we always pin to a specific commit. |
3af3971
to
5da79d0
Compare
5da79d0
to
6c14d00
Compare
Fixes several bugs with the new license flow and allows us to successfully obtain a license. The next step will be to add hooks to save this license so that we can reuse it for the upgrade license flow on subsequent attempts.
Additionally, uses a client-provided UUID to identify itself to the RDP server for licensing purposes (we were previously using the Windows domain, which would cause all Teleport RDP clients to appear identical to the server).