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 8caf688ee4 swarm: revoke an agent's queue credential when it is declared destroyed
A per-agent queue credential is minted at agent creation and nothing has
ever removed it. An agent declared destroyed loses its container and
keeps its credential: a bearer secret recovered from a snapshot or a
stale capture still authenticates as that agent, so the set of usable
credentials only grows.

Delete the path the mint published, on the one transition that ends an
agent's life. It mirrors step 3 of `mint_and_verify` and no other step:
the leaf, the ACL document and the cert role are what a hive uses to
collect an agent's secrets and are re-minted on every run of the mint.

Every version, not the newest. The mint rewrites the path when the
principal it names needs correcting, so KV v2's plain delete would leave
the identical secret readable at ?version=N. That is a separately-ACL'd
path, hence the second stanza in the controller's grant -- `delete` on
metadata discloses nothing, and `update` on the data path already lets
this principal destroy any agent credential's usability.

The destroy is not blocked by a failed revocation: the declaration is
already published and refusing the call would leave an operator with an
agent they cannot tear down. The failure is logged at error instead,
naming the agent, since a silent orphan is the fault being removed.
2026-09-28 23:46:17 +02:00
..
client.rs swarm: revoke an agent's queue credential when it is declared destroyed 2026-09-28 23:46:17 +02:00
forge.rs swarm-bao: agent certificates issued by a store-generated agent CA 2026-09-27 22:59:27 +02:00
lib.rs swarm-bao: agent certificates issued by a store-generated agent CA 2026-09-27 22:59:27 +02:00
matrix.rs swarm-controller: read the queue client secret from the store, drop the file 2026-09-28 19:01:05 +02:00
mtls.rs swarm: mint, publish and login-verify an agent's store identity at create 2026-09-18 15:05:24 +02:00
path.rs fix doc-comment pointers broken by the module-eval split 2026-09-20 04:31:08 +02:00
policy.rs swarm-bao: agent certificates issued by a store-generated agent CA 2026-09-27 22:59:27 +02:00
queue.rs swarm-controller: backfill a missing queue-secret mint time instead of re-minting it 2026-09-28 22:24:07 +02:00