agentleFS
evolplusevolplus/talos/skills/secrets-config-audit/SKILL.md

secrets-config-audit

Skill9 starsChanged 6 months agoApache-2.0View on GitHub

Audit secret and runtime configuration readiness without exposing values. Use when DevOps must verify required env vars, config maps, secret injection, rotation status, registry/cloud credentials, SSH/Kubernetes credential references, safe templates, and redacted deploy-report config evidence.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill before any deployment that depends on runtime configuration, secrets, environment files, registry credentials, cloud …

    line 14
  2. Very specific:

    Collect declared keys: Read SRS/architecture config contracts and safe templates (.env.example, .env.template, .env.sample) for key names, …

    line 23
  3. Very specific:

    Detect secret-bearing files by status only: Check presence/path of .env*, .ssh/, .k8s/*config*, .docker/config.json, kubeconfigs, and …

    line 24
  4. Distinctive:

    Check non-secret config: Verify public endpoints, feature flags, regions, log levels, and build/runtime config are represented in templates …

    line 26
  5. Distinctive:

    Never read, print, copy, summarize, or diff secret values.

    line 33
  6. Very specific:

    Never run commands that dump credential material, including full docker compose config, kubectl config view --raw, env, or printenv on …

    line 34
  7. Very specific:

    Never create .env* or credential files for the operator.

    line 35
  8. Distinctive:

    Never mark config ready when required key names are missing from templates/contracts or injection paths are unknown.

    line 36
  9. Distinctive:

    Never place secret values in deploy reports.

    line 37

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Secrets Config Audit

When to use

Use this skill before any deployment that depends on runtime configuration, secrets, environment files, registry credentials, cloud credentials, SSH, Kubernetes, or external service keys.

Inputs and outputs

  • Inputs: SRS environment contract, architecture config section, safe env templates, deploy mechanism, secret manager references, target environment, and required service integrations.
  • Outputs: redacted config readiness verdict, missing key names, unsafe storage findings, rotation/owner notes, and deploy-report config fields.

Procedure

  1. Collect declared keys. Read SRS/architecture config contracts and safe templates (.env.example, .env.template, .env.sample) for key names, owners, required environments, and secret classification.
  2. Detect secret-bearing files by status only. Check presence/path of .env*, .ssh/, .k8s/*config*, .docker/config.json, kubeconfigs, and credential files without reading contents.
  3. Verify injection path. Confirm each secret has a source: secret manager, Kubernetes Secret/ExternalSecret, CI/CD variable, operator-managed env file, or documented runtime injection.
  4. Check non-secret config. Verify public endpoints, feature flags, regions, log levels, and build/runtime config are represented in templates and deployment manifests.
  5. Look for unsafe patterns. Flag secrets in committed manifests, plain values in docs, full docker compose config output, kubeconfig dumps, copied .env, or hardcoded credentials.
  6. Assess rotation/ownership. Record owner and rotation expectation by secret name or category only. Do not ask the model to inspect values or token ages unless metadata is available without secrets.
  7. Emit verdict. pass, pass-with-warnings, or blocked.

Hard rules

  • Never read, print, copy, summarize, or diff secret values.
  • Never run commands that dump credential material, including full docker compose config, kubectl config view --raw, env, or printenv on remote hosts.
  • Never create .env* or credential files for the operator.
  • Never mark config ready when required key names are missing from templates/contracts or injection paths are unknown.
  • Never place secret values in deploy reports; use key names and status only.

References

  • ../local-deployment/SKILL.md - env-file discovery model.
  • ../ssh-remote-operations/SKILL.md - SSH credential handling.
  • ../kubernetes-deployment/SKILL.md - kubeconfig/Secret handling.
  • ../../hooks/privacy-check.cjs - runtime sensitive-path guard.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.