Preload list scalability, size, considerations and alternate proposal
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- cryptography, security
Research direction
The issue names no files, tests, or entry points. Begin by locating the existing preload-list implementation and measuring its startup, storage, and update behavior before evaluating the proposed alternatives. Done would require a scoped, agreed design with clear validation criteria.
Written by the indexing model from the issue text.
Description
I've been thinking since the beginning of the project that the concept of a preload list is the main bottleneck, both in terms of startup time, storage requirements, and overall scalability. For example, it becomes quite impractical around 500k domains, where the list grows to roughly 30MB (assuming each entry is 64 bytes). While we're far from reaching that scale—and considering that only a limited set of web applications would benefit from this mechanism—it may ultimately prove unrealistic.
Still, there’s value in exploring alternatives, both to reduce update size and speed up startup, and also just as a fun exercise.
I’d split the problem into two sub-problems:
- Knowing that a domain is enrolled
- Retrieving the enrollment data
The current list handles both through the same mechanism (a local list lookup), but there's no fundamental reason the two phases must be coupled.
Drawing inspiration from the great CRLite paper, it should be possible to build a cascading Bloom filter (with a final inverse filter to remove false positives) that simply tells us whether a domain is enrolled, without providing any additional data. This would depend on TLS, since Certificate Transparency (CT) gives us a view of all valid TLS certificates at a given time. That lets us compute the first Bloom filter layer and, because we can enumerate all false positives, also build the inverse filter. There should be a threshold where this approach becomes more space-efficient than a plain list, and figuring that out could be valuable.
At browser startup, the extension downloads the updated filter. Every X minutes, it also fetches an updated signed tree head (STH). At runtime, the extension uses the filter to check whether a domain is enrolled. If not, everything proceeds normally, and no further data is needed. If the domain is enrolled, it becomes the responsibility of the web server to provide signer information along with a CONIKS-like verification path. The result should match the out-of-band STH fetched earlier.
This is, of course, a high-level concept—I’m skipping over many implementation details that I haven’t explored yet or don’t know—but it seems feasible in principle.
- Dominant language
- TypeScript
- Stars
- 116
- Forks
- 12
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 10
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from freedomofpress/webcat
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
freedomofpress/webcat#260 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
freedomofpress/webcat#332 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 56/100
freedomofpress/webcat#330 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 8/100
freedomofpress/webcat#323 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
freedomofpress/webcat#302 ·
Maintainers usually reply within 1 day
All issues in freedomofpress/webcat
Similar issues
-
Translate the appOpengood first issue help wanted
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Mikiyas-Meles-Assefa/opensourcebook#154 · 1 comment ·
Maintainers usually reply within 1 day
-
rowbinary: typeStringToReader keeps Variant members in text order, so Variant(Int64, Float64) reads 7 as 3.5e-323Possibly taken @rwits08 claimed this today. Openbug data-types
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/clickhouse-js#1293 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
sidebandstudio/clawtrate#1863 ·
Maintainers usually reply within 1 day
-
agent/quality testing
Difficulty 1/5 Under an hour Newbie friendliness 95/100
cncf/techdocs#463 · 1 comment ·
Maintainers usually reply within 1 day
-
GitHub registry install via `gh` credentials rewrites `\u0000`–`\u001f` escapes in source files to `^@`–`^_`Possibly taken @carlosrobert0 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
Maintainers usually reply within 2 days