feat(nexus-db): PostgreSQL 16 + pgvector LXC template (nexus-hub K-102) #4

Merged
l.kirchner merged 2 commits from k102/nexus-db into main 2026-06-11 16:36:30 +02:00
Owner

Begleit-PR zu nexus-hub K-102.

  • ct/nexus-db.sh + install/nexus-db-install.sh nach webapp-Pattern
  • PGDG-Repo, DB nexus mit Least-Privilege-Rolle, pg_hba-Allowlist nur für den nexus-LXC (explizites reject sonst), pgvector vom Installer angelegt
  • idempotent; Credentials/DSN in /root/nexus-db.credentials
  • Codex-Review-Fixes: build.func-Source, Input-Validierung, Passwort-Rotation als Recovery

Anlegen nach Merge (auf PVE):
bash -c "$(curl -fsSL https://gitea.luki-net.org/luki-net/proxmox-scripts/raw/branch/main/ct/nexus-db.sh)"

Begleit-PR zu nexus-hub K-102. - ct/nexus-db.sh + install/nexus-db-install.sh nach webapp-Pattern - PGDG-Repo, DB nexus mit Least-Privilege-Rolle, pg_hba-Allowlist nur für den nexus-LXC (explizites reject sonst), pgvector vom Installer angelegt - idempotent; Credentials/DSN in /root/nexus-db.credentials - Codex-Review-Fixes: build.func-Source, Input-Validierung, Passwort-Rotation als Recovery Anlegen nach Merge (auf PVE): bash -c "$(curl -fsSL https://gitea.luki-net.org/luki-net/proxmox-scripts/raw/branch/main/ct/nexus-db.sh)"
l.kirchner added 2 commits 2026-06-11 15:56:28 +02:00
webapp-pattern ct/install pair: PGDG repo, database nexus with
least-privilege owner role, pg_hba allowlist restricted to the nexus
app LXC (explicit reject for everything else), pgvector created by the
installer, credentials/DSN summary in /root/nexus-db.credentials.
Idempotent re-runs keep role/db and do not rotate the password.
- source build.func (script was unrunnable without it)
- validate DB_NAME/DB_USER/DB_PORT/NEXUS_APP_IP before SQL/pg_hba use
- rotate password when role exists but credentials file is missing
l.kirchner merged commit e8bace387d into main 2026-06-11 16:36:30 +02:00
l.kirchner deleted branch k102/nexus-db 2026-06-11 16:36:30 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: luki-net/proxmox-scripts#4