Use a more compact HSTS representation. (HSTS Preload History)

Commit Details

Commit Subject
Use a more compact HSTS representation.
Commit Message
The current, preloaded HSTS table is nearly 80KB now. We match it linearly so
we trash the D1 cache with it for every lookup. Additionally, we have to do
multiple passes through it, removing a label from the target each time.

This changes the HSTS information to be a trie. The trie only consumes about
10KB and only a single lookup is needed for a given hostname since the
organisation of the trie means that all matches (from least to most specific)
for a given hostname will be found with a single walk.

BUG=none
R=palmer@chromium.org

Review URL: https://codereview.chromium.org/619433002

Cr-Commit-Position: refs/heads/master@{#298580}
Commit Timestamp
Commit Full Hash
0653ece4f182ab947d6809c311dfd4e8febaee1f
Commit Additions
35
Commit Removals
0
Commit Modifications
0
Commit Total changes
35
View Commit on Chromium's GitHub Mirror (might be slow) View Commit on Chromium's Googlesource

Preload List Changes

IntDomainActionPolicyIncludes SubDomains
0001hexony.comAddedYes
0002angularjs.orgAddedYes
0003knowledgehook.comAddedYes
0004gerardozamudio.mxAddedYes
0005debtkit.co.ukAddedYes
0006password.codesAddedYes
0007wepay.in.thAddedYes
0008khmath.comAddedYes
0009decibelios.liAddedYes
0010thorncreek.netAddedYes
0011hack.liAddedYes
0012gamercredo.comAddedYes
0013howsmyssl.comAddedYes
0014ravchat.comAddedYes
0015shiinko.comAddedYes
0016lodash.comAddedYes
0017omitech.co.ukAddedYes
0018diamante.roAddedYes
0019garron.netAddedYes
0020jwilsson.meAddedYes
0021prakharprasad.comAddedYes
0022fedorapeople.orgAddedYes
0023horosho.inAddedYes
0024hpac-portal.comAddedYes
0025sciencex.comAddedYes
0026domaris.deAddedYes
0027translatoruk.co.ukAddedYes
0028zixiao.wangAddedYes
0029spideroak.comAddedYes
0030md5file.comAddedYes
0031gmcd.coAddedYes
0032enorekcah.comAddedYes
0033orbograph-hrcm.comAddedYes
0034howsmytls.comAddedYes
0035tno.ioAddedYes