cli.administration.inventory.onion packageΒΆ
Module contentsΒΆ
Node Tor v3 onion identity for the harness.
ensure_node_onion() pre-mints (or reuses) the nodeβs onion and returns its
address, storing the authoritative hidden-service key files at the repo root. The
svc-net-tor role copies those keys into the running daemon so it serves exactly
that address; the inventory provisioner writes the address into
applications.svc-net-tor.services.tor.node. The onion is a deploy-time input;
there is no in-deploy minting (a random mint would not match the provisioned node).
- cli.administration.inventory.onion.ensure_node_onion(base_dir: str | Path) strΒΆ
Mint (or reuse) the node onion identity and return its
.onionaddress.Dual-stack model: the node keeps its clearnet
DOMAIN_PRIMARY; the node onion is an ADDITIVE address opted-in apps (services.tor.enabled) are also reachable under as<sub>.<node-onion>over Tor. Idempotent: an existing key at<base_dir>/.onion-identity/hsis reused so the address is stable across runs. The key files are the single source of truth β thesvc-net-torrole copies them into the daemon so it serves exactly this address, and the inventory provisioner writes the returned address intoapplications.svc-net-tor.services.tor.node(no env indirection).
- cli.administration.inventory.onion.identity_hs_dir(base_dir: str | Path) PathΒΆ
Authoritative hidden-service key dir (
<base_dir>/.onion-identity/hs).Single source of truth for the nodeβs onion identity:
ensure_node_onionmints/reuses the key files here and thesvc-net-torrole copies them into the running daemon. Lives outside anything the deploy regenerates and is mounted into the DiD at{playbook_dir}/.onion-identity/hs.