Watch
0
0
Fork
You've already forked hyperhive
0

gateway: answer 503 for a store outage and 429 for the rate limit, and retry both in swarm-logs and swarm-metrics

This commit is contained in:
atlas 2026-11-30 15:25:53 +01:00 • committed by mara
commit 790cdd43c8

View file

@ -294,7 +294,10 @@ because logs are the more sensitive. Grant one with
`swarmctl agent permissions set <agent>` (listing it with the others) or the
create-agent screen; the setup assistant creates ruth with both, through the `ruth` archetype. An agent
without it gets a 403 from the store's gateway when `swarm-logs` or
`swarm-metrics` queries; a bad secret is still a 401.
`swarm-metrics` queries; a bad secret is still a 401. A 503 means the store
behind the gateway couldn't answer, and a 429 means the agent's host is over
its rate. `swarm-logs` and `swarm-metrics` retry both, and neither is a missing
permission.
An agent decodes its own record, in its harness
(`hive-agent/src/swarm_permissions.rs`, through `swarm_queue_client::agent_permissions::read`),