Skip to content

trees: Updates for mtpublisher HTTP client and writing checkpoints to tiles - #8970

Open
beautifulentropy wants to merge 1 commit into
mainfrom
paving-a-path-to-a-proper-publisher-06
Open

trees: Updates for mtpublisher HTTP client and writing checkpoints to tiles#8970
beautifulentropy wants to merge 1 commit into
mainfrom
paving-a-path-to-a-proper-publisher-06

Conversation

@beautifulentropy

Copy link
Copy Markdown
Member
  • trees/checkpoint: Add signed note assembly for mirror submission and serving
  • trees/cosignature: Add SignatureLine and accept signature lines as bytes
  • trees/mirror: EntryPackage accepts entries as bytes
  • trees/tiles: Add WriteCheckpoint

@beautifulentropy
beautifulentropy force-pushed the paving-a-path-to-a-proper-publisher-06 branch from 4f43652 to 98e667d Compare August 21, 2026 22:05
@beautifulentropy
beautifulentropy force-pushed the paving-a-path-to-a-proper-publisher-06 branch 2 times, most recently from b230bf9 to 2fa617b Compare August 24, 2026 16:16
@beautifulentropy
beautifulentropy marked this pull request as ready for review August 24, 2026 16:18
@beautifulentropy
beautifulentropy requested a review from a team as a code owner August 24, 2026 16:18
Comment thread trees/tiles/tiles.go
// WriteCheckpoint stores the log's signed checkpoint note at the "checkpoint"
// key under prefix per c2sp.org/tlog-tiles, overwriting the previous one. The
// note must be written only after the tiles its tree covers are published.
func WriteCheckpoint(ctx context.Context, s3c simpleS3, prefix string, signedNote []byte) error {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a TODO here to make this an atomic compare-and-swap (using S3's If-Match etag header), since the CA knows what the previous checkpoint was. And since this is "just" a helper function, it could move into the MTCA itself, where taking the previous etag as an argument be more intuitive.

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.

2 participants