Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/swarm-secret-client/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas b32c92a446 swarm-secret-client: say why the queue credential's client id is required
Pinning a decision rather than changing behaviour, because I was one
edit away from reversing it and left no reason on the field.

The sibling `matrix::Credential::homeserver` is an `Option`, which reads
like the house style to copy. It is not: that field is optional because
it was added to objects already in the store, and KV2 keeps those
versions forever. This path has never been written, so there is nothing
to stay compatible with.

Making it optional would also defeat the field. The id rides with the
secret so a reader never has to spell `hive-<name>-agent` itself, and
the only thing a reader holding `None` can do is exactly that. An object
without an id is not a usable credential, so failing to decode is the
behaviour we want.

Refs #3853
2026-09-12 11:22:33 +02:00
..
client.rs swarm-secret-client: name the hive queue credential, and grant a hive its own kind 2026-09-12 10:56:50 +02:00
lib.rs swarm-secret-client: name the hive queue credential, and grant a hive its own kind 2026-09-12 10:56:50 +02:00
matrix.rs swarm-secret-client: give the store one namespace instead of one prefix 2026-09-11 20:19:47 +02:00
path.rs remove as_str() legacy wrappers, callers use .into() directly 2026-09-12 00:06:31 +02:00
policy.rs swarm-secret-client: name the hive queue credential, and grant a hive its own kind 2026-09-12 10:56:50 +02:00
queue.rs swarm-secret-client: say why the queue credential's client id is required 2026-09-12 11:22:33 +02:00