Groundwork for the app gate (item 1): before anything can enforce authentication on app ports, the node has to know which ports are *supposed* to be reachable without it. `PortMapping` grows `auth` (PortAuth::Session | None, defaulting to Session) and `auth_rationale`. The default is deliberately the protected one. Every app port on this node answered with no credential at all over LAN, Tailscale, Tor and the FIPS mesh alike — reproduced 2026-08-03 — precisely because exposure was what you got by saying nothing. Inverting the default means a new app is protected unless its manifest argues for an exemption. Validation makes the argument mandatory: `auth: none` without a rationale is rejected, and so is a rationale without `auth: none` (that combination means the author wrote an exemption and did not get one — shipping it silently would leave them believing otherwise). 17 ports across 12 apps are declared exempt, each with its reason. They are the ports that cannot sit behind an HTTP login page at all: Lightning p2p (BOLT-8 noise), LND gRPC/REST and CLN gRPC (macaroon / mutual TLS — Zeus and remote wallets dial these directly), Bitcoin p2p gossip, electrum wire protocol, Wyoming voice streams, git-over-SSH, and the UDP discovery protocols (mDNS, SSDP, STUN). Everything else — 39 published ports — now defaults to gated. Bitcoin's RPC 8332 is deliberately NOT exempted: it is already `bind: 127.0.0.1`, so the gate never sees it, and claiming an exemption it does not need would put a line in the audit list that means nothing. If the loopback bind is ever dropped, it fails closed. Two corpus tests keep this honest: every shipped manifest must parse under the new rules, and the exempt set is pinned at 17 so any change to the node's unauthenticated surface has to be a deliberate edit. Tests: 73/73 archipelago-container, workspace builds clean. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
74 lines
2.2 KiB
YAML
74 lines
2.2 KiB
YAML
app:
|
|
id: pine-piper
|
|
name: Pine Piper (TTS)
|
|
version: "2.2.2"
|
|
description: Wyoming-protocol Piper text-to-speech engine. Internal Pine voice-assistant stack member — gives Home Assistant Assist a natural voice for spoken responses on the PineVoice satellite.
|
|
category: home
|
|
|
|
# Hyphen name matches the runtime references (stack member table / startup
|
|
# order) + the live container, so on an existing node the orchestrator ADOPTS
|
|
# the running engine rather than recreating it (downloaded voices under /data
|
|
# preserved).
|
|
container_name: pine-piper
|
|
|
|
container:
|
|
image: docker.io/rhasspy/wyoming-piper:2.2.2
|
|
pull_policy: if-not-present
|
|
network: archy-net
|
|
network_aliases: [pine-piper]
|
|
# The image entrypoint already binds tcp://0.0.0.0:10200; this arg only
|
|
# picks the voice (mirrors the pine ha-stack.yml compose command).
|
|
custom_args: ["--voice", "en_GB-alba-medium"]
|
|
|
|
dependencies:
|
|
- storage: 1Gi
|
|
|
|
resources:
|
|
memory_limit: 512Mi
|
|
|
|
security:
|
|
# cap-drop=ALL is applied by the orchestrator. A plain Python Wyoming server
|
|
# on an unprivileged port needs no added capabilities.
|
|
capabilities: []
|
|
readonly_root: false # downloads the voice into /data on first run
|
|
no_new_privileges: true
|
|
network_policy: isolated
|
|
|
|
ports:
|
|
# Published so Home Assistant (on the pasta net) can reach the engine via
|
|
# host.containers.internal:10200 (the Wyoming integration endpoint).
|
|
- host: 10200
|
|
container: 10200
|
|
protocol: tcp
|
|
auth: none
|
|
auth_rationale: >-
|
|
Wyoming voice protocol, a binary local-only stream consumed by Home Assistant; not HTTP and not browser-reachable.
|
|
|
|
volumes:
|
|
- type: bind
|
|
source: /var/lib/archipelago/pine-piper
|
|
target: /data
|
|
options: [rw]
|
|
|
|
environment: []
|
|
|
|
health_check:
|
|
type: tcp
|
|
endpoint: localhost:10200
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 60s # first start downloads the voice
|
|
|
|
metadata:
|
|
author: Rhasspy / Home Assistant
|
|
icon: /assets/img/app-icons/pine.svg
|
|
website: https://github.com/rhasspy/wyoming-piper
|
|
repo: https://github.com/rhasspy/wyoming-piper
|
|
license: MIT
|
|
tags:
|
|
- home
|
|
- voice
|
|
- text-to-speech
|
|
- wyoming
|