secrets-management
Skill2 starsChanged 9 months agoMITView on GitHub
Enforce secrets management best practices for containers and cloud-native applications. Use when configuring environment variables, Docker secrets, Kubernetes secrets, Vault integration, AWS SSM/Secrets Manager, or any credential handling in Dockerfiles, compose files, Kubernetes manifests, or CI pipelines. Activates on keywords like "secrets", "credentials", "API key", "password", "environment variables", ".env file", "Vault", "sealed secrets", or "secret manager".
- Reads credentials
40 other projects use a version of this.
Adopted by
Most recently taken up by
- Rain-kl/OpenFlaretheir own version, first seen Nov 30, 2026
- gromov0737/skillstheir own version, first seen Nov 29, 2026
- XData-si/xdata-agenthubtheir own version, first seen Nov 22, 2026
- AtilaMedeiros/skillstheir own version, first seen Nov 16, 2026
- D-Shey/autoharnesstheir own version, first seen Nov 15, 2026
- lengrufeng2008/dsh-skill-librarytheir own version, first seen Nov 15, 2026
Used with
Projects with it also use input-validation, background-jobs and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
hereshecodesSkillinput-validation
Use when processing user input, form data, file uploads, or query parameters
Also in 3 projects that use this
YepAPISkillbackground-jobs
Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.
Also in 3 projects that use this
harperaaSkillrate-limiting
Implement rate limiting to prevent brute force attacks, spam, and resource abuse. Use this skill when you need to protect endpoints from automated attacks, prevent API abuse, limit request frequency, or control infrastructure costs. Triggers include "rate limiting", "rate limit", "brute force", "prevent spam", "API abuse", "resource exhaustion", "DoS", "withRateLimit", "too many requests", "429 error".
Also in 3 projects that use this
mattpartidaSkillagent-security
Review and harden OpenClaw/Hermes agent security, including tool permissions, elevated access, exec approvals, allowlists, sandboxing, browser and web exposure, prompt-injection risk, model risk, persistence, and personal-vs-shared trust boundaries. Use when the task is primarily about agent or runtime security rather than host firewall or OS hardening.
Also in 3 projects that use this
jefflesterSkillapi-security
API security best practices and common vulnerability prevention. Enforces security checks for authentication, input validation, SQL injection, XSS, and OWASP Top 10 vulnerabilities. Use when building or modifying APIs.
Also in 4 projects that use this
MicrosoftSkillsupply-chain-security
Activate when reviewing or modifying dependency resolution, lockfile schema, package downloaders, signature/integrity checks, file integration cleanup, or anything that could expose APM to dependency confusion, typosquatting, malicious packages, or token leakage.
Also in 3 projects that use this
Other versions40 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 40
- Rain-kl/OpenFlare★ 305same name
- nahid-sparktales/agent-dispatcher★ 59same name
- nimadorostkar/Claude-Skills-collection★ 41same name
- Fandry96/k3-agentic-skills★ 27same name
- D-Shey/autoharness★ 10same name
- xfstudio/skills★ 9same name
- YepAPI/skills★ 8same name
- ai4brands-design/claude-skills★ 2same name
- CodeWithBehnam/cc-docs★ 2same name
- d-o-hub/github-template-ai-agents★ 2same name
30 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ci-security-pipelineSkill
- docker-security-hardeningSkill
- kubernetes-pod-securitySkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 38 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 18
When the user mentions "API key", "password", "token", "credentials", ".env", or "secrets"
- Distinctive: line 22
NEVER: put secrets in Dockerfiles (ENV, ARG, or COPY)
- Distinctive: line 23
NEVER: commit secrets to version control
- Distinctive: line 27
ALWAYS: use the principle of least privilege for secret access
- Distinctive: line 157
Add to every pipeline:
- Distinctive: line 172
Every project must exclude:
“Common” is measured: kept by at least 6 in 10 of the 38 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Secrets Management
Enforce secure secrets handling across Docker, Kubernetes, and CI/CD environments. Prevent credential leaks at every stage of the container lifecycle.
When to Use
- Configuring environment variables in Dockerfiles or compose files
- Setting up Kubernetes Secrets or external secret operators
- Integrating with HashiCorp Vault, AWS Secrets Manager, or similar
- Reviewing code for hardcoded credentials
- Setting up CI/CD pipeline secrets
- When the user mentions "API key", "password", "token", "credentials", ".env", or "secrets"
Cardinal Rules
- NEVER put secrets in Dockerfiles (ENV, ARG, or COPY)
- NEVER commit secrets to version control
- NEVER pass secrets via command-line arguments (visible in process lists)
- NEVER log secrets — scrub them from output
- ALWAYS rotate secrets regularly
- ALWAYS use the principle of least privilege for secret access
Where Secrets Should NOT Be
Dockerfiles — NEVER do this
# ❌ ALL of these are wrong
ENV DATABASE_URL=postgres://user:password@host/db
ARG API_KEY=sk-abc123
COPY .env /app/.env
RUN echo "password" > /app/configdocker-compose — NEVER do this
# ❌ Wrong
services:
app:
environment:
- DB_PASSWORD=mysecretpassword
- API_KEY=sk-abc123Kubernetes — NEVER do this
# ❌ Wrong — plaintext in manifest
env:
- name: DB_PASSWORD
value: "mysecretpassword"Where Secrets SHOULD Be
Docker — BuildKit Secret Mounts
For build-time secrets (e.g., private npm tokens):
# ✅ Secret never persists in image layers
RUN --mount=type=secret,id=npm_token \
NPM_TOKEN=$(cat /run/secrets/npm_token) \
npm ciBuild command:
docker build --secret id=npm_token,src=.npm_token .Docker Compose — External Secrets
# ✅ Secrets from files, not inline
services:
app:
secrets:
- db_password
environment:
- DB_PASSWORD_FILE=/run/secrets/db_password
secrets:
db_password:
file: ./secrets/db_password.txt # gitignoredDocker Swarm — Native Secrets
# Create secret
echo "mysecret" | docker secret create db_password -
# Reference in stack
services:
app:
secrets:
- db_password
secrets:
db_password:
external: trueKubernetes — Secrets + External Operators
Basic (acceptable for non-production):
apiVersion: v1
kind: Secret
metadata:
name: app-secrets
type: Opaque
stringData:
DB_PASSWORD: "value" # Encrypt at rest in etcdMount as volume (preferred over env vars):
volumeMounts:
- name: secrets
mountPath: /etc/secrets
readOnly: true
volumes:
- name: secrets
secret:
secretName: app-secretsProduction — use an external operator:
- ExternalSecrets Operator: Syncs from AWS/GCP/Azure/Vault
- SealedSecrets: Encrypt secrets for safe git storage
- Vault Secrets Operator: Direct HashiCorp Vault integration
CI/CD — Pipeline Secrets
# GitHub Actions — use encrypted secrets
env:
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
# NEVER echo or log secrets
- run: |
# ✅ Mask the secret
echo "::add-mask::$DB_PASSWORD"Secret Detection in CI
Add to every pipeline:
# Trivy secret scan
trivy fs --scanners secret --exit-code 1 .
# git-secrets (AWS-focused)
git secrets --scan
# Gitleaks
gitleaks detect --source . --verbose.gitignore Essentials
Every project must exclude:
.env
.env.*
*.secret
*.pem
*.key
*.p12
*.pfx
secrets/
credentials/Secrets Rotation Checklist
- All secrets have an expiration policy
- Rotation can happen without downtime
- Old secrets are revoked after rotation
- Rotation is automated where possible
- Rotation events are logged and auditable
References
references/secrets-checklist.md— Full review checklist
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
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.

