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
|
|
@ -877,11 +877,10 @@ let
|
|||
lib.hasInfix "/logs-auth.pem ]" s && lib.hasInfix "swarm-logs-auth \"\" clientAuth" s;
|
||||
}
|
||||
{
|
||||
# Read-only on every agent's queue secret, the one leaf Grafana's host
|
||||
# creates and the store container forwarder's client secret, and nothing
|
||||
# else: this principal checks presented bearers, and its host fetches
|
||||
# one secret for the container.
|
||||
name = "the metrics store responder's grant is agents' queue secrets and log/metric grants, Grafana's metrics bearer and its container forwarder's client secret, read-only, and nothing else";
|
||||
# Read-only on every agent's queue secret and mirrored grant and the one
|
||||
# leaf Grafana's host creates, and nothing else: this principal checks
|
||||
# presented bearers.
|
||||
name = "the metrics store responder's grant is every agent's queue secret and log/metric grant and Grafana's bearer, read-only, and nothing else";
|
||||
ok =
|
||||
let
|
||||
s = baoGrantHere.systemd.services.swarm-bao-metrics-auth-policy.script;
|
||||
|
|
@ -899,10 +898,6 @@ let
|
|||
path = "secret/data/swarm/services/swarm-grafana/metrics/bearer";
|
||||
caps = [ "read" ];
|
||||
}
|
||||
{
|
||||
path = "secret/data/swarm/services/swarm-victoriametrics-collector/oidc/client";
|
||||
caps = [ "read" ];
|
||||
}
|
||||
]
|
||||
&& lib.hasInfix "auth/cert/certs/swarm-metrics-auth" s
|
||||
&& lib.hasInfix "allowed_common_names=swarm-metrics-auth" s
|
||||
|
|
|
|||
Loading…
Reference in a new issue