run the metrics store and its auth responders as pods
This commit is contained in:
parent
3f71739852
commit
07a004fad1
1 changed files with 1308 additions and 1031 deletions
|
|
@ -175,11 +175,11 @@ let
|
|||
}
|
||||
];
|
||||
|
||||
# The metrics store's responders under one leaf: the agent one checks the
|
||||
# secret an agent presents against the one stored for it (the same `+` leaf
|
||||
# as the log store's) and reads the agent's mirrored grant, the other checks the bearer Grafana presents; and the
|
||||
# host unit that fetches the store container's journal forwarder secret.
|
||||
# Nothing else.
|
||||
# The metrics store's auth responders, which run in one pod under one role:
|
||||
# the agent one checks the secret an agent presents against the one stored for
|
||||
# it (the same `+` leaf as the log store's) and reads the agent's mirrored
|
||||
# grant, the other checks the bearer Grafana presents against Grafana's
|
||||
# metrics bearer. Nothing else.
|
||||
metricsAuthReaders = [
|
||||
{
|
||||
name = "swarm-metrics-auth";
|
||||
|
|
@ -188,9 +188,7 @@ let
|
|||
policyText =
|
||||
readStanza "${credentialMountPath}/data/swarm/agents/+/queue"
|
||||
+ readStanza "${credentialMountPath}/data/swarm/agents/+/observability"
|
||||
+ readStanza "${credentialMountPath}/data/${grafanaMetricsBearerLeaf}"
|
||||
# The metrics store container's journal forwarder, fetched on its host.
|
||||
+ readStanza "${credentialMountPath}/data/swarm/services/${hyperhiveCfg.swarm.victoriametrics.otel.clientId}/oidc/client";
|
||||
+ readStanza "${credentialMountPath}/data/${grafanaMetricsBearerLeaf}";
|
||||
}
|
||||
];
|
||||
|
||||
|
|
@ -419,6 +417,9 @@ let
|
|||
# The log store's two responders hold one role, under the ServiceAccount of
|
||||
# their pod (./k8s/render.nix, `swarm-logs-auth`).
|
||||
++ logsAuthReaders
|
||||
# The metrics store's two responders, likewise under the ServiceAccount of
|
||||
# their pod (./k8s/render.nix, `swarm-metrics-auth`).
|
||||
++ metricsAuthReaders
|
||||
++ [ { name = controllerPolicyName; } ]
|
||||
# The queue's pod holds both of its roles under one ServiceAccount: the
|
||||
# server's leaf is issued with `swarm-nats`, and the responder reads its
|
||||
|
|
|
|||
Loading…
Reference in a new issue