Project

General

Profile

Actions

Task #3805

closed

Expand Vectra IaC test coverage and harden wrappers

Added by Fredrick Amnehagen 24 minutes ago. Updated 24 minutes ago.

Status:
Done
Priority:
High
Target version:
-
Start date:
2026-11-30
Due date:
% Done:

100%

Estimated time:
Spent time:

Description

Value: the Vectra deployment should be proven by tests that detect drift between the repo, the live LXC and the security assumptions, not just by a successful Ansible run.

Acceptance criteria:

  • Add offline tests for env.sh failure modes, script hygiene, rendered nginx/systemd/env semantics, OpenTofu LXC safety settings, cross-file VMID/IP/node/domain consistency, app env defaults and worker deployment.
  • Add opt-in live tests for rendered-file drift, effective nginx config, systemd hardening, pinned Python deps, models-dir writability, DHCP/MAC agreement, IPAM metadata, auth boundary, Authelia backend reachability and the app upload contract.
  • Fix issues the tests expose: swallowed credential lookup errors in env.sh, brittle HTTP status matching and missing DHCP/internal/Authelia checks in verify, and nginx version disclosure.
  • Re-apply Ansible, run verify and both test modes green.

MoSCoW: S. Points: 3. Follows #3803.

Actions

Also available in: Atom PDF