计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
managing-environment-configurations【效率与协作】Implement environment and configuration management with comprehensive guidance and automation. Use when you need to work with environment configuration. Trigger with phrases like "manage environments", "configure environments", or "sync configurations".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: managing-environment-configurations description: 'Implement environment and configuration management with comprehensive guidance and automation.
Use when you need to work with environment configuration.
Trigger with phrases like "manage environments", "configure environments",
or "sync configurations".
' allowed-tools: Read, Write, Edit, Grep, Glob, Bash(cmd:*) version: 1.23.0 author: Jeremy Longshore jeremy@intentsolutions.io license: MIT tags:
Manage application configurations across development, staging, and production environments using .env files, Kubernetes ConfigMaps/Secrets, SSM Parameter Store, and cloud-native configuration services. Enforce consistency, prevent configuration drift, and implement safe promotion workflows between environments.
sops, age, sealed-secrets, or cloud KMS).env files, config/ directories, Kubernetes ConfigMaps, and hardcoded values in source codeAPP_DATABASE_HOST, APP_REDIS_URL).env.development, .env.staging, .env.productionsops with cloud KMS or sealed-secrets for Kubernetes.env.*, config/*.yaml).sops.yaml rules| Error | Cause | Solution |
|---|---|---|
Missing required environment variable | Variable defined in schema but absent from .env file | Add the variable to the environment file; run validation script before deploy |
SOPS decryption failed | Wrong KMS key or expired credentials | Verify KMS key ARN in .sops.yaml; refresh cloud credentials |
ConfigMap too large | Kubernetes 1MB ConfigMap size limit exceeded | Split into multiple ConfigMaps or mount as files from a volume |
Configuration drift detected | Manual changes made directly to running environment | Re-apply configuration from source-of-truth; block direct environment edits |
Secret exposed in logs | Application logging sensitive config values at startup | Mask secrets in logging output; audit code for accidental secret printing |
.env files for a Node.js app with SOPS encryption for secrets and validation that all required vars are set."