Deliver pre-generated REST API tokens by email - #2649
Open
lingwei-gu wants to merge 11 commits into
Open
Conversation
lingwei-gu
marked this pull request as ready for review
August 21, 2026 04:39
added 6 commits
August 21, 2026 00:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
POST /v1/tokenendpoint requiring realnameandemail202acceptance response; no credential appears in the HTTP response or request logsX-API-Keycredentials and reserve legacy/partially populated pool rowsqid,question,run_id,agent,step, and retrieval query metadata)k1andbvalues consistently with the public API contractConfiguration and security
Token delivery remains disabled unless the server starts with
--enable-token-issuance, a writable--config,--token-pool, SMTP host/sender settings, at least one individual--token-email-cc, and TLS email delivery. SMTP passwords must come from an owner-only file. Production should expose the identity-bearing endpoint over HTTPS.The pre-generated inventory is prepared separately in private castorini/trec26-rag#30. Blank pool credentials are not accepted for authentication until a row is claimed and activated.
Tests
tests.core.test_server_config,tests.core.test_token_delivery, andtests.core.test_rest202, in-memory email capture, no response credential, new-token BM25200, existing-token BM25200, identity persistence, and an unchanged production configgit diff --check