Validate Infra Changes
Use this as the pre-PR validation index. Deeper workflows live in the linked runbooks.
Docs and wiki
Build the wiki:
bun run --cwd apps/wiki buildCheck Logseq page links manually in the generated site when adding or renaming pages.
Nix and NixOS
Full flake check:
nix flake checkHost build:
nix build .#nixosConfigurations.<hostname>.config.system.build.toplevel --no-link
Kubernetes
Build the kustomization root that includes the changed file:
kubectl kustomize clusters/<cluster>/<category>For shared base changes, validate every consuming cluster:
kubectl kustomize clusters/folly/<category> kubectl kustomize clusters/offsite/<category>
Terraform
From the changed root:
terraform init -backend=false terraform validateFormat:
terraform fmt -recursive
Secrets safety
Do not put decrypted SOPS values, API tokens, passwords, private keys, or one-time tokens in docs, PR comments, logs, or screenshots.
A crude docs scan before publishing sensitive-adjacent runbooks:
rg -n "op item|--reveal|password|token|private key|BEGIN .*KEY" docs/pages
Tooling
Prefer
misefor portable validation tooling:mise installUse the Nix dev shell for NixOS-specific builds and formatters.
Linked references 1
Runbooks
Runbooks/Validate Infra Changes — validation commands by change area