Skip to content
Back to skills

Secrets And Config

ASecurity

Use when changing application configuration, environment variables, or generated development environments, or when decrypting or changing SOPS secret files.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentsgoexpressgit

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add davidvornholt/standards --skill secrets-and-config --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Secrets And Config?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Secrets And Config
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/davidvornholt-secrets-and-config/badge)](https://www.skillsdirectory.com/skills/davidvornholt-secrets-and-config)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: secrets-and-config
description: Use when changing application configuration, environment variables, or generated development environments, or when decrypting or changing SOPS secret files.
---

# Secrets and configuration

A value is secret when disclosing it enables impersonation, data access, or cost. Secrets live only in SOPS-encrypted YAML. Every other value lives in plain configuration beside the code that reads it.

Never let a decrypted secret reach a command's output, not even through a filter, because the session transcript keeps it and filters miss multi-line values such as private keys. Pipe it into the command that needs it, or compare values by hash.

Document each value once, where it is declared. A plain value is explained in its configuration file. A secret is explained in the matching `*.example.yaml`, which mirrors the key shape of the encrypted file, because the encrypted file cannot carry readable comments. When the example exists, `standards creds` fills in missing placeholders. Use a workspace README only for setup that these declarations cannot express.

SOPS identities, recipients, CI secrets, and brokered provider credentials are covered in the declarative-infra skill's [secrets reference](../declarative-infra/references/secrets.md).

## Development environments

In a repository on the `bun` payload, `just dev-env-generate` (`bun standards dev-env`) generates each workspace's `.env.local` from three layers, keyed by workspace (`apps.<name>`, `packages.<name>`). `just dev-refresh` edits the dev secrets and then regenerates.

| Layer | File | Notes |
| --- | --- | --- |
| Plain | `config/dev.yaml` | Tracked |
| Secret | `secrets/dev.yaml` | Tracked and encrypted; values are strings |
| Local | `config/dev.local.yaml` | Gitignored; overrides both tracked layers, including secret values |

A key lives in at most one of the two tracked layers. Local changes belong in `config/dev.local.yaml`, because generation rewrites the whole `.env.local`.

A plain layer can reference one half of a broker-owned S3 credential pair instead of copying it, so the value never goes stale after the broker rotates it: `{ brokeredS3: <target>, key: <dotted.key>, part: access_key_id | secret_access_key }`. The reference resolves only when encrypted `secrets/dev.yaml` authorizes that pair in its reserved top-level `brokeredReferences` list as `<target>:<dotted.key>`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.