š Local Sovereignty Law
The Instructor's Perspective
In any complex system, thereās a constant battle between āAutomated Managementā and āManual Signal Discipline.ā This law ensures that our manual tactical overridesāthe things we had to do by hand to fix a broken bridgeāare never wiped out by a generic automation script or a system update. We are the masters of our own āmanageable mess.ā
1. The Core Mandate
Manual āSafeguardsā applied by the NetYeti or his Council must be persistent. Any automated tool or script that modifies system configuration must first check for the presence of these manual markers or use idempotent logic that preserves them.
Zero-Bake Exception: While we avoid hardcoding secrets, we do hardcode āSovereign Targetsā (like interface names) to ensure consistent behavior across nodes.
2. Protected Assets (The Sovereign List)
The following assets are under Sovereignty Protection:
š” Network Layer
- WireGuard AllowedIPs: Specific tunnel subnets (e.g.,
10.0.0.0/24) must be present in theallowed-ipslist for the Phoenix tunnel. This allows tactical reach-back to the Internal management network. - Interface Naming: The Phoenix VPN interface must ALWAYS be named
wg-phoenix. This ensures monitoring and firewall rules remain consistent even if NetworkManager renames the device. - Dynamic Netplan Discovery: The enforcement logic must dynamically find the correct Netplan file by searching for the āPhoenixā name, avoiding fragile reliance on hardcoded UUID-based filenames.
š° Hypervisor Integrity
- No Docker on PVE Hosts: To maintain the stability of the Proxmox (PVE) kernel and networking stack, Docker must never be installed on a host node (e.g.,
frank,pve,pve2). All containerized services must run in isolated VMs or LXCs.
š DNS Layer
- DNS Overrides: Manual
/etc/hostsentries used to bypass circular dependencies (like the BMS Bitwarden link) must be preserved.
š Access Layer
- SSH Wildcards: Wildcard configurations in
~/.ssh/config(e.g.,Host bms *.bms) must be persistent to provide tactical reach-back capability. - Local Key Parity: Authorized keys synced across the council must not be pruned by automated ācleanupā scripts.
3. Enforcement Mechanism
We use the enforce-sovereignty.sh Power to audit and restore these safeguards.
- Idempotent Patching: The script uses āsearch-and-ensureā logic rather than destructive overwrites.
- Automatic Restoration: If a breach is detected (e.g., interface renamed, entry missing), the script restores the safeguard and applies the changes (e.g.,
netplan apply). - Scheduling: This power is hard-wired into the
crontabto run hourly and @reboot, ensuring the forest āself-heals.ā
4. Teachable Moment: Idempotency & Signal Strength
āIdempotencyā means that running a command multiple times has the same effect as running it once. Our sovereignty scripts should be idempotentāthey should ācheck for the signalā before āapplying the fix.ā This prevents āflappingā configurations and ensures that we only intervene when a safeguard has actually been breached.
5. External Tool & Script Interdiction (The Guardrail Law)
As we integrate more automated tools and AI-generated scripts into our Powers, we must maintain strict signal purity.
- No Destructive Overwrites: No externally sourced or AI-generated script is permitted to remove, disable, or overwrite a manual safeguard or a Local Sovereignty setting.
- Approval Mandate: Any script that touches networking, DNS, or access layers must be audited by the NetYeti before it is integrated into a persistent cron job or automated workflow.
- Safeguard Persistence: If an external tool attempts to reset a configuration (e.g., clearing
iptables, resetting/etc/hosts, or renaming interfaces), theenforce-sovereignty.shPower MUST be capable of detecting and reversing that change immediately. - Loophole Awareness: Watch for tools that use ātransientā configurations (like
ip addrvsnetplan) which might bypass persistent file-based audits. Sovereignty applies to the runtime state, not just the configuration files.
Related: SOP - Updating the Home Lab, The PACE Plan, Enforcement Script