hyperhive/swarm-secret-client/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas f4b7a1e357 Derive queue path from agent_client_path in render_agent_with_queue
Make render_agent_with_queue derive the queue credential path from
agent_client_path() rather than re-interpolating Kind::Hive and the
queue/agent segment. This enforces path agreement through code reuse
instead of two hand-written spellings that can diverge.

The policy stanza needs the policy form (secret/data/...) while
agent_client_path returns the client form (swarm/hives/...). Bridge
this by wrapping agent_client_path's result with {MOUNT}/data/, the
same mechanism render_agent uses for agent paths.

Update tests to derive expected paths from agent_client_path instead
of hard-coding them, so a future divergence fails the test rather
than passing silently.

Refs #4386
2026-09-15 23:03:58 +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: a read policy scoped to one agent 2026-09-14 00:58:48 +02:00
matrix.rs matrix: remove the registration token 2026-09-15 19:58:10 +02:00
path.rs swarm: put the matrix registration token where the reader is granted 2026-09-12 19:46:04 +02:00
policy.rs Derive queue path from agent_client_path in render_agent_with_queue 2026-09-15 23:03:58 +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