Skip to content

Conversation

@cjpatton
Copy link
Contributor

Closes #137.

Assign all deployed logs ("dev1", "dev2", and "shard1") a distinct OID from the space on Cloudflare's PEN allocated for MTC experiments. Also, use a distinct OID for the cosigner for each log. (Each has its own secret key.)

This is a breaking change that will require a migration to first delete all durable object data. The reason is that signatures for existing artifacts no longer verify:

dev2: Initializing log from fetch handler
dev2: Log exists, not creating
▲ [WARNING] dev2 failed to submit timed-out batch: Error: Error: invalid signature for key localhost:8787/logs/dev2+f0b8bc08 - Cause: Error: invalid signature for key localhost:8787/logs/dev2+f0b8bc08

[wrangler:info] POST /logs/dev2/add-entry 503 Service Unavailable (1069ms)
✘ [ERROR] Uncaught invalid signature for key localhost:8787/logs/dev2+f0b8bc08

✘ [ERROR] Uncaught Error: invalid signature for key localhost:8787/logs/dev2+f0b8bc08

Alternatively, we could spin down these logs and spin up new ones.

@cjpatton cjpatton requested a review from bwesterb October 21, 2025 02:14
@cjpatton cjpatton added the mtc Merkle Tree Certificates label Oct 21, 2025
Base automatically changed from cjpatton/137-1 to main October 21, 2025 15:05
Assign all deployed logs ("dev1", "dev2", and "shard1") a distinct OID
from the space on Cloudflare's PEN allocated for MTC experiments. Also,
use a distinct OID for the cosigner for each log. (Each has its own
secret key.)

This is a breaking change that will require a migration to first delete
all durable object data. The reason is that signatures for existing
artifacts no longer verify:

```
dev2: Initializing log from fetch handler
dev2: Log exists, not creating
▲ [WARNING] dev2 failed to submit timed-out batch: Error: Error: invalid signature for key localhost:8787/logs/dev2+f0b8bc08 - Cause: Error: invalid signature for key localhost:8787/logs/dev2+f0b8bc08

[wrangler:info] POST /logs/dev2/add-entry 503 Service Unavailable (1069ms)
✘ [ERROR] Uncaught invalid signature for key localhost:8787/logs/dev2+f0b8bc08

✘ [ERROR] Uncaught Error: invalid signature for key localhost:8787/logs/dev2+f0b8bc08
```

Alternatively, we could spin down these logs and spin up new ones.
@cjpatton cjpatton merged commit a6868ea into main Oct 21, 2025
1 check passed
@cjpatton cjpatton deleted the cjpatton/137-2 branch October 21, 2025 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mtc Merkle Tree Certificates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change OID assignemnts, remove witness cosigner

2 participants