ToolypetMCP
intermediate4 minutessecurity

Secret Management Workflow

Generate, categorize, and secure application secrets: API keys, JWT secrets, encryption keys, and DB passwords.

secretsapi-keysenvironmentmanagement

何时使用此配方

Generate all the secrets needed for a new application deployment. Each secret type has different requirements for length, format, and rotation frequency.

步骤

1

Secret Generator

试用此工具

Generate API key

提示词:Generate a 512-bit API key in base64 for external API authentication
2

Secret Generator

试用此工具

Generate JWT secret

提示词:Generate a 256-bit hex secret for JWT token signing
3

Secret Generator

试用此工具

Generate encryption key

提示词:Generate a 256-bit hex key for AES encryption of sensitive data
4

Password Generator

试用此工具

Generate DB password

提示词:Generate a 32-character database password with all character types
5

Hash Calculator

试用此工具

Create audit hashes

提示词:Hash all secrets with SHA-256 for audit logging (store hashes, not raw secrets)

常见问题

Where should I store application secrets?

Never in code or git. Use: environment variables (dev), AWS Secrets Manager / HashiCorp Vault (production), or .env files (local dev only, gitignored).

How do I manage secret rotation?

Use a secrets manager with rotation policies. Deploy with dual-key support (accept both old and new during rotation window). Automate rotation with CI/CD pipelines.

相关配方