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
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
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
backend_env.rs
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
cert.rs
cert_metrics.rs
ci.rs
ci_metrics.rs
claude_login.rs
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
gitlab.rs
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
mtls.rs
observability.rs
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
queue.rs
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