/devops-skills:secrets-managementfrom devops-skills
Moves credentials, API keys, and certificates out of code, images, and logs into a real secret store with scoped runtime injection. Covers pre-commit hooks, CI scanning, Vault/cloud KMS, and rotation.
Ships in devops-skills. 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.
Read when SKILL.md points to them.
A secret in source control is compromised the moment it is committed, regardless of whether the repo is public — history, forks, CI logs, and local clones all outlive the "private" label. The fix is not discipline, because discipline does not scale past one careless commit. The fix is making it structurally hard to commit a secret and structurally easy to fetch one at runtime from somewhere that isn't a text file.
Treat every credential as a liability with a lifecycle: issued, scoped, rotated, and revocable. A secret with no expiry and no owner is not a convenience, it is deferred incident.
A secret you cannot rotate in minutes is not a secret, it is a permanent liability.
For step-by-step zero-downtime rotation and a leaked-secret response checklist, read
references/rotation-playbook.md.
Pre-commit hooks and CI-stage scanners (gitleaks, trufflehog, detect-secrets) catch the AWS key
pasted into a config file before it becomes permanent history. Run the same scan in CI as a
required check, not just locally, because local hooks get skipped with --no-verify under
deadline pressure and nobody reverts that later.
Done when: a test commit containing a fake credential is rejected by both the pre-commit hook and the CI pipeline.
Vault, AWS Secrets Manager, GCP Secret Manager, or Azure Key Vault exist so that "where is the database password" has one answer instead of one answer per environment file. Application config should hold a reference — a secret path or ARN — never the value. This also means rotating a secret doesn't require a code change or redeploy, just an update at the source.
# good: config holds a pointer, not a value
database:
password_from: secret/prod/db/password
Done when: grepping the entire codebase and container images for the literal secret value returns nothing.
A secret baked into an image layer or a global environment variable available to every process on a host is available to every process that gets compromised, not just the one that needed it. Prefer sidecar injection, short-lived environment population at container start, or workload- identity-based fetch, so the secret exists only in the memory of the process that needs it and only for as long as that process runs.
docker history and layer inspection will find
them even after a later layer deletes the file. See containerization for build hygiene that
prevents this.echo a variable to debug it.Done when: no secret value appears in docker inspect, image layer history, or a build
log.
A secret that has never rotated has been silently trusted by everyone with access since day one, including people who left the team. Automated rotation (store-managed, short expiry, or a scheduled job) keeps the blast radius of any future leak small by construction, independent of whether anyone notices a leak happened.
iam-access-management for the broader case for short-lived
access.Done when: every credential in the store has a defined rotation interval and an owner.
The instinct to figure out blast radius before acting costs exactly the time an attacker needs.
On confirmed exposure, revoke or rotate the credential immediately, then investigate what it
touched and whether it was used. A false alarm costs a rotation; a real one caught late costs
much more. Coordinate the timeline and postmortem with incident-response.
git filter-repo) only after rotation — cleaning history
without rotating leaves the same key valid elsewhere.Done when: the exposed credential no longer authenticates, verified by attempting to use the old value.
State which scanner runs at commit time and which runs in CI, which store now holds production secrets, and the rotation interval assigned to each credential class. Name any secret that is still static or still injected as a wide-scoped environment variable rather than scoped to its workload — that gap is the next incident waiting to happen, and naming it beats claiming full coverage.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
secret-store, credential-rotation, secret-scanning, vault, kms
npx claudepluginhub arjunprabhulal/devops-skills --plugin devops-skillsOther plugins' skills for the same job
88 skills in this plugin
/alertingCovers designing alerts that page a human only when a human needs to act — symptom-based alerting over cause-based, multi-window burn-rate alerts on error budgets, severity tiers that route between page/ticket/dashboard, requiring every page to link a runbook, and tuning out alert fatigue. Use this whenever the user is writing a new alert rule, asking why on-call is paged too often or missing real incidents, choosing an alert threshold, or designing severity routing. For the SLO the burn-rate math comes from use `slo-definition`, and for what a runbook should contain use `runbooks`./api-gatewayCovers the managed front-door pattern for APIs — request routing, centralized auth, rate limiting and quotas, request/response shaping, and recognizing when a gateway helps versus becomes a bottleneck or single point of failure. Use this whenever the user is designing an API entry point, adding rate limits or quotas, centralizing auth for several backend services, transforming a request between an external and internal contract, or debugging a gateway timeout. For east-west traffic between internal services use `service-connectivity`, and for token issuance details use `iam-access-management`./argocd-operationsCovers running Argo CD day to day — structuring app-of-apps, choosing sync policies and waves, reading health versus sync status correctly, and unsticking a degraded or hung Application. Use this whenever the user mentions Argo CD, an Application stuck "Progressing" or "OutOfSync," app-of-apps or ApplicationSets, sync waves and hooks, or asks why a deploy shows synced but the workload is unhealthy. For the underlying model this tool implements use `gitops`; for automated canary analysis on top of it use `progressive-delivery`; for the workloads it manages use `kubernetes-operations`.