workerd 1.20261122.2 → 1.20261124.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/workerd.capnp CHANGED
@@ -96,7 +96,17 @@ struct Config {
96
96
  # Console and Stdio logging configuration options.
97
97
 
98
98
  cluster @7 :ClusterConfig;
99
- # Set when this instance should join a cluster. Requires `--experimental`.
99
+ # Set when this instance should join a cluster. Requires `--experimental`. `workerd serve
100
+ # --cluster-addr=<addr>` joins a config without it, such as a wrangler config, to a cluster as if
101
+ # it were `(address = "<addr>")`: every other field at its default, so `key` and `bucket` come
102
+ # from the environment. A config compiled into a binary by `workerd compile` cannot join this
103
+ # way; compile one that sets `cluster`. Nor can a config without the writable disk service
104
+ # `do-storage`, which holds the Durable Objects of the cluster's deployments on each instance.
105
+ #
106
+ # A wrangler config joined this way defines the disk service `do-storage`, which holds its
107
+ # Durable Objects and those of the cluster's deployments, even if it has none of its own (see
108
+ # `ClusterConfig`), in `do/` of its state directory: `.wrangler/state/workerd` next to it, or
109
+ # the one that `--data-dir` names.
100
110
 
101
111
  tracing @8 :TracingOptions;
102
112
  # Where the spans of Worker invocations are exported.
@@ -199,6 +209,10 @@ struct ClusterConfig {
199
209
  # that is never completed or aborted, such as an R2 put cut off mid-stream, otherwise keeps its
200
210
  # parts, and their storage, forever.
201
211
  #
212
+ # `serve` takes it from the environment variable `WORKERD_CLUSTER_BUCKET` instead when that is
213
+ # set, ignoring trailing whitespace; a blank variable counts as unset. A bucket set nowhere is an
214
+ # error.
215
+ #
202
216
  # A `gs://` bucket is reached through Cloud Storage's XML API, whose writes are conditional on
203
217
  # object generations. Its access tokens come from the service account key that
204
218
  # `GOOGLE_APPLICATION_CREDENTIALS` names (a credentials file of another type is an error); else
@@ -265,6 +279,12 @@ struct ClusterConfig {
265
279
  # channel tokens, which pass service and Durable Object stubs over RPC. Traffic is not
266
280
  # encrypted: run the cluster on a private network (a VPC, WireGuard, Tailscale).
267
281
  #
282
+ # `serve` takes the key from the environment variable `WORKERD_CLUSTER_KEY` instead when that is
283
+ # set, or reads it at startup from the file that `WORKERD_CLUSTER_KEY_FILE` names, such as a
284
+ # mounted secret, ignoring trailing whitespace; a blank variable or file counts as unset. Set
285
+ # only one of the two. The key is text, so the file must be UTF-8. A config, or a binary that
286
+ # `workerd compile` builds, can then hold no key. A key set nowhere is an error.
287
+ #
268
288
  # TODO(someday): Support some way to gradually roll out a rotated key.
269
289
 
270
290
  unsafePublicAddress @5 :Bool = false;