Skip to content

Conversation

@bartonjs
Copy link
Member

@bartonjs bartonjs commented Jul 3, 2024

The new Pkcs12 loader will now reject duplicate attributes, either as multiple attribute sets, or a set with multiple values.

The LoaderLimits type gains an option to disable this filter, but as of now it is not being made into public API (though the tests show how to get at it anyways, by the cloning behavior on DangerousNoLimits).

This change also fixes the over-filtering of the MachineKey attribute, and adds tests for how that behaves under DefaultKeySet.

Fixes #103924

The new Pkcs12 loader will now reject duplicate attributes,
either as multiple attribute sets, or a set with multiple values.

The LoaderLimits type gains an option to disable this filter, but
as of now it is not being made into public API (though the tests
show how to get at it anyways, by the cloning behavior on
DangerousNoLimits).

This change also fixes the over-filtering of the MachineKey attribute,
and adds tests for how that behaves under DefaultKeySet.
@bartonjs bartonjs added this to the 9.0.0 milestone Jul 3, 2024
@bartonjs bartonjs self-assigned this Jul 3, 2024
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-security, @bartonjs, @vcsjones
See info in area-owners.md if you want to be subscribed.

@bartonjs bartonjs merged commit 6f9076c into dotnet:main Jul 4, 2024
@bartonjs bartonjs deleted the pfx_dupattrs branch July 4, 2024 04:21
@github-actions github-actions bot locked and limited conversation to collaborators Aug 3, 2024
@bartonjs bartonjs added cryptographic-docs-impact Issues impacting cryptographic docs. Cleared and reused after documentation is updated each release. tracking-external-issue The issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly tracking This issue is tracking the completion of other related issues. and removed tracking-external-issue The issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly labels Sep 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Security cryptographic-docs-impact Issues impacting cryptographic docs. Cleared and reused after documentation is updated each release. tracking This issue is tracking the completion of other related issues.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Decide on a policy for duplicate attributes on PKCS12 values

2 participants