Skip to content

Add nts.cookies_issued counter - #565

Closed
sofiascalzo wants to merge 4 commits into
facebook:mainfrom
sofiascalzo:export-D113225107
Closed

Add nts.cookies_issued counter#565
sofiascalzo wants to merge 4 commits into
facebook:mainfrom
sofiascalzo:export-D113225107

Conversation

@sofiascalzo

Copy link
Copy Markdown

Summary: Extend ntske.Stats with AddCookiesIssued(n); the KE server reports the number of NewCookie records after a successful response. Implement it in the dedicated ntske/stats package (nts.cookies_issued), keeping all KE metrics out of responder/stats.

Reviewed By: pmazzini

Differential Revision: D113225107

Sofia Scalzo added 4 commits July 23, 2026 09:56
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
Summary: Extend ntske.Stats with AddCookiesIssued(n); the KE server reports the number of NewCookie records after a successful response. Implement it in the dedicated ntske/stats package (nts.cookies_issued), keeping all KE metrics out of responder/stats.

Reviewed By: pmazzini

Differential Revision: D113225107
@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 D113225107.

@meta-codesync

meta-codesync Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

This pull request has been merged in 6946efe.

@meta-codesync meta-codesync Bot added the Merged label Jul 23, 2026
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