apiVersion: v1
kind: ConfigMap
metadata:
  name: gateway-cors-config
  namespace: besu-network
data:
  # CORS Configuration
  cors_enabled: "true"
  cors_allow_origin: "*"  # In production, specify allowed origins
  cors_allow_methods: "GET,POST,OPTIONS"
  cors_allow_headers: "Content-Type,Authorization"
  cors_max_age: "3600"
  cors_allow_credentials: "false"
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: gateway-ip-allowlist
  namespace: besu-network
data:
  # IP Allowlist Configuration
  # Format: comma-separated list of CIDR blocks or IP addresses
  # Example: "10.0.0.0/8,192.168.1.0/24,203.0.113.0/24"
  allowed_ips: ""  # Empty means allow all (configure for production)
  enable_ip_filtering: "false"  # Set to "true" to enable IP filtering

