Skip to content

std.tls: the trust store is loaded whole (4096 roots, 8 MiB), and a store past the cap is said aloud (#2922) - #2928

Merged
ehartford merged 1 commit into
mainfrom
tls-roots-capacity
Nov 2, 2026
Merged

ehartford merged 1 commit into
mainfrom
tls-roots-capacity

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

The verifier held at most 512 roots in 1 MiB and stopped there without a
word. Windows's ROOT view (the user's roots, the machine's and the
auto-updated AuthRoot) holds more than 512 on a GitHub Windows runner, so
every chain whose root sat past the cut read "untrusted": the rehearsal
trace (run 41402357934) says 512 trust roots loaded on both Windows
runners, with zlib.net and GitHub's asset host refused and github.com
verified. win10's smaller store fit under the cap, which is why no local
leg ever saw it. TLS_ROOTS_MAX 4096 in TLS_ROOTS_BYTES 8 MiB, PEM bundles
to 16 MiB, and a count that reaches the cap prints a line naming it.

…tore past the cap is said aloud (#2922)

The verifier held at most 512 roots in 1 MiB and stopped there without a
word. Windows's ROOT view (the user's roots, the machine's and the
auto-updated AuthRoot) holds more than 512 on a GitHub Windows runner, so
every chain whose root sat past the cut read "untrusted": the rehearsal
trace (run 41402357934) says `512 trust roots loaded` on both Windows
runners, with zlib.net and GitHub's asset host refused and github.com
verified. win10's smaller store fit under the cap, which is why no local
leg ever saw it. TLS_ROOTS_MAX 4096 in TLS_ROOTS_BYTES 8 MiB, PEM bundles
to 16 MiB, and a count that reaches the cap prints a line naming it.
@ehartford
ehartford marked this pull request as ready for review November 2, 2026 09:07
@ehartford

Copy link
Copy Markdown
Contributor Author

Battery GREEN on 2565984 (seed-driven, tools/battery.w); gate green before it. The Mac fetch reads 128 roots and verifies as before; the Windows proof is the next test-channel rehearsal's release UATs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant