lifeich1/nixcf / .agents/skills/nixcf-secrets-agenix
nixcf-secrets-agenix
VerifiedSafely audit or change Agenix-managed credentials and their runtime wiring in the nixcf repository. Use for secrets/default.nix declarations, secrets/secrets.nix recipient mappings, encrypted .age payload metadata, Xray settings, user password secrets, or the cross-layer Attic client/server/netrc credential path, including recipient changes, rotation planning, plaintext-to-Agenix migration, and credential leak remediation.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 8.8 KB |
| agents/openai.yaml | config | 229 B |
| references/repo-map-and-checks.md | markdown | 5.4 KB |
| scripts/check-nix-source-safety.shexecutable | script | 1.9 KB |
scripts/check-nix-source-safety.sh
View on GitHub#!/usr/bin/env bash
set -euo pipefail
repo_root=$(git rev-parse --show-toplevel 2>/dev/null) || {
printf '%s\n' 'BLOCKED: run this gate inside the nixcf Git repository.' >&2
exit 2
}
cd "$repo_root"
if ! command -v rg >/dev/null 2>&1; then
printf '%s\n' 'BLOCKED: rg is required for non-output structural checks.' >&2
exit 2
fi
blocked=0
tracked_plaintext_candidates=(
'os/atticd/atticd.env'
'host/nixos-pi4b/atticd.env'
'fool/attic/attic-client.toml'
)
for candidate in "${tracked_plaintext_candidates[@]}"; do
if [[ -e "$candidate" ]] && git ls-files --error-unmatch -- "$candidate" >/dev/null 2>&1; then
printf 'BLOCKED: tracked credential-bearing source remains: %s\n' "$candidate" >&2
blocked=1
fi
done
# Inspect fixed structural markers without emitting matching lines or values.
# host/common.nix was removed by the credential refactor; keep this regression
# guard so the inline-netrc pattern cannot silently return under that path.
if [[ -f host/common.nix ]] \
&& rg -q -- 'environment\.etc\.[^[:space:]]*netrc[^[:space:]]*\.text[[:space:]]*=' host/common.nix; then
printf '%s\n' 'BLOCKED: inline generated-file text in host/common.nix requires credential remediation.' >&2
blocked=1
fi
if [[ -f os/atticd/default.nix ]] \
&& rg -q -- 'source[[:space:]]*=[[:space:]]*\./atticd\.env' os/atticd/default.nix; then
printf '%s\n' 'BLOCKED: os/atticd still imports a plaintext credential candidate.' >&2
blocked=1
fi
if [[ -f fool/attic/default.nix ]] \
&& rg -q -- 'source[[:space:]]*=[[:space:]]*\./attic-client\.toml' fool/attic/default.nix; then
printf '%s\n' 'BLOCKED: fool/attic still imports a plaintext credential candidate.' >&2
blocked=1
fi
if ((blocked)); then
printf '%s\n' 'BLOCKED: do not run repo-consuming Nix eval, build, check, lock, activation, or deployment commands.' >&2
exit 1
fi
printf '%s\n' 'PASS: known nixcf plaintext-source blockers are absent; continue normal secret-safe review.'
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |