Commit Graph
69 Commits
Author SHA1 Message Date
m3ta-chironandClaude Opus 5.5 dbbca559b1 feat(prm-1): Zeugnis-Tool Testversion mit Garage-S3
Frappe-v16-Stack des Zeugnis-Tools (Repo az-zeugnisse, Image
git.az-gruppe.com/az-intec-gmbh/zeugnisse:3afca87a286a) als oci-containers
im eigenen, gerouteten Podman-Netz zeugnisse (10.89.11.0/24; das Backend
braucht login.microsoftonline.com für SSO): MariaDB 11.8, Redis,
Backend, Websocket, Worker, Scheduler, nginx-Frontend auf 127.0.0.1:3061.

- zeugnisse-configure / zeugnisse-site: common_site_config, Site
  zeugnisse.l.az-gruppe.com einmalig anlegen (cloud_storage + zeugnisse,
  keine Demo-Daten), S3-Einstellung, migrate nach Image-Wechsel
- Garage 2.x nativ (services.garage), S3 nur lokal; garage-zeugnisse-init
  legt Layout, Bucket und den App-Schlüssel deklarativ aus zeugnisse-env an
- Traefik: zeugnisse.l.az-gruppe.com und s3.l.az-gruppe.com (vorsignierte
  Download-URLs); Container erreichen S3 über das Netz-Gateway
- tägliches MariaDB-Dump nach /var/backup/zeugnisse (03:20, 14 Tage)
- agenix: zeugnisse-env, garage-env (Zufallswerte); Registry-Login über
  atrocore-registry-token
- Ports: zeugnisse 3061, garage-s3 3900, garage-rpc 3901

Ausgewertet (nix eval toplevel), nicht ausgerollt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 11:01:46 +01:00
m3ta-chironandClaude Opus 5.5 2c8c04d800 fix(AZ-CLD-1): raise traefik readTimeout for large uploads
Traefik v3 defaults to a 60s readTimeout on entrypoints, which aborts
docker pushes of large layers over slow uplinks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 10:37:14 +01:00
m3ta-chiron e93ace9a6b fix(prm-1): drop OIDC extra from netbox social-auth-core
- Clear the openidconnect extra of social-auth-core for NetBox only, so python-jose (CVE-2026-120459, marked insecure) is no longer pulled in and evaluation no longer aborts
- Disable doCheck for that override, since its tests need the removed extras
- Scope the override to a dedicated unstable overlay used by NetBox, leaving other packages untouched
- Bump the m3ta-home flake input (3809d2e)
2026-11-14 12:21:53 +01:00
m3ta-chiron 178900685a feat(prm-1): add beads and agent-lib via cli.nix module
- Import agents/cli.nix into the PRM-1 home-manager config for headless agent CLIs
- Provide beads (bd) through the new module
- Move agent-lib out of home.packages and into cli.nix to avoid duplicate installs
2026-11-14 09:32:52 +01:00
m3tam3re f7505ef538 chore: updates 2026-11-13 20:45:11 +01:00
m3ta-chironandClaude Fable 5.1 7385db3b09 feat(prm-1): align agent userspace of sascha.koenig with AZ-LT-NIX
- Import the m3ta-home agent modules (mcp, claude-code, opencode,
  ai-memory, claude-skills) in hosts/AZ-PRM-1/home.nix instead of the
  hand-rolled claude-code/opencode packages; Claude Code and OpenCode get
  the shared MCP catalogue, ai-memory hooks/MCP/skills, LiteLLM/Z.AI
  providers and the m3ta-chiron git identity
- Expose the flattened llm-agents packages additionally as pkgs.llm-agents
  so m3ta-home modules and the t3code-agent-identity overlay work here
- Apply m3ta-home's t3code-agent-identity overlay (T3 agents commit as
  m3ta-chiron), t3code service uses the wrapped module default package
- agent-lib-sync timer calls claude-skills-sync from the user profile
  instead of duplicating the link logic
- Secrets for AZ-PRM-1 (same values as AZ-LT-NIX): ai-memory-token,
  agent-gitea-token-{m3ta,az}; exa-key/ref-key now owned by sascha.koenig
- flake.lock: m3ta-home -> f4ab2ab (Claude MCP integration, PR #9)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-10 20:16:23 +01:00
m3ta-chiron cddb3c33d8 feat(prm-1): add T3 Code server and agent-lib skill sync
- Run T3 Code as a systemd service on AZ-PRM-1, reachable on the NetBird interface (port 3773), with its token in the agenix secret t3code-env
- Install claude-code, opencode, agent-lib and t3code in the sascha.koenig home profile on PRM-1
- Add an hourly agent-lib-sync timer that pulls skills and agents from agent-prod and links skills into ~/.claude/skills
- Add the numtide llm-agents binary cache to nix settings so the agent packages are not built locally
- Add a compat option shim for programs.nushell.loadSessionVariables until home-manager is upgraded to 26.11
- Update flake.lock inputs
- Remove the manual wartungsmodus rollout guide from docs/deploy
2026-11-09 07:51:33 +01:00
sascha.koenig 912e7617c1 fix: drop_params setting LiteLLM 2026-10-29 13:52:47 +01:00
sascha.koenig 348af752a6 chore: baserow + litellm update 2026-10-29 07:51:44 +01:00
sascha.koenig 7271ecb3d3 chore: kestra upgrade 2026-10-27 14:20:57 +01:00
sascha.koenig e0de8f5ace chore: security updates 2026-10-22 11:57:03 +02:00
sascha.koenig 6609dbfdc9 chore: update zammad 2026-10-15 19:45:49 +02:00
sascha.koenig b7aea9174d fix: netbird DNS 2026-10-09 05:04:41 +02:00
sascha.koenig 45d7d3b181 fix: postgres balancing / limit meilisearch memory usage 2026-10-08 14:36:07 +02:00
sascha.koenig d6f64186e2 chore: first step metabase migration 2026-10-06 12:00:23 +02:00
m3ta-chiron 0aa991ce5a fix(wartungsmodus): nginx-Absicherung, Registry-Validierung, Guide-Blackbox-Hinweis, stale Kommentar 2026-10-03 16:06:25 +02:00
m3ta-chiron 71c5dc206e feat(wartungsmodus): error-pages-Middleware in alle PRM-1-Nutzer-Router verkabeln
- 19 user-facing Router in 16 Modulen um middlewares = ["error-pages"]
  ergaenzt (502-504 -> Wartungsseite, analog CLD-1-Bestand):
  azess, azion-scheduler, bpi, n8n, pgadmin, phishboard, netbox (app +
  static), prtg/AZHA/AZDESK, grafana, technitium-dns, semaphore, kestra,
  online3dviewer, atrocore, stirling-pdf, excalidraw
- Dokumentierte Ausnahmen (Kommentar am Router, Policy aus Brief):
  r.l-Dashboard (api-Router, Kontrollflaeche) und loki-push
  (Prometheus/Alloy brauchen echte Statuscodes) — bestehende
  Middleware-Listen unangetastet
- Traefik errors-Middleware haelt den Original-Status 502-504 bei
  (keine statusRewrites) -> Blackbox-http_2xx-Probes auf g/wf/k/sem
  melden weiterhin Ausfaelle, keine zusaetzliche Metrik-Ausnahme noetig
- Verifikation: nix eval aller 3 Hosts sauber; Router-Inspektion per
  jq bestaetigt 19x error-pages, api=auth, loki-push=loki-basic-auth
2026-10-03 15:35:13 +02:00
m3ta-chiron 2e9db9dfa1 feat(wartungsmodus): AZ-PRM-1 aktivieren + vollständige Registry (18 Dienste)
- extraServices.maintenance.enable + notify.url https://ping.az-gruppe.com (Q7)
- Selbstanmeldung (Q3) in allen 16 Router-Modulen, 18 Einträge:
  traefik-routing.nix bündelt prtg/home-assistant/azdesk
- Bewusst unregistriert (Policy): r.l (Traefik-Dashboard), loki-push
- error-pages-Verkabelung der Router bleibt Ticket 05 (AZ-NIX-9m4)
2026-10-03 15:27:04 +02:00
m3tam3re 56d0262065 fix: NetBox-4.7-Plugin-Kompat (qrcode 1.0.0, floorplan 0.10.0) + flake update
netbox-qrcode und netbox-floorplan-plugin deklarieren max. NetBox 4.6.x und
laden unter NetBox 4.7 nicht - beide auf die ersten 4.7-kompatiblen Releases
gehoben (s. COMPATIBILITY.md der jeweiligen Repos). Flake-Inputs aktualisiert.
2026-10-03 15:22:28 +02:00
m3ta-chiron 03db8d91cb feat(wartungsmodus): AZ-CLD-1 auf zentrales Wartungsmodus-Modul umstellen (Migrate)
Aktivierung per extraServices.maintenance.enable = true in der
Host-Konfiguration; extraMap fuer die Nicht-Registry-Domains
p.az-gruppe.com (NetBird) und r.az-gruppe.com (Traefik) zur Erhaltung
des Anzeige-Zustands der Wartungsseite.

Alle 16 Registry-Einträge der alten Liste wandern als Selbstanmeldung
(m3ta.maintenance.services.<name>, Q3) 1:1 in die Dienst-Module, die
auch den zugehoerigen Traefik-Router definieren: git (gitea), kpi
(metabase), wf (n8n), ping (ntfy), wiki (outline), pw (vaultwarden),
am (snipe-it), pg (postgres, pgAdmin-Router), dash (homarr), tools
(it-tools), baserow (3 Domains), chat (librechat), chat-dev
(librechat-dev), llm (litellm), tickets (zammad-hr), netbird
(containers/netbird).

Null-Verhaltensaenderung (Q11): Port 3090, Router-YAML-Format und
/var/lib/traefik/dynamic + /var/lib/maintenance unberuehrt; ntfy- und
TLS-Defaults entsprechen dem Status quo (keine Overrides gesetzt).
Verifikation: Eval aller 3 Hosts sauber, Registry-Abgleich alt/neu
identisch (16 Eintraege).
2026-10-03 15:15:15 +02:00
m3ta-chiron 842c5ca5d1 refactor(wartungsmodus): altes CLD-1-Wartungsmodus-Modul entfernen (Contract-Phase)
Import aus hosts/AZ-CLD-1/services/default.nix entfernen und das
host-lokale Verzeichnis services/maintenance (default.nix, README.md,
www/) loeschen — die generalisierte Fassung lebt ab jetzt im
Shared-Modul hosts/common/extraServices/maintenance (Ticket 01).

Contract-Phase vor der Aktivierung, damit es nie einen Zustand mit
zwei aktiven Wartungsmodus-Modulen gibt.
2026-10-03 15:15:04 +02:00
m3ta-chiron 74ffab146e feat: zentrales Wartungsmodus-Modul unter hosts/common (Expand, inaktiv)
Generalisiert das AZ-CLD-1-Wartungsmodus in ein shared Modul
hosts/common/extraServices/maintenance/ — Optionen global deklariert
(alle Hosts inkl. AZ-PLT-1), Konfiguration komplett hinter mkIf enable,
auf keinem Host aktiviert (Expand-Phase, CLD-1-Bestand unberührt).

- Optionen: m3ta.maintenance.services (selbstanmeldende Registry,
  attrsOf submodule), notify {url,topic}, tls (attrsOf str|listOf str,
  Default certResolver=ionos, byte-kompatibel ins Router-YAML),
  contact, extraMap; extraServices.maintenance.enable (mkEnableOption)
- CLI: Usage-Header mit echtem Hostnamen, neu status --json
  (stabiles Format v1), Registry als generiertes TSV
- www: service-map.js Build-Zeit-generiert aus Registry+extraMap,
  Kontaktzeile aus Option, index.html gemeinsam gepflegt
- Traefik-Verdrahtung wie Bestand (Service, error-pages 502-504,
  Directory-Provider watch=true, 00-base.toml per preStart)
- Assertion bei Aktivierung ohne services.traefik.enable
2026-10-03 14:57:50 +02:00
m3ta-chiron cff5600659 feat: Wartungsmodus fuer einzelne Dienste auf AZ-CLD-1
- Freundliche Wartungsseite (AZ-Branding, eingebettetes Logo, Auto-Reload,
  Dienst-Erkennung per Hostname) unter services/maintenance/www/
- nginx auf 127.0.0.1:3090 liefert die Seite mit 503 + Retry-After +
  no-store fuer alle Pfade
- Traefik: File-Provider auf ueberwachtes Verzeichnis /var/lib/traefik/dynamic
  umgestellt (staticConfigFile-Override); Basis-Konfig wird per preStart als
  00-base.toml hineingelinkt
- maintenance-CLI (on/off/status/list): schaltet pro Dienst Router mit
  Prioritaet 1000 auf den Wartungs-Service, wirksam in ~1-2 s ohne Rebuild
- Auto-Aus per transientem systemd-Timer (Default 4 h) + stuendlicher
  Expiry-Sweep als Reboot-Nachversicherung
- ntfy-Push bei on/off (opt-in via Token-Datei)
- errors-Middleware error-pages (502-504) an allen HTTP-Routern: Auch bei
  ungeplanten Ausfaellen erscheint die Wartungsseite statt Traefik-Standardfehler
2026-10-02 11:13:48 +02:00
sascha.koenig bdabf81e5f + AZ-PLT-1 2026-10-02 09:01:55 +02:00
sascha.koenig 30dbc0a8a2 fix: add SWAP to AZ-PRM-1 2026-09-08 10:55:38 +02:00
sascha.koenig ef563f1ce1 feat: enable n8n AI assistant AZ-PRM-1 2026-09-08 10:45:26 +02:00
m3ta-chiron 518671948c fix: public DNS for semaphore container (galaxy AAAA-only via corporate DNS) 2026-08-24 08:16:50 +02:00
m3ta-chiron a245e97136 feat: Semaphore UI on AZ-PRM-1 (AZ-NIX-4ux) 2026-08-24 06:43:28 +02:00
sascha.koenig 7595e7c9c8 chore: flake update, pgbouncer SSL fix 2026-08-20 12:36:16 +02:00
sascha.koenig f06c9164e8 fix: default podman network 2026-08-17 14:20:09 +02:00
m3ta-chiron 6c9cb7b0e7 fix: atrocore-env ownership for atrocore-db-init (AZ-NIX-ava.2)
First deploy failed: atrocore-db-init (User=postgres) could not read
/run/agenix/atrocore-env because agenix defaults to root:root:0400.
Follow the pg-cert/pg-key precedent: owner/group postgres, mode 0400.
Podman still reads the env-file and registry token as root (root
bypasses DAC), container pull/run unaffected. Agenix applies
ownership at activation time - no rekey needed. Validated on AZ-PRM-1.
2026-08-17 14:16:09 +02:00
m3ta-chiron f1481dc256 feat: AtroPIM deployment config for AZ-PRM-1 (AZ-NIX-ava.2)
- port registry: atrocore = 3058
- oci-container atrocore: Gitea-registry image, 127.0.0.1:3058:80,
  web network, static ip 10.89.0.16, db alias to host pg, env-file
  from agenix, named volume for instance data, registry login via
  token secret
- agenix secrets: atrocore-env (ATRO_DB_*) + atrocore-registry-token,
  age-encrypted to AZ-PRM-1 + user, non-interactive creation
- host postgres 17: idempotent atrocore-db-init oneshot (psql peer,
  secret only at runtime), pg_hba 10.89.0.0/24 scram-sha-256,
  atrocore in 03:10 backup list
- traefik: pim.l.az-gruppe.com -> localhost:3058 (ionos, websecure)
2026-08-17 13:45:21 +02:00
sascha.koenig 5132a4de2f feat: change zammad domain 2026-08-15 09:33:28 +02:00
m3tam3re f8f0d0eba3 feat: pgbounce, librechat upgrade, homarr 2026-08-08 15:37:50 +02:00
sascha.koenig a97e87944b fix: baserow 2026-08-08 07:34:05 +02:00
sascha.koenig 165ac75ba9 fix: enable netbird agent network on existing proxy
Agent Network needs NB_PROXY_PRIVATE=true on the single existing
reverse-proxy, not a separate container. The previous standalone
an-proxy had no TLS cert (removed certs volume + ACME) and crashed
with 'open certs/tls.crt: no such file', so its overlay peer IP
(100.91.226.149) never came up and drop.p.az-gruppe.com timed out.

The auto-generated endpoint under the existing *.p.az-gruppe.com
wildcard (drop.p.az-gruppe.com -> overlay peer IP via MagicDNS) is
the correct URL; the invented a.az-gruppe.com had no DNS.

- set NB_PROXY_PRIVATE=true on netbird-proxy (keeps ACME + certs)
- remove standalone netbird-an-proxy container, anProxyIp, anProxyDomain
- drop netbird-an-proxy-env secret (nix refs + age file)
2026-08-04 12:47:23 +02:00
sascha.koenig bdfeb1f36c chore: bump baserow 2.3.3, litellm 1.95.0, flake inputs 2026-08-04 09:37:57 +02:00
sascha.koenig f7a5eeefa1 feat: netbird agent network private proxy
Add dedicated NB_PROXY_PRIVATE=true reverse-proxy (netbird-an-proxy)
serving agent-network synth endpoints over the WireGuard overlay only.
Configured via NB_PROXY_* env vars, no domain/ACME/Traefik/host port.
Register netbird-an-proxy-env secret.
2026-08-04 09:37:51 +02:00
m3tam3re e836b23c66 +phishboard 2026-07-16 16:35:58 +02:00
sascha.koenig d58173760d fix: litellm -> grafana 2026-07-13 10:32:34 +02:00
sascha.koenig 8d57aa4bc0 feat: grafana loki 2026-07-10 13:10:58 +02:00
sascha.koenig b800bfe08b use grafana default message for ntfy alerts 2026-07-09 21:17:17 +02:00
sascha.koenig ff9fce1875 chore: baserow to 2.3.0 2026-07-09 21:13:16 +02:00
sascha.koenig 2e316813f5 render all grafana alert annotations in ntfy 2026-07-09 21:11:03 +02:00
sascha.koenig b8cd1c421c include grafana alert annotations in ntfy messages 2026-07-09 21:04:46 +02:00
sascha.koenig 4c09725317 format grafana ntfy alerts 2026-07-09 20:46:07 +02:00
sascha.koenig 4c69d2476a monitor kestra with prometheus alerts 2026-07-09 20:38:19 +02:00
sascha.koenig 61fe3f4338 feat: prometheus + grafana 2026-07-09 13:25:15 +02:00
sascha.koenig 800a78848d fix: zammad startup restart-always 2026-07-01 06:30:39 +02:00
sascha.koenig 10b778fa8e + 3dviewer 2026-06-26 09:19:34 +02:00