Repository navigation
Tests: resubmit a log's recent entries through the deployed snippet - #64
Merged
Merged
Conversation
Resubmit the last (up to) 256 entries of the log at CTREQ_LOG_URL to the same log, failing on any Cloudflare snippet error (such as 1201) or false rejection. Unlike the forwarding test, it also works against test logs. Also take the forwarding test's log from CTREQ_LOG_URL, and split the README's section on testing a deployed log into subsections. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Nov 14, 2026
Merged
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
CTREQ_LOG_URL=<log> npm run test:resubmit(test/resubmit.mjs), which fetches the log's last (up to) 256 entries and resubmits each one to the same log, as theadd-chainoradd-pre-chainrequest that could have submitted it. It fails on any Cloudflare snippet error (such as 1201, which broke v1.5.0) and on any snippet rejection (the log has already accepted them all), and reports the log's responses. Unlike the forwarding test, it also works against test logs.test/differential/replay.mjsexportsrecentEntries(), reusing its entry readers: static-ct-api logs are read from their monitoring URL in Google's log list, orCTREQ_LOG_MONITORING_URLfor unlisted ones, and other logs as RFC 6962 logs.npm run test:forwardingnow takes its log fromCTREQ_LOG_URLtoo, rather than a command-line argument.Notes
Resubmitted entries are already in the log, so it returns their existing SCTs; TesseraCT's deduplication is best-effort, so a static-ct-api log might occasionally record a duplicate, which CT allows.
Validation
CTREQ_LOG_MONITORING_URL): 256 resubmissions, all 200; its size stayed at 274, so nothing was duplicated.503 error code: 1201, the test fails.CTREQ_LOG_URL; the forwarding test still passes against Tiger2027h1.npm testpasses, and the replay tool still works.