Skip to content

Wire shared key and stats into ntskeserver#564

Closed
sofiascalzo wants to merge 3 commits into
facebook:mainfrom
sofiascalzo:export-D113387496
Closed

Wire shared key and stats into ntskeserver#564
sofiascalzo wants to merge 3 commits into
facebook:mainfrom
sofiascalzo:export-D113387496

Conversation

@sofiascalzo

Copy link
Copy Markdown

Summary: Seed the ntskeserver keystore with ntske.SharedTestMasterKey so cookies interoperate with the responder, and wire the dedicated ntske/stats.JSONStats into ntske.Server.Stats, exposed via --monitoringport. Uses the KE stats package, not responder/stats.

Reviewed By: vvfedorenko

Differential Revision: D113387496

Sofia Scalzo added 3 commits July 23, 2026 09:55
Summary:

What this does:
- Adds two flags to the ntpresponder binary:
    --enable-nts         (default false) master switch for NTS
    --nts-keystore-keys  (default 2)     master-key ring size for cookie sealing
- When --enable-nts is set, builds an in-memory cookie keystore via the existing
  ntske.NewInMemoryKeystore and assigns it to server.Config.Keystore

Reviewed By: vvfedorenko

Differential Revision: D113043011
Summary: Add a dedicated `time/ntp/ntske/stats` package whose JSONStats satisfies `ntske.Stats` and `exports nts.ke.handshakes` and `nts.ke.errors`

Reviewed By: pmazzini

Differential Revision: D113220164
Summary: Seed the ntskeserver keystore with ntske.SharedTestMasterKey so cookies interoperate with the responder, and wire the dedicated ntske/stats.JSONStats into ntske.Server.Stats, exposed via --monitoringport. Uses the KE stats package, not responder/stats.

Reviewed By: vvfedorenko

Differential Revision: D113387496
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 23, 2026
@meta-codesync

meta-codesync Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

@sofiascalzo has exported this pull request. If you are a Meta employee, you can view the originating Diff in D113387496.

@meta-codesync

meta-codesync Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

This pull request has been merged in 41c79ac.

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant