Skip to content

Make types in Microsoft.AspNetCore.DataProtection.KeyManagement.Internal internal #54707

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

Closed
wants to merge 2 commits into from

Conversation

amcasey
Copy link
Member

@amcasey amcasey commented Mar 22, 2024

IInternalXmlKeyManager and ICacheableKeyRingProvider are explicitly test hooks and the other types are implementation details. They aren't included in our public API documentation since they aren't intended for external consumption.

Fixes #54712

…nal internal

IInternalXmlKeyManager and ICacheableKeyRingProvider are explicitly test hooks and the other types are implementation details.  They aren't included in our public API documentation since they aren't intended for external consumption.
@ghost ghost added the area-dataprotection Includes: DataProtection label Mar 22, 2024
@amcasey
Copy link
Member Author

amcasey commented Mar 22, 2024

If CI is green, I'll make an API proposal.

@amcasey
Copy link
Member Author

amcasey commented Mar 22, 2024

@GrabYourPitchforks might remember why they weren't internal in the first place. I don't think it was a lack of IVT because they mostly have internal members, but maybe there was a partner or automated process that needed access?

@dotnet-policy-service dotnet-policy-service bot added the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Mar 30, 2024
@amcasey
Copy link
Member Author

amcasey commented Apr 1, 2024

Historical context: in early aspnetcore, there was a design philosophy that all types should be public, so that people could hack around any limitations they might encounter with the official API. This, apparently, did not extend to members, so some of these public types aren't meaningfully usable (either because they have no public members or because they are passed to other types via internal members).

While we now accept that some types should be internal, we're not willing to hide the already public ones because we don't want to cause binary breaks for existing consumers.

@amcasey amcasey closed this Apr 1, 2024
@dotnet-policy-service dotnet-policy-service bot added this to the 9.0-preview4 milestone Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-dataprotection Includes: DataProtection pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make types in Microsoft.AspNetCore.DataProtection.KeyManagement.Internal internal
1 participant