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
In this repository42 other files it gives its agents.
- docs/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- fabrico-architecture-designingSkill
- fabrico-building-admin-dashboardsSkill
- fabrico-building-admin-resourcesSkill
- fabrico-building-lean-applicationsSkill
- fabrico-codebase-analysingSkill
- fabrico-code-reviewingSkill
- fabrico-creating-agentsSkill
- fabrico-creating-instructionsSkill
- fabrico-creating-promptsSkill
- fabrico-creating-skillsSkill
- fabrico-designing-multi-cloud-architectureSkill
- fabrico-e2e-testingSkill
- fabrico-engineering-promptsSkill
- fabrico-ensuring-accessibilitySkill
- fabrico-implementation-gap-analysingSkill
- fabrico-implementing-backendSkill
- fabrico-implementing-ci-cdSkill
- fabrico-implementing-formsSkill
- fabrico-implementing-frontendSkill
- fabrico-implementing-kubernetesSkill
- fabrico-implementing-observabilitySkill
- fabrico-implementing-terraform-modulesSkill
- fabrico-improving-codebasesSkill
- fabrico-improving-uiSkill
- fabrico-jira-task-formattingSkill
- fabrico-optimizing-cloud-costSkill
- fabrico-optimizing-frontendSkill
- fabrico-planning-migrationSkill
- fabrico-preparing-applications-for-aiSkill
- fabrico-preparing-applications-for-saasSkill
- fabrico-reverse-engineering-specSkill
- fabrico-reviewing-frontendSkill
- fabrico-sql-and-database-understandingSkill
- fabrico-task-analysingSkill
- fabrico-task-extractingSkill
- fabrico-task-quality-reviewingSkill
- fabrico-technical-context-discoveringSkill
- fabrico-transcript-processingSkill
- fabrico-ui-verifyingSkill
- fabrico-writing-hooksSkill
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
- Distinctive: line 27
Check which cloud provider the project uses:
- Very specific: line 32
Use the context7 MCP server (tools mcp__context7__*) or cloud documentation MCP to look up provider-specific syntax.
- Distinctive: line 36
Check for existing patterns:
- Distinctive: line 53
Rule: Always prefer OIDC federation over long-lived access keys.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
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
| Scenario | Recommended Solution |
| Single cloud, simple apps | Cloud-native (AWS Secrets Manager, Azure Key Vault, GCP Secret Manager) |
| Multi-cloud / hybrid | HashiCorp Vault |
| GitOps with Kubernetes | Sealed Secrets or External Secrets Operator |
| Local dev / small teams | SOPS with age/GPG |
| CI/CD → Cloud | OIDC federation (no long-lived keys) |
Cloud-Native Detection
Check which cloud provider the project uses:
*.tfwithprovider "aws"→ AWS Secrets Manager*.tfwithprovider "azurerm"→ Azure Key Vault*.tfwithprovider "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:
SealedSecretresources → Bitnami Sealed SecretsExternalSecretresources → External Secrets Operator*.enc.yamlfiles → SOPS encryptionvault-agentsidecars → HashiCorp Vault
CI/CD Credentials Decision
| CI Platform | Cloud | Approach |
| GitHub Actions | AWS | OIDC with aws-actions/configure-aws-credentials |
| GitHub Actions | Azure | OIDC with azure/login |
| GitHub Actions | GCP | OIDC with google-github-actions/auth |
| GitLab CI | AWS/GCP | OIDC with CI_JOB_JWT |
| Bitbucket | AWS | Repository variables + assume role |
| Any | Any | HashiCorp Vault with JWT/OIDC auth |
Rule: Always prefer OIDC federation over long-lived access keys.
Process
- Discover context → Check existing secret patterns in codebase
- Choose solution → Use decision matrix based on scenario
- Look up implementation → Use the context7 MCP server (tools
mcp__context7__*) or cloud MCP for current syntax - Implement rotation → Set rotation policy (30-90 days for credentials)
- Enable auditing → Configure access logging on secret store
- 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 code | Use secret references |
Commit .env files | Use .env.example with placeholders |
| Share secrets via Slack/email | Use secret manager with access control |
| Same secret across environments | Separate secrets per environment |
| Long-lived CI/CD credentials | OIDC federation with short-lived tokens |
| Secrets in ConfigMaps | Use Kubernetes Secrets (encrypted at rest) |
Related Skills
fabrico-implementing-ci-cd- For pipeline credential setupfabrico-implementing-terraform-modules- For IaC secret resource patternsfabrico-optimizing-cloud-cost- Secret manager pricing considerations
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.

