Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/swarm-nats-auth/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 32e28e6096 swarm-nats-auth: bound the OIDC secret re-read, and test the 401 that starts it
The re-read of the responder's own OIDC client secret had no timeout:
neither swarm-secret-client nor vaultrs nor reqwest sets one by default,
and while a re-read runs every later refusal joins it rather than
starting another. A store connection whose peer stays alive but silent
therefore held off rotation pickup indefinitely. The spawned re-read
now gives up after 10 s, logs that it did (without the secret), keeps
the secret in use, and frees the slot for the next refusal's re-read.

The link from a non-2xx introspection (identify_caller's
`Answer::Refused`) to that re-read had no test: every existing test
handed `OidcSecret::introspect` an `Answer` directly. A new test runs
the real `identify_caller` against a loopback IdP that answers 401 to
the old secret and admits the new one, so mapping a non-2xx to
anything but `Refused` turns it red. axum is a dev-dependency for that
stub, as in swarm-controller's forge tests.
2026-10-06 15:25:29 +02:00
..
agent_token.rs swarm-nats: require the responder's store identity, and drop its no-store mode 2026-10-05 23:25:36 +02:00
introspect.rs swarm-nats-auth: read its own OIDC client secret from the store 2026-10-06 14:54:19 +02:00
keystore.rs swarm-nats-auth: read the callout issuer and user seeds from the store 2026-10-06 14:53:33 +02:00
main.rs swarm-nats-auth: read its own OIDC client secret from the store 2026-10-06 14:54:19 +02:00
nkey.rs swarm-nats-auth: read the callout issuer and user seeds from the store 2026-10-06 14:53:33 +02:00
oidc_secret.rs swarm-nats-auth: bound the OIDC secret re-read, and test the 401 that starts it 2026-10-06 15:25:29 +02:00
policy.rs docs: drop harness systemd settings; swarm-nats-auth: refuse the hive's shared agent client 2026-10-04 22:24:51 +02:00
request.rs feat(swarm): the auth-callout responder (#3112 slice 2) 2026-08-15 09:34:33 +02:00
respond.rs swarm-nats-auth: limit agent subscribe to its own inbox and input 2026-10-04 19:22:41 +02:00
xkey.rs swarm-nats-auth: read the callout issuer and user seeds from the store 2026-10-06 14:53:33 +02:00