maia
5079eb58d0
swarm-secret-client: name the store-answer mappings and test them
...
Each optional read, listing, delete, SSH CA read, alias lookup and versioned
read in SecretStore decided what a 404 (or a 400, or an empty 204) means
inline, next to the vaultrs call. Move those decisions into small functions
(none_when_absent, empty_when_absent, done_when_absent, ssh_ca_key,
entity_from_lookup, versioned) and the cert-role policy write's request into
set_cert_role_policies_request. Behaviour is unchanged.
Test them with constructed ClientError values: 404 is nothing there, every
other status (400, 403, 429, 500, 503) stays the store's error with the
status in the message, a blank SSH CA key is none, an empty alias answer is
a miss and any other parse failure is not, a versioned read keeps the number
and time and a wrong-shaped object is an error. Also pin the cert-role read
structs and the paths the grant names.
The vaultrs call lines themselves stay unit-uncovered by design; the VM tests
drive them against a real bao.
2026-11-30 12:40:17 +01:00
..
acp.rs
stop writing and attaching per-agent and per-hive bao policies
2026-10-27 10:11:02 +01:00
archive.rs
swarm-archive: grant only once an archive is up; keep logins across a gap in placements
2026-11-10 08:18:45 +01:00
attic.rs
copy the cache's pull facts to each hive and create them in the in-swarm cache
2026-10-28 01:19:56 +01:00
backend_env.rs
fetch the agent's backend env file from the store, seeded from the existing file
2026-10-28 01:24:29 +01:00
backend_secrets.rs
swarm: an agent's backend secrets get a store leaf of their own, and its backend environment reads back
2026-11-20 20:36:33 +01:00
builder.rs
name the mint, not the publisher, as the writer of the client secrets
2026-10-30 16:57:58 +01:00
cert.rs
cert_metrics.rs
ci.rs
ci_metrics.rs
name the mint, not the publisher, as the writer of the client secrets
2026-10-30 16:57:58 +01:00
claude_login.rs
derive a missing client digest from the secret that exists
2026-10-30 16:57:58 +01:00
client.rs
swarm-secret-client: name the store-answer mappings and test them
2026-11-30 12:40:17 +01:00
forge.rs
swarm-controller: stop minting the per-hive matrix sender account and token nothing reads
2026-11-12 15:38:34 +01:00
github.rs
stop writing and attaching per-agent and per-hive bao policies
2026-10-27 10:11:02 +01:00
gitlab.rs
add external gitlab accounts: stored in bao, linked per agent, allowed in squid, usable with glab
2026-11-02 16:44:56 +01:00
grafana.rs
health.rs
readiness follows a cached store check instead of a constant or a login per probe
2026-11-19 08:43:43 +01:00
lib.rs
swarm: an agent's backend secrets get a store leaf of their own, and its backend environment reads back
2026-11-20 20:36:33 +01:00
matrix.rs
swarm-controller: stop minting the per-hive matrix sender account and token nothing reads
2026-11-12 15:38:34 +01:00
meter_provider.rs
swarm-notify-router: export event, todo, review request and consumer metrics
2026-11-05 01:31:23 +01:00
mtls.rs
stop writing and attaching per-agent and per-hive bao policies
2026-10-27 10:11:02 +01:00
observability.rs
responder checks the logs or metrics permission per surface
2026-11-01 18:40:35 +01:00
path.rs
policy.rs
cut off hives that left the roster: forge token, team seat, token secret, login role
2026-11-17 06:48:05 +01:00
proxy.rs
render squid's unrestricted-users list from each agent's flag
2026-10-28 17:23:33 +01:00
queue.rs
name the mint, not the publisher, as the writer of the client secrets
2026-10-30 16:57:58 +01:00
review_classifier.rs
swarm-ui: set the review classifier's keys from the classifier settings
2026-11-11 19:01:01 +01:00
shutdown.rs
swarm-secret-client: add shutdown_signal, serve_bounded and InFlight
2026-11-18 09:45:21 +01:00
startup_read.rs
swarm daemons exit 0 when told to stop while still waiting for the store at startup
2026-11-19 08:06:36 +01:00
stored_secret.rs
name the mint, not the publisher, as the writer of the client secrets
2026-10-30 16:57:58 +01:00