-
Notifications
You must be signed in to change notification settings - Fork 51
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
Replacing Yubico.DotnetPolyFills with PolySharp. Bumping LanguageVersion to C#12. #132
base: develop
Are you sure you want to change the base?
Conversation
Test Results: Windows 2 files 2 suites 5s ⏱️ Results for commit 85a888e. ♻️ This comment has been updated with latest results. |
Test Results: Ubuntu 2 files 2 suites 9s ⏱️ Results for commit 85a888e. ♻️ This comment has been updated with latest results. |
Test Results: MacOS 2 files 2 suites 3s ⏱️ Results for commit 85a888e. ♻️ This comment has been updated with latest results. |
This introduces an untrusted third party dependency into a security critical library. It would be better to selectively port the individual Polyfills into core, then introduce a new dependency (and extend the chain of trust). |
Hi @iamcarbon and thanks for your raised concern. It's true that bringing in a dependency into any library should not be taken in lightly. This suggestion has been with the team for some time, and while we haven't committed to it yet, we want to explore the possibility of making such a change. We do believe measures can be taken to ensure stability and expected behavior. Rest assured, although the third party dependency in question appears to be well regarded, useful and stable, it won't be added without going through a due dilligence process. To you and anyone else reading this, please feel free to add your comments or any alternatives to move the SDK forward in this regard. |
Description
This update removes the need for the Yubico.DotnetPolyfills-project. This project was adding a couple of methods, such as CryptographicOperations.ZeroMemory and the Index operator. Now, since adding Polysharp, this is no longer needed as Polysharp generates polyfills for newer C# language features and APIs at compile-time. This also allows us to use C# language version 12 instead of 7.3.
It's true that bringing in a dependency into any library should not be taken in lightly. This suggestion has been with the team for some time, and while we haven't committed to it yet, we want to explore the possibility of making such a change. We do believe measures can be taken to ensure stability and expected behavior. Rest assured, although the third party dependency in question appears to be well regarded, useful and stable, it won't be added without going through a due dilligence process.
To you and anyone else reading this, please feel free to add your comments or any alternatives to move the SDK forward in this regard.
Fixes: YESDK1316
Type of change
How has this been tested?
Unit tests pass and builds pass.
Checklist:
dotnet format
to format my code