the operator's bao works on a store host without a hive
This commit is contained in:
parent
039896c506
commit
32155f70aa
1 changed files with 169 additions and 9 deletions
|
|
@ -133,6 +133,11 @@ in
|
|||
servicesIssuerClientCertFile = lib.mkDefault "${pkiDir}/services-issuer.pem";
|
||||
servicesIssuerClientKeyFile = lib.mkDefault "${pkiDir}/services-issuer-key.pem";
|
||||
|
||||
# The operator's shell on a store host that runs no hive, which has no
|
||||
# reader above. See ./swarm-bao.nix's `baoCli`.
|
||||
operatorClientCertFile = lib.mkDefault "${pkiDir}/operator.pem";
|
||||
operatorClientKeyFile = lib.mkDefault "${pkiDir}/operator-key.pem";
|
||||
|
||||
# The granter: every `swarm-bao-*-policy` unit on this host logs in with
|
||||
# it. ⚠️ Unlike every other leaf here, never the file an operator copies:
|
||||
# its policy is root-equivalent and its only reader is this host.
|
||||
|
|
@ -352,6 +357,13 @@ in
|
|||
[ -s ${pkiDir}/forge-publisher.pem ] || ${signLeaf} ${pkiDir} forge-publisher \
|
||||
${lib.escapeShellArg deployCfg.bao.forgePublisherCommonName} "" clientAuth
|
||||
|
||||
# The operator's shell on this host. No cert-auth role accepts its
|
||||
# subject, so it opens the TLS handshake and nothing behind it. Minted
|
||||
# whether or not a hive runs; the `bao` wrapper presents it only when
|
||||
# none does.
|
||||
[ -s ${pkiDir}/operator.pem ] || ${signLeaf} ${pkiDir} operator \
|
||||
${lib.escapeShellArg deployCfg.bao.operatorCommonName} "" clientAuth
|
||||
|
||||
${lib.optionalString runsHive ''
|
||||
# This hive's gateway-leaf identity, which opens
|
||||
# `pki/issue/<hiveLeafPkiRolePrefix>-<hive>` and nothing else. Its
|
||||
|
|
|
|||
Loading…
Reference in a new issue