Skip to content

Commit

Permalink
Update HSTS preload list (#724)
Browse files Browse the repository at this point in the history
Co-authored-by: meziantou <[email protected]>
  • Loading branch information
github-actions[bot] and meziantou authored Feb 4, 2025
1 parent 617d7cc commit d0b867a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ partial class HstsDomainPolicyCollection
{
private void LoadPreloadDomains()
{
// HSTS preload data source: https://raw.githubusercontent.com/chromium/chromium/ba720cd91299fe45b6345be1971ee628af9bc3f5/net/http/transport_security_state_static.json
// Commit date: 2024-12-18T23:38:47.0000000+00:00
// HSTS preload data source: https://raw.githubusercontent.com/chromium/chromium/829b336e8eabc27129d1132ad4120eeb4d41b580/net/http/transport_security_state_static.json
// Commit date: 2025-02-03T18:14:52.0000000+00:00
CollectionsMarshal.SetCount(_policies, 5);

var dict1 = new ConcurrentDictionary<string, HstsDomainPolicy>(concurrencyLevel: -1, capacity: 61, comparer: StringComparer.OrdinalIgnoreCase);
_policies[0] = dict1;
Load(dict1, 51, "preload_1.bin");

var dict2 = new ConcurrentDictionary<string, HstsDomainPolicy>(concurrencyLevel: -1, capacity: 149553, comparer: StringComparer.OrdinalIgnoreCase);
var dict2 = new ConcurrentDictionary<string, HstsDomainPolicy>(concurrencyLevel: -1, capacity: 153110, comparer: StringComparer.OrdinalIgnoreCase);
_policies[1] = dict2;
Load(dict2, 149543, "preload_2.bin");
Load(dict2, 153100, "preload_2.bin");

var dict3 = new ConcurrentDictionary<string, HstsDomainPolicy>(concurrencyLevel: -1, capacity: 11247, comparer: StringComparer.OrdinalIgnoreCase);
var dict3 = new ConcurrentDictionary<string, HstsDomainPolicy>(concurrencyLevel: -1, capacity: 11729, comparer: StringComparer.OrdinalIgnoreCase);
_policies[2] = dict3;
Load(dict3, 11237, "preload_3.bin");
Load(dict3, 11719, "preload_3.bin");

var dict4 = new ConcurrentDictionary<string, HstsDomainPolicy>(concurrencyLevel: -1, capacity: 197, comparer: StringComparer.OrdinalIgnoreCase);
_policies[3] = dict4;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFrameworks>$(LatestTargetFrameworks)</TargetFrameworks>
<RootNamespace>Meziantou.Framework.Http</RootNamespace>
<Version>1.0.0</Version>
<Version>1.0.1</Version>
<IsTrimmable>true</IsTrimmable>
<Description>Provide an HttpClientHandler to upgrade request from http to https if an HSTS policy is set for the domain</Description>
<DefineConstants Condition="'$(IsOfficialBuild)' == 'true'">$(DefineConstants);HSTS_PRELOAD_FULL</DefineConstants>
Expand Down
Binary file modified src/Meziantou.Framework.Http.Hsts/preload_1.bin
Binary file not shown.
Binary file modified src/Meziantou.Framework.Http.Hsts/preload_2.bin
Binary file not shown.
Binary file modified src/Meziantou.Framework.Http.Hsts/preload_3.bin
Binary file not shown.
Binary file modified src/Meziantou.Framework.Http.Hsts/preload_4.bin
Binary file not shown.

0 comments on commit d0b867a

Please sign in to comment.