Repository navigation
Description
Problem or Motivation
After plan step 14 of the homelab migration (#5120, phase 2), the real hosts are in homelab files at the same paths as the devops-cli files. Agents copy text between the two trees. The existing guard, tests/invariants/test_committed_addresses.py, refuses RFC 1918 addresses and .lan hosts only. No check reads the settings k8s.domain or cloudflare.domain. So a diff that names the configured public domain passes each check and can go into the public repository.
Proposed Solution & Architectural Design
Step 8 of the corrected plan on #5120, together with #5134 step 2. One pull request in devops-cli.
- Add a local check to the pre-push hook or to
devops ci. The check readsk8s.domainandcloudflare.domainfrom the local config at run time. - The check refuses a diff that names one of these domains, and names the file and the line. It never prints the value.
- The value never goes into git: no fixture, no test data and no output holds it. A test sets a placeholder domain such as
example.netin its own config. - If no domain is configured, the check passes and says that it checked nothing.
- Public evidence, such as a pull request comment, holds exit codes and counts only. It never holds
argocd app diffoutput or Application YAML, because the live objects hold the real hosts.
Check. The guard refuses a test diff that names the configured domain. It passes a diff that names example.com only. uv run devops ci passes.
Rollback. git revert.
Downtime. None.
Order and dependencies. Plan step 8. It has no open dependency. It must merge before the copy (dan-petty/homelab#23, plan step 9) and before plan step 14 puts the hosts into homelab git. A person merges.
Target Subsystem
Security & Vulnerability Scanners
Existing Tool Considered
gitleaks, which the project already runs (devops_cli.security.gitleaks), refuses a pattern with a custom rule. The check can write that rule at run time to a file in a temporary directory, so the value never goes into git. A plain search of git diff for a fixed string is the other option. The plan of this item picks one. Cost: about 1M tokens to build, 0.1M a quarter to keep, 2 hours.
Source: #5120
Activity
dan-petty commentedon Nov 13, 2026
Both prevent sensitive values in the public repo; #1977 checks RFC 1918 addresses and .lan hosts, the candidate checks configured domains from k8s.domain and cloudflare.domain.devops-cli-service commentedon Nov 13, 2026
Released in v0.126.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.126.0
devops-cli-service commentedon Nov 13, 2026
Live since 2026-11-13 04:03 UTC