nix: allSwarmServices turns on the review classifier
deploy.review-classifier.enable now defaults to allSwarmServices, as the
other shared services do, but only where the host has the classifier's
store identity (deploy.bao.reviewClassifierClient{Cert,Key}File). The
classifier module asserts that pair; glue-bao-tls.nix mints it only on the
host that runs the store, so a services host with the store placed
elsewhere would otherwise fail eval. An explicit value still wins.
The operator still writes the Anthropic key by hand; until then each run
fails with "no API key…" while the service runs.
This commit is contained in:
parent
ed15105e6f
commit
34bde7a5af
5 changed files with 67 additions and 24 deletions
|
|
@ -653,9 +653,13 @@ in
|
|||
`secret/swarm/services/review-classifier/anthropic-api-key`, field
|
||||
`api_key`.
|
||||
|
||||
Not derived from
|
||||
{option}`services.hyperhive.deploy.allSwarmServices`: every run spends
|
||||
money on that key, so running one is a decision of its own.
|
||||
On by default where
|
||||
{option}`services.hyperhive.deploy.allSwarmServices` is set and this
|
||||
host has the classifier's store identity (the pair
|
||||
{option}`services.hyperhive.deploy.bao.reviewClassifierClientCertFile`
|
||||
and `reviewClassifierClientKeyFile`, minted on the store's host). The
|
||||
key is never written for you: until the operator writes it the service
|
||||
runs and every run fails with "no API key…".
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue