Skip to content

Tests: resubmit a log's recent entries through the deployed snippet - #64

Merged
robstradling merged 1 commit into
mainfrom
resubmit-test
Nov 14, 2026
Merged

robstradling merged 1 commit into
mainfrom
resubmit-test

Conversation

@robstradling

Copy link
Copy Markdown
Member

Summary

  • Add 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 the add-chain or add-pre-chain request 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.mjs exports recentEntries(), reusing its entry readers: static-ct-api logs are read from their monitoring URL in Google's log list, or CTREQ_LOG_MONITORING_URL for unlisted ones, and other logs as RFC 6962 logs.
  • npm run test:forwarding now takes its log from CTREQ_LOG_URL too, rather than a command-line argument.
  • The README's "Testing a deployed log" section now has an introduction comparing the three checks, a recommended order for enabling a new version, and a subsection for each.

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

  • Dumbo (ctlabs, RFC 6962): 256 resubmissions, all 200 from the log.
  • Standee (ctlabs, static-ct-api, with CTREQ_LOG_MONITORING_URL): 256 resubmissions, all 200; its size stayed at 274, so nothing was duplicated.
  • Against a fake log answering 503 error code: 1201, the test fails.
  • Both scripts print their usage and exit with code 2 without CTREQ_LOG_URL; the forwarding test still passes against Tiger2027h1.
  • npm test passes, and the replay tool still works.

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>
@robstradling
robstradling merged commit d93ca62 into main Nov 14, 2026
22 checks passed
@robstradling
robstradling deleted the resubmit-test branch November 14, 2026 21:56
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