/fnox:fnox-securityfrom fnox
Security best practices for fnox — key rotation, gitignore rules, CI/CD secret handling, access control, missing-secret enforcement, and avoiding common mistakes. Triggers on: "fnox security", "rotate fnox keys", "fnox gitignore", "fnox ci secrets", "fnox key rotation", "fnox access control", "fnox reencrypt", "secure fnox setup", "fnox best practices".
Ships in fnox. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when:
fnox-providersfnox-configurationfnox.local.toml — always gitignore itAlways add to .gitignore:
fnox.local.toml
.fnox.local.toml
Commit fnox.toml — encrypted values are safe. Never commit the local override file.
Provide a fnox.local.toml.example (committed) showing the structure without real values:
# fnox.local.toml.example — copy to fnox.local.toml and fill in your values
[secrets]
DATABASE_URL = { default = "postgresql://localhost/<your-db-name>" }
When rotating age keys (e.g., after a team member leaves):
# 1. Remove departing member from recipients in fnox.toml
# 2. Re-encrypt all secrets with remaining recipients
fnox reencrypt -p age
# Re-encrypt a specific profile
fnox reencrypt -p age -P production -f
# Preview without writing
fnox reencrypt -p age --dry-run
For cloud providers (AWS SM, 1Password, etc.), rotate secrets directly in the provider. Fnox only stores references — no re-encryption needed for remote secrets.
Use if_missing = "error" on required secrets to prevent silent failures:
# Required secrets must exist or the command fails
[secrets]
DATABASE_URL = { provider = "aws", value = "database-url", if_missing = "error" }
# Optional monitoring secrets (continue without them)
SENTRY_DSN = { provider = "aws", value = "sentry-dsn", if_missing = "ignore" }
Set a strict default at the top level for production:
if_missing = "error" # All secrets must resolve
[secrets]
DATABASE_URL = { provider = "aws", value = "database-url" }
OPTIONAL_FEATURE = { default = "false", if_missing = "ignore" } # Override
In CI/CD, control via environment variable:
# Fail fast on missing secrets in production deploys
- run: fnox exec --profile production -- ./deploy.sh
env:
FNOX_IF_MISSING: error
# Be lenient for forked PRs that lack secrets
- run: fnox exec -- npm test
env:
FNOX_IF_MISSING: ignore
jobs:
test:
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v3
- name: Run tests
env:
FNOX_AGE_KEY: ${{ secrets.FNOX_AGE_KEY }}
run: fnox exec -- npm test
Never print secrets or pass them as arguments — fnox injects them as environment variables.
Prefer IAM roles over static credentials when possible:
# AWS: Use OIDC federation (no stored credentials)
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::ACCOUNT:role/github-actions
aws-region: us-east-1
- run: fnox exec --profile production -- ./deploy.sh
.env committed to git)myapp/* not *)Run fnox scan to detect any plaintext secrets accidentally added:
fnox scan # Scan fnox.toml for unencrypted values
fnox doctor # Check overall configuration health
fnox check # Verify all secrets can be resolved
| Mistake | Risk | Fix |
|---|---|---|
Committing fnox.local.toml | Personal overrides exposed | Add to .gitignore immediately |
Hardcoded default = "real-value" | Plaintext secret in git | Use a provider, not default for real secrets |
| Single age key for whole team | Tight coupling, hard offboarding | Use per-person recipients |
| Same CI key across environments | Dev key can access prod | Separate CI keys per environment |
No if_missing = "error" on required secrets | Silent failures in prod | Mark critical secrets as error |
| Personal tokens in CI | Token expiry breaks CI | Use service accounts / machine identities |
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/fnox-configurationGuides fnox secrets management configuration via fnox.toml — file structure, secrets definition, profiles, hierarchical config, mise integration, import/export, and sync. Always use fnox as a mise integration, never as standalone shell integration. Triggers on: "set up fnox", "fnox.toml", "configure fnox", "fnox profiles", "fnox secrets", "mise fnox", "migrate to fnox", "fnox sync", "fnox import", "fnox export"./fnox-providersGuides fnox provider selection and setup — age encryption, AWS (Parameter Store and Secrets Manager), 1Password, Bitwarden, GCP, Azure, Doppler, Vault, and local options. Triggers on: "set up fnox provider", "fnox age", "fnox aws", "fnox 1password", "which fnox provider", "configure fnox provider", "fnox encryption", "add provider to fnox".Other plugins' skills for the same job
npx claudepluginhub meaganewaller/marketplace --plugin fnox