Skip to content

Commit 9ca2fe2

Browse files
committed
Define deployment of bootstrap MTCA
1 parent 858cb8f commit 9ca2fe2

File tree

4 files changed

+62
-2
lines changed

4 files changed

+62
-2
lines changed

crates/ct_worker/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ Run the following for each of the `dev2025h1a` and `dev2025h2a` log shards to co
132132
openssl genpkey -algorithm ed25519 | npx wrangler -e=${ENV} secret put WITNESS_KEY_${LOG_NAME}
133133
openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:P-256 | npx wrangler -e=${ENV} secret put SIGNING_KEY_${LOG_NAME}
134134
135+
(Note: For mtc_worker we use ed25519 for both the witness key and the signing key.)
136+
135137
1. Deploy the worker. The worker will be available at `https://static-ct-${ENV}.<your-team>.workers.dev/logs/${LOG_NAME}`.
136138
137139
npx wrangler -e=${ENV} deploy

crates/mtc_worker/.dev.vars

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
SIGNING_KEY_dev1="-----BEGIN PRIVATE KEY-----\nMC4CAQAwBQYDK2VwBCIEIBCLa48rfJHyYIhRoP83GJzwEtEJfdVKeI6YvrZLhiUG\n-----END PRIVATE KEY-----\n"
22
WITNESS_KEY_dev1="-----BEGIN PRIVATE KEY-----\nMC4CAQAwBQYDK2VwBCIEIHwiErJNKCNGZL+Osj+O8MqSMiwPP4kdcC4iTpojV9Od\n-----END PRIVATE KEY-----\n"
33
SIGNING_KEY_dev2="-----BEGIN PRIVATE KEY-----\nMC4CAQAwBQYDK2VwBCIEINaOgrQNAgPl9+sEQqCxEnvlblHlC3JbrM04/uryf3we\n-----END PRIVATE KEY-----\n"
4-
WITNESS_KEY_dev2="-----BEGIN PRIVATE KEY-----\nMC4CAQAwBQYDK2VwBCIEINKYH1WadDgPJEXYzLx0OWzNoi4hRcpUnYpoWrTc7BDO\n-----END PRIVATE KEY-----\n"
4+
WITNESS_KEY_dev2="-----BEGIN PRIVATE KEY-----\nMC4CAQAwBQYDK2VwBCIEINKYH1WadDgPJEXYzLx0OWzNoi4hRcpUnYpoWrTc7BDO\n-----END PRIVATE KEY-----\n"
5+
SIGNING_KEY_shard1="-----BEGIN PRIVATE KEY-----\nMC4CAQAwBQYDK2VwBCIEINaOgrQNAgPl9+sEQqCxEnvlblHlC3JbrM04/uryf3we\n-----END PRIVATE KEY-----\n"
6+
WITNESS_KEY_shard1="-----BEGIN PRIVATE KEY-----\nMC4CAQAwBQYDK2VwBCIEINKYH1WadDgPJEXYzLx0OWzNoi4hRcpUnYpoWrTc7BDO\n-----END PRIVATE KEY-----\n"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"logging_level": "info",
3+
"logs": {
4+
"shard1": {
5+
"description": "Cloudflare bootstrap MTCA shard 1",
6+
"log_id": "13335.1",
7+
"submission_url": "https://bootstrap-mtca.cloudflareresearch.com/logs/shard1/",
8+
"monitoring_url": "https://bootstrap-mtca-shard1.cloudflareresearch.com",
9+
"enable_dedup": false
10+
}
11+
}
12+
}

crates/mtc_worker/wrangler.jsonc

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,50 @@
5656
]
5757
}
5858
]
59+
},
60+
"bootstrap-mtca": {
61+
"build": {
62+
// Change '--release' to '--dev' to compile with debug symbols.
63+
// DEPLOY_ENV is used in build.rs to select per-environment config and roots.
64+
"command": "cargo install -q worker-build && DEPLOY_ENV=bootstrap-mtca worker-build --release"
65+
},
66+
"route": {
67+
"pattern": "bootstrap-mtca.cloudflareresearch.com",
68+
"custom_domain": true
69+
},
70+
"r2_buckets": [
71+
{
72+
"bucket_name": "bootstrap-mtca-shard1",
73+
"binding": "public_shard1"
74+
}
75+
],
76+
"durable_objects": {
77+
"bindings": [
78+
{
79+
"name": "BATCHER",
80+
"class_name": "Batcher"
81+
},
82+
{
83+
"name": "CLEANER",
84+
"class_name": "Cleaner"
85+
},
86+
{
87+
"name": "SEQUENCER",
88+
"class_name": "Sequencer"
89+
}
90+
]
91+
},
92+
"migrations": [
93+
{
94+
// tag should be unique for each entry
95+
"tag": "v1",
96+
"new_sqlite_classes": [
97+
"Batcher",
98+
"Cleaner",
99+
"Sequencer"
100+
]
101+
}
102+
]
59103
}
60104
}
61-
}
105+
}

0 commit comments

Comments
 (0)