Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ deploy-bootstrap: ## First-deploy host bootstrap [CONTROLLER_IP=x.x.x.x]
$(ANSIBLE_RUN) playbooks/site.yml $(ANSIBLE_FLAGS) -e bootstrap_mode=true $${EXTRA_E}

deploy-hardening: ## Deploy full OS hardening L1+L2 (site.yml) [TARGET=<host>]
@echo "=== Full Hardening (L1 Baseline + L2 Compliance/Zero Trust) ==="
@echo "=== Full Hardening (L1 Baseline + L2 Compliance/Private Mesh) ==="
$(ANSIBLE_RUN) playbooks/site.yml $(ANSIBLE_FLAGS)

deploy-engine: ## Deploy hardened Docker Engine runtime (L6) [TARGET=<host>]
Expand Down
6 changes: 3 additions & 3 deletions playbooks/_shared/overlay_preflight.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
# ==============================================================================
# OVERLAY PRE-FLIGHT - Zero Trust transport check (SSOT)
# OVERLAY PRE-FLIGHT - Private mesh transport check (SSOT)
# ==============================================================================
# Reusable include for l3/l6/ops playbook pre_tasks.
#
# WHY THIS FILE EXISTS:
# This assert was previously copy-pasted (with drift) across 7 playbooks.
# It lives here so every playbook validates the exact same Zero Trust
# It lives here so every playbook validates the exact same private mesh
# invariant: ansible_host MUST be a Tailscale overlay IP inside
# tailscale_subnet. Public bootstrap access is only permitted in site.yml.
#
Expand All @@ -32,7 +32,7 @@
~ (tailscale_subnet | quote)
) == 'True'
fail_msg: >-
Zero Trust violation on {{ inventory_hostname }}: this playbook only allows
Private mesh violation on {{ inventory_hostname }}: this playbook only allows
connections through the management overlay using ansible_host inside
{{ tailscale_subnet }}. Public bootstrap access is only permitted in site.yml.
success_msg: >-
Expand Down
2 changes: 1 addition & 1 deletion playbooks/l2/hardening.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
tags: [tailscale, l2-compliance, acl, security]

tasks:
- name: "Configure Tailscale ACLs (Zero Trust Network Policies)"
- name: "Configure Tailscale ACLs (Private Mesh Network Policies)"
when:
- groups['brain'] is defined
- groups['brain'] | length > 0
Expand Down
2 changes: 1 addition & 1 deletion playbooks/ops/nuke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# - Protected paths are never deleted.
# - Nuke is blocked for hosts in inventory group 'production'.
# - Remote connectivity always respects inventory 'ansible_host'.
# - In a Zero Trust setup, nuke/stacks operations must run over Tailscale.
# - In a private mesh setup, nuke/stacks operations must run over Tailscale.
# ==============================================================================

- name: Nuke Developmi Hardened managed infrastructure
Expand Down
2 changes: 1 addition & 1 deletion playbooks/ops/reboot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Performs an audited, graceful reboot of managed hosts with serial: 1
# to prevent cluster downtime. Automatically polls the host until SSH
# is responsive, applies post-reboot settle delay, and verifies critical
# system daemons, Zero Trust connectivity, and running containers.
# system daemons, private mesh connectivity, and running containers.
# ==============================================================================

- name: "Ops | Controlled Rolling Reboot"
Expand Down
5 changes: 2 additions & 3 deletions roles/L2_compliance/general/tasks/security/nftables_rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
that:
- 2019 not in allowed_ports
- 2020 not in allowed_ports
fail_msg: "CRITICAL: Caddy admin API (2019) / Prometheus API (2020) found in allowed_ports. These control-plane ports are denied on all interfaces (zero-trust, contract §6/M1)."
fail_msg: "CRITICAL: Caddy admin API (2019) / Prometheus API (2020) found in allowed_ports. These control-plane ports are denied on all interfaces (private mesh)."
tags: [l2-hardening]

# ponytail: nf_conntrack may not be auto-loaded on minimal installs,
Expand Down Expand Up @@ -102,11 +102,10 @@
tcp dport {{ port }} accept
{% endfor %}

# Deny Caddy admin + Prometheus API on ALL interfaces (zero-trust).
# Deny Caddy admin + Prometheus API on ALL interfaces (private mesh).
# Must precede the Docker bridge accept below: it closes the
# container -> host path to a host-bound 0.0.0.0:2019 admin API
# (systemd/bare-metal deployments). The admin API accepts config
# POSTs (contract §6/M1).
tcp dport { 2019, 2020 } drop

# Docker bridge internal
Expand Down
2 changes: 1 addition & 1 deletion roles/L2_compliance/general/tasks/tailscale/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Validate required secrets and input formats
# ------------------------------------------------------------------------------

- name: Enforce Tailscale ACL OAuth secret presence (Zero Trust requirement)
- name: Enforce Tailscale ACL OAuth secret presence (Private Mesh requirement)
ansible.builtin.assert:
that:
- tailscale_acl_key is defined
Expand Down
2 changes: 1 addition & 1 deletion roles/L4_networking/caddy/templates/Caddyfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
respond @sensitive_paths "Forbidden" 403
}

# ── Zero Trust VPN restriction ────────────────────────────────────────
# ── Private Mesh VPN restriction ──────────────────────────────────────
(vpn_only) {
@denied_vpn {
not remote_ip {{ tailscale_subnet }} 127.0.0.1/8 ::1
Expand Down
Loading