Skip to content
Back to skills

Secrets Management

ASecurity

Defines a secrets hierarchy, the ExternalSecrets pattern, and a rotation checklist; use when provisioning a new service, rotating credentials, or setting up CI/CD secrets.

  • 19 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 19, 2026
ai-agentsawsgitapidatabaseci/cd

Works with

  • api

Security analysis

A100/100

Scanned October 19, 2026

npx -y skills add sawrus/agent-guides --skill secrets-management --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Secrets Management?

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

Security grade badge for Secrets Management
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sawrus-secrets-management/badge)](https://www.skillsdirectory.com/skills/sawrus-secrets-management)

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-management
description: "Defines a secrets hierarchy, the ExternalSecrets pattern, and a rotation checklist; use when provisioning a new service, rotating credentials, or setting up CI/CD secrets."
---

# Skill: Secrets Management

## When to load

When provisioning a new service, rotating credentials, or setting up CI/CD secrets.

## Secrets Hierarchy

```
Level 1: Static secrets (rotate quarterly)
  → AWS Secrets Manager / HashiCorp Vault
  → Database passwords, API keys for external services

Level 2: Dynamic secrets (auto-expire, 1 hour)
  → Vault dynamic secrets / AWS IAM OIDC roles

Level 3: Runtime injection (never on disk)
  → K8s ExternalSecrets Operator → mounts as env vars
  → Never in container image or Git
```

## ExternalSecrets Pattern

```yaml
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
spec:
  refreshInterval: 1h
  secretStoreRef: { kind: ClusterSecretStore, name: aws-secretsmanager }
  data:
    - secretKey: DATABASE_URL
      remoteRef: { key: prod/api/database, property: connection_string }
    - secretKey: STRIPE_SECRET_KEY
      remoteRef: { key: prod/api/stripe, property: secret_key }
```

## Rotation Checklist

- [ ] New secret created, old secret still active
- [ ] Service updated to accept both (dual-read window)
- [ ] New secret deployed and verified
- [ ] Old secret revoked
- [ ] Rotation documented (next rotation: +90 days)

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.

Comments

Loading comments…

Newsletter

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