-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 implementation of NegotiateAuthentication.Wrap for Kerberos on Windows #91152
Conversation
Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones Issue DetailsFixes PowerShell/PowerShell#20168 The bug existed in .NET 7 but it was not uncovered until #86948 exposed it through Unfortunately, we lack testing infrastructure for testing Kerberos on Windows. NegotiateStreamKerberosTest outer loop test is supposed to cover it but I am not sure if it's even executed in any reasonable fashion. Thanks to @jborean93 for manually testing it on the affected use case in PowerShell.
|
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.
LGTM, Thanks!
/azp run runtime libraries-coreclr-outerloop |
No pipelines are associated with this pull request. |
/azp list |
/azp run runtime-libraries-coreclr outerloop |
Azure Pipelines successfully started running 1 pipeline(s). |
CI failures are unrelated, we are good to merge. I will give @wfurt a chance to have a look at this before merging. Thanks, Filip! |
Thanks for review and running the tests! |
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.
LGTM
should we try to take it to 8.0 @filipnavara? The fact that it impacts Powershell is concerning IMHO @karelz |
Almost certainly yes. |
@filipnavara is there a summary explanation, why we the bug is now exposed more in 8.0? (that will help to decide if we should take it for 8.0) |
Sure. Here's the simple explanation, I can stretch it out if necessary... ;-) In .NET 7 the
|
/backport to release/8.0 |
Started backporting to release/8.0: https://github.com/dotnet/runtime/actions/runs/6021734007 |
Fixes PowerShell/PowerShell#20168
The bug existed in .NET 7 but it was not uncovered until #86948 exposed it through
NegotiateStream
APIs.Unfortunately, we lack testing infrastructure for testing Kerberos on Windows. NegotiateStreamKerberosTest outer loop test is supposed to cover it but I am not sure if it's even executed in any reasonable fashion. Thanks to @jborean93 for manually testing it on the affected use case in PowerShell.