the log and metrics stores ask every request for a credential the gateway supplies
Each store runs with -httpAuth.* and a credential from the secret store, published to the namespace as a Secret by the host. The gateway's locations send it after auth_request has passed, and the collector's scrape and push take the same one, so a process on the node that bypasses the gateway is refused.
This commit is contained in:
parent
ba0df0ec82
commit
f54aae7927
1 changed files with 808 additions and 72 deletions
|
|
@ -2046,6 +2046,20 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
storeAuthCommonName = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "swarm-store-auth";
|
||||
description = ''
|
||||
Subject the store's `swarm-store-auth` cert-auth role accepts: the
|
||||
identity the unit that publishes the log store's and the metrics store's
|
||||
listener credentials presents from the host (./k8s/store-credentials.nix).
|
||||
Its grant is create and read on `swarm/services/victorialogs/store-auth`
|
||||
and `swarm/services/victoriametrics/store-auth`, and nothing else.
|
||||
|
||||
⚠️ Reserved as a hive name by ./swarm.nix, like its siblings.
|
||||
'';
|
||||
};
|
||||
|
||||
atticCommonName = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "swarm-attic";
|
||||
|
|
@ -2195,6 +2209,32 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
storeAuthClientCertFile = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
default = null;
|
||||
example = "/var/lib/swarm-bao-pki/store-auth.pem";
|
||||
description = ''
|
||||
Certificate the host presents to the store to create and read the log
|
||||
store's and the metrics store's listener credentials. Its
|
||||
subject must be {option}`services.hyperhive.deploy.bao.storeAuthCommonName`.
|
||||
|
||||
./glue-bao-tls.nix points it at the leaf it mints on the store's host.
|
||||
On a host that runs either store without the secret store, it is a file
|
||||
the operator copies from the store's host. A path, never a value.
|
||||
'';
|
||||
};
|
||||
|
||||
storeAuthClientKeyFile = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
default = null;
|
||||
example = "/var/lib/swarm-bao-pki/store-auth-key.pem";
|
||||
description = ''
|
||||
Private key for
|
||||
{option}`services.hyperhive.deploy.bao.storeAuthClientCertFile`.
|
||||
A path, never a value.
|
||||
'';
|
||||
};
|
||||
|
||||
forgePublisherClientCertFile = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
default = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue