Watch
0
0
Fork
You've already forked hyperhive
0

run the metrics store and its auth responders as pods

This commit is contained in:
atlas 2026-11-27 09:11:27 +01:00 • committed by maia
commit 07a004fad1

View file

@ -86,24 +86,23 @@ and the store's granter fetches the bao UI's.
Three services read **every agent's queue secret**
(`swarm/agents/<agent>/queue`), each under a leaf of its own whose policy
reaches that one leaf per agent: the queue's auth callout (`swarm-nats-auth`),
the log store's agent check (`swarm-logs-auth`, a pod on the log store's host), and
the metrics store's (`swarm-metrics-agent-auth`, under the `swarm-metrics-auth`
leaf on the metrics store's host). Any one compromised can present any agent's
the log store's agent check (`swarm-logs-auth`, on the log store's host), and
the metrics store's (`swarm-metrics-auth`, on the metrics store's host). Any one compromised can present any agent's
queue secret, at the queue and at both stores' read routes alike. The two store checks also read the
agent's `swarm/agents/<agent>/observability` leaf, which only the controller writes, and let
the agent through only with the `logs` or `metrics` permission it names.
### The log store takes writes and reads from the node
### The log and metrics stores take writes and reads from the node
VictoriaLogs checks no credential: the gateway's vhost does. The store
listens on its pod's address behind a ClusterIP Service, and the Service's
NetworkPolicy admits traffic from the node and from nothing else. A process on
the log store's host, whatever its user, can therefore read every log line and
write records into the store without a bearer. An agent can't: its traffic
doesn't come from the node, and the hive's egress rules don't forward it to the
pod network. Treat the host that runs the log store as trusted for logs. The
metrics store still listens on a unix socket that only the gateway's group can
open.
VictoriaLogs and VictoriaMetrics check no credential: the gateway's vhost does.
Each store listens on its pod's address behind a ClusterIP Service, and the
Service's NetworkPolicy admits traffic from the node and from nothing else. A
process on the host that runs a store, whatever its user, can therefore read
every record in it and write records into it without a bearer. The metrics store
also serves its import and admin routes on that listener, so the same process
can delete series from it. An agent can't: its traffic doesn't come from the
node, and the hive's egress rules don't forward it to the pod network. Treat the
host that runs the stores as trusted for logs and metrics.
### Per-hive credentials live under the hive kind