Created via the Gitea API (POST /repos/dtoro/Homelab-Docs/hooks) rather than the UI, since the existing PAT turned out to have sufficient scope. Webhook id 14: http://192.168.8.205:9831/deploy, push events, main branch filter, active. The shared secret was generated and registered with Gitea before the apps-side bootstrap ran (order reversed from the usual install.sh-first flow, since direct SSH deploy to apps is still pending operator execution — see oikos/console/deploy/README.md). Stored as secrets/oikos-console-deploy-secret.yaml (SOPS, recipient: apps only) rather than left as a local plaintext file, with explicit operator sign-off. When the apps-side install runs, skip webhook/install.sh's random-secret generation and write this exact value into /etc/oikos-console-deploy/secret instead. infrastructure/auto-deploy.md updated with the real webhook id (was "not yet registered"). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
3.9 KiB
Oikos Console — deploy notes
Deploys the same way homelab-mcp and secrets-issuance already do:
Shape B webhook (own checkout, own systemd units, own deploy secret) on
LXC 105 (apps), reading HOMELAB_CONTEXT_DIR=/opt/homelab-context for
all data. See infrastructure/auto-deploy.md
for the general pattern; webhook ids 10 (homelab-mcp, :9811) and 11
(secrets-issuance, :9821) are the direct precedent — this is a third
webhook on dtoro/Homelab-Docs, port :9831.
Status (2026-07-06)
- Gitea webhook: done. Registered via the Gitea API as webhook id
14 (
http://192.168.8.205:9831/deploy,pushevents,mainbranch filter, active). See infrastructure/auto-deploy.md. - Console deploy on apps (105): not yet done. Direct SSH bootstrap
was withheld pending explicit operator execution — see "One-time
setup" below. Important: webhook 14's secret was generated and
registered with Gitea before the apps-side install (order reversed
from the usual flow). It's encrypted at
secrets/oikos-console-deploy-secret.yaml(recipient: apps only). When you runwebhook/install.shbelow, skip its random-secret generation — instead runhomelab secret oikos-console-deploy-secreton apps and write thewebhook_secretvalue into/etc/oikos-console-deploy/secretyourself. - Caddy route: not yet done.
- DNS entry: not yet done.
One-time setup on apps (105)
git clone https://git.hubris.network/dtoro/Homelab-Docs.git /opt/oikos-console
cd /opt/oikos-console
./oikos/console/deploy/deploy.sh # first install
./oikos/console/deploy/webhook/install.sh # generates a NEW secret by default —
# see "Status" above before running this
systemctl enable --now oikos-console.service oikos-console-deploy.service
Caddy route — NOT in this repo, needs manual addition to dtoro/caddy-conf
The console binds 127.0.0.1:8091 on apps only (see oikos-console.service —
ProtectSystem=strict, no LAN listener); Caddy on LXC 121 reaches it via
apps' LAN IP, not loopback (they're different hosts). Site block,
forward-auth gated the same way other LAN-only services are (confirmed
syntax per containers/121-caddy.md: import authentik, no parens in
the import statement itself — the snippet is defined as (authentik)
but imported as authentik):
oikos.hubris.network {
import authentik
reverse_proxy 192.168.8.205:8091
}
Add oikos.hubris.network to the split-horizon DNS zone (Technitium,
LXC 107) pointing at Caddy's LAN IP, same as every other *.hubris.network
host.
Authentik step-up re-auth on approval actions — deferred, needs live Authentik
The Week-4 plan calls for the /approvals/{id}/reply POST specifically
to require fresh re-authentication (not just an existing session), so a
stolen session cookie can't approve a mutation. That's an Authentik
policy binding (a PromptStage/reauth flow scoped to that path), which
needs a live Authentik instance to configure and test — not buildable or
verifiable from a repo checkout alone. Today the whole console (including
this route) is protected the same way every other console-with-a-forward-
auth-gate service is: the ingress-level Authentik check, not a per-action
step-up. Tracked in the 60/90-day backlog (OIKOS.md).
What this deploy does NOT do
- Does not run any
homelabcommand directly. Approving in the console issues a grant token exactly like approving via Matrix would — actually executing the gated action still goes through thehomelabCLI on whichever host runs it, with--approval-id. - Does not touch inventory.yaml, secrets/, or anything outside
signals/ and approvals/ (both committed+pushed immediately on write,
see
oikos/console/app.py's_commit_push()).