241 lines
5.1 KiB
YAML
241 lines
5.1 KiB
YAML
# Development Environment Configuration
|
|
# Over-engineered configuration for development environment
|
|
|
|
development:
|
|
# Pipeline Configuration
|
|
pipeline:
|
|
name: "Development Pipeline"
|
|
description: "Over-engineered development pipeline with excessive stages"
|
|
chaos_level: 8
|
|
roast_intensity: 9
|
|
celebration_mode: "full"
|
|
developer_challenge: true
|
|
|
|
# Environment Variables
|
|
variables:
|
|
NODE_ENV: "development"
|
|
DEBUG: "true"
|
|
LOG_LEVEL: "debug"
|
|
CHAOS_ENABLED: "true"
|
|
DEVELOPER_MODE: "true"
|
|
TESTING_MODE: "true"
|
|
|
|
# Over-the-top Build Configuration
|
|
build:
|
|
optimization_level: "maximum"
|
|
cache_strategy: "aggressive"
|
|
parallel_jobs: 16
|
|
debug_symbols: true
|
|
profiling: true
|
|
memory_limit: "8GB"
|
|
timeout: "3600"
|
|
|
|
# Excessive Testing Configuration
|
|
testing:
|
|
unit_tests:
|
|
enabled: true
|
|
framework: "jest"
|
|
coverage_threshold: 95
|
|
parallel_execution: true
|
|
mutation_testing: true
|
|
property_based_testing: true
|
|
|
|
integration_tests:
|
|
enabled: true
|
|
framework: "cypress"
|
|
environment: "development"
|
|
database: "test"
|
|
mock_services: true
|
|
|
|
performance_tests:
|
|
enabled: true
|
|
tool: "k6"
|
|
virtual_users: 1000
|
|
duration: "30m"
|
|
thresholds:
|
|
http_req_duration: ["p(95)<200"]
|
|
http_req_failed: ["rate<0.01"]
|
|
|
|
# Security Configuration (overkill for development)
|
|
security:
|
|
sast:
|
|
enabled: true
|
|
tools: ["sonarqube", "semgrep", "bandit"]
|
|
fail_build: true
|
|
|
|
dast:
|
|
enabled: true
|
|
tool: "owasp-zap"
|
|
target: "dev-app"
|
|
full_scan: true
|
|
|
|
dependency_scanning:
|
|
enabled: true
|
|
tools: ["snyk", "dependabot", "npm audit"]
|
|
license_checking: true
|
|
|
|
# Monitoring and Observability (excessive for dev)
|
|
monitoring:
|
|
metrics:
|
|
enabled: true
|
|
exporter: "prometheus"
|
|
granularity: "1s"
|
|
retention: "7d"
|
|
|
|
logging:
|
|
level: "debug"
|
|
format: "json"
|
|
output: ["console", "file", "elasticsearch"]
|
|
file_rotation: true
|
|
compression: true
|
|
|
|
tracing:
|
|
enabled: true
|
|
service: "jaeger"
|
|
sampling_rate: 1.0
|
|
baggage: true
|
|
|
|
# Deployment Configuration (for development)
|
|
deployment:
|
|
strategy: "blue-green"
|
|
auto_rollback: true
|
|
health_checks:
|
|
enabled: true
|
|
endpoint: "/health"
|
|
timeout: "30s"
|
|
interval: "10s"
|
|
|
|
# Notification Configuration
|
|
notifications:
|
|
slack:
|
|
enabled: true
|
|
webhook: "$SLACK_WEBHOOK"
|
|
channel: "#development"
|
|
notify_on: ["always"]
|
|
|
|
email:
|
|
enabled: true
|
|
recipients: ["dev-team@example.com"]
|
|
notify_on: ["failure", "success"]
|
|
|
|
# Cache Configuration (overkill)
|
|
cache:
|
|
redis:
|
|
enabled: true
|
|
host: "redis-dev"
|
|
port: 6379
|
|
database: 0
|
|
ttl: "1h"
|
|
|
|
cdn:
|
|
enabled: true
|
|
provider: "cloudflare"
|
|
zone: "dev.example.com"
|
|
|
|
# Database Configuration (excessive for dev)
|
|
database:
|
|
primary:
|
|
type: "postgresql"
|
|
host: "postgres-dev"
|
|
port: 5432
|
|
database: "chaos_dev"
|
|
pool_size: 20
|
|
ssl: true
|
|
backup:
|
|
enabled: true
|
|
schedule: "0 2 * * *"
|
|
retention: "7d"
|
|
|
|
replica:
|
|
type: "postgresql"
|
|
host: "postgres-replica-dev"
|
|
read_only: true
|
|
|
|
redis:
|
|
host: "redis-dev"
|
|
port: 6379
|
|
database: 1
|
|
|
|
# Service Configuration (microservices parody)
|
|
services:
|
|
api_gateway:
|
|
image: "chaos/api-gateway:dev"
|
|
replicas: 3
|
|
resources:
|
|
limits:
|
|
memory: "512Mi"
|
|
cpu: "500m"
|
|
|
|
user_service:
|
|
image: "chaos/user-service:dev"
|
|
replicas: 2
|
|
database: "users_db"
|
|
|
|
auth_service:
|
|
image: "chaos/auth-service:dev"
|
|
replicas: 2
|
|
secrets: ["jwt_secret", "oauth_credentials"]
|
|
|
|
order_service:
|
|
image: "chaos/order-service:dev"
|
|
replicas: 2
|
|
database: "orders_db"
|
|
|
|
notification_service:
|
|
image: "chaos/notification-service:dev"
|
|
replicas: 1
|
|
providers: ["email", "sms", "push"]
|
|
|
|
analytics_service:
|
|
image: "chaos/analytics-service:dev"
|
|
replicas: 1
|
|
database: "analytics_db"
|
|
|
|
# Load Balancer Configuration
|
|
load_balancer:
|
|
type: "nginx"
|
|
algorithm: "round-robin"
|
|
health_check:
|
|
enabled: true
|
|
interval: "10s"
|
|
timeout: "5s"
|
|
|
|
# SSL/TLS Configuration
|
|
ssl:
|
|
enabled: true
|
|
provider: "letsencrypt"
|
|
domain: "dev.example.com"
|
|
auto_renewal: true
|
|
|
|
# Feature Flags Configuration
|
|
feature_flags:
|
|
provider: "launchdarkly"
|
|
environment: "development"
|
|
flags:
|
|
new_ui: true
|
|
advanced_analytics: true
|
|
beta_features: true
|
|
|
|
# Backup Configuration (excessive for dev)
|
|
backup:
|
|
enabled: true
|
|
schedule: "0 3 * * *"
|
|
retention: "7d"
|
|
compression: true
|
|
encryption: true
|
|
destinations:
|
|
- type: "s3"
|
|
bucket: "chaos-backup-dev"
|
|
- type: "local"
|
|
path: "/backups/dev"
|
|
|
|
# Disaster Recovery Configuration (overkill for dev)
|
|
disaster_recovery:
|
|
enabled: true
|
|
rpo: "1h"
|
|
rto: "4h"
|
|
geo_replication: true
|
|
failover:
|
|
enabled: true
|
|
automatic: true
|
|
health_check_interval: "30s" |