Watch
0
0
Fork
You've already forked hyperhive
0

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:
atlas 2026-11-27 17:24:08 +01:00 • committed by maia
commit 9b12532fc1

View file

@ -130,6 +130,8 @@ in
atticClientKeyFile = lib.mkDefault "${pkiDir}/attic-key.pem";
archiveClientCertFile = lib.mkDefault "${pkiDir}/archive.pem";
archiveClientKeyFile = lib.mkDefault "${pkiDir}/archive-key.pem";
storeAuthClientCertFile = lib.mkDefault "${pkiDir}/store-auth.pem";
storeAuthClientKeyFile = lib.mkDefault "${pkiDir}/store-auth-key.pem";
forgePublisherClientCertFile = lib.mkDefault "${pkiDir}/forge-publisher.pem";
forgePublisherClientKeyFile = lib.mkDefault "${pkiDir}/forge-publisher-key.pem";
servicesIssuerClientCertFile = lib.mkDefault "${pkiDir}/services-issuer.pem";
@ -358,6 +360,13 @@ in
[ -s ${pkiDir}/archive.pem ] || ${signLeaf} ${pkiDir} archive \
${lib.escapeShellArg deployCfg.bao.archiveCommonName} "" clientAuth
# The unit that publishes the log store's and the metrics store's listener
# credentials. Minted here for the matrix-ctl leaf's reason: each store is a
# swarm singleton, so on a store host without the secret store this is the
# file an operator copies.
[ -s ${pkiDir}/store-auth.pem ] || ${signLeaf} ${pkiDir} store-auth \
${lib.escapeShellArg deployCfg.bao.storeAuthCommonName} "" clientAuth
# The forge's token publisher. Minted here for the matrix-ctl leaf's
# reason: the forge is a swarm singleton, so on a forge host without the
# store this is the file an operator copies.