agentleFS
aiFabricoComaiFabricoCom/fabrico-collections/.claude/skills/fabrico-managing-secrets/SKILL.md

fabrico-managing-secrets

Skill2 starsChanged 4 months agoMITView on GitHub

Secrets management patterns for cloud and Kubernetes environments. Use when implementing secure credential storage, rotation, or CI/CD authentication.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check which cloud provider the project uses:

    line 27
  2. Very specific:

    Use the context7 MCP server (tools mcp__context7__*) or cloud documentation MCP to look up provider-specific syntax.

    line 32
  3. Distinctive:

    Check for existing patterns:

    line 36
  4. Distinctive:

    Rule: Always prefer OIDC federation over long-lived access keys.

    line 53

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Secrets Management

When to Use

  • Storing application credentials securely
  • Configuring CI/CD authentication
  • Implementing secrets rotation
  • Setting up GitOps-compatible secret management

Solution Decision Matrix

ScenarioRecommended Solution
Single cloud, simple appsCloud-native (AWS Secrets Manager, Azure Key Vault, GCP Secret Manager)
Multi-cloud / hybridHashiCorp Vault
GitOps with KubernetesSealed Secrets or External Secrets Operator
Local dev / small teamsSOPS with age/GPG
CI/CD → CloudOIDC federation (no long-lived keys)

Cloud-Native Detection

Check which cloud provider the project uses:

  • *.tf with provider "aws" → AWS Secrets Manager
  • *.tf with provider "azurerm" → Azure Key Vault
  • *.tf with provider "google" → GCP Secret Manager

Use the context7 MCP server (tools mcp__context7__*) or cloud documentation MCP to look up provider-specific syntax.

Kubernetes Secrets Detection

Check for existing patterns:

  • SealedSecret resources → Bitnami Sealed Secrets
  • ExternalSecret resources → External Secrets Operator
  • *.enc.yaml files → SOPS encryption
  • vault-agent sidecars → HashiCorp Vault

CI/CD Credentials Decision

CI PlatformCloudApproach
GitHub ActionsAWSOIDC with aws-actions/configure-aws-credentials
GitHub ActionsAzureOIDC with azure/login
GitHub ActionsGCPOIDC with google-github-actions/auth
GitLab CIAWS/GCPOIDC with CI_JOB_JWT
BitbucketAWSRepository variables + assume role
AnyAnyHashiCorp Vault with JWT/OIDC auth

Rule: Always prefer OIDC federation over long-lived access keys.

Process

  1. Discover context → Check existing secret patterns in codebase
  2. Choose solution → Use decision matrix based on scenario
  3. Look up implementation → Use the context7 MCP server (tools mcp__context7__*) or cloud MCP for current syntax
  4. Implement rotation → Set rotation policy (30-90 days for credentials)
  5. Enable auditing → Configure access logging on secret store
  6. Document break-glass → Define emergency access procedure

Security Checklist

  • No secrets in code, environment variables visible in UI, or logs
  • Rotation policy defined (30-90 days for credentials)
  • Least privilege access to secret stores
  • Audit logging enabled on all secret access
  • OIDC used for CI/CD (no long-lived access keys)
  • Secrets encrypted at rest and in transit
  • Break-glass procedure documented
  • Secret scanning enabled in CI (gitleaks, trufflehog)

Anti-Patterns

❌ Don't✅ Do
Hardcode secrets in codeUse secret references
Commit .env filesUse .env.example with placeholders
Share secrets via Slack/emailUse secret manager with access control
Same secret across environmentsSeparate secrets per environment
Long-lived CI/CD credentialsOIDC federation with short-lived tokens
Secrets in ConfigMapsUse Kubernetes Secrets (encrypted at rest)

Related Skills

  • fabrico-implementing-ci-cd - For pipeline credential setup
  • fabrico-implementing-terraform-modules - For IaC secret resource patterns
  • fabrico-optimizing-cloud-cost - Secret manager pricing considerations

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.