@@ -14,24 +14,25 @@ MCP_HOST=127.0.0.1
1414MCP_PORT = 3000
1515
1616# === Authentication ===
17- # Secret key for token signing (generate with: openssl rand -hex 32)
18- AUTH_SECRET_KEY = your-secret-key-here
17+ # Auth mode: bearer (default), oauth, or none (authless)
18+ AUTH_MODE = bearer
19+
20+ # SECURITY: Generate a secure secret key for production!
21+ # Run: openssl rand -hex 32
22+ AUTH_SECRET_KEY = CHANGE_ME_GENERATE_WITH_openssl_rand_hex_32
1923
2024# Token lifetime in hours
2125TOKEN_LIFETIME_HOURS = 24
2226
23- # API keys (JSON array format)
24- # Example: [{"id":"key1","name":"Production","key_hash":"hash","scopes":["wazuh:read"]}]
25- API_KEYS = [
26- {
27- "id": "default",
28- "name": "Default API Key",
29- "key_hash": "will-be-generated",
30- "created_at": "2024-01-01T00:00:00Z",
31- "scopes": ["wazuh:read", "wazuh:write"],
32- "active": true
33- }
34- ]
27+ # === API Key Configuration (Recommended for production) ===
28+ # Simple single API key configuration - generate with:
29+ # python -c "import secrets; print('wazuh_' + secrets.token_urlsafe(32))"
30+ # If not set, server auto-generates a key and displays it on startup
31+ # MCP_API_KEY=wazuh_your-generated-key-here
32+
33+ # Advanced: Multiple API keys (JSON array format)
34+ # Only use if you need multiple keys with different scopes
35+ # API_KEYS=[{"id":"key1","name":"Production","key_hash":"...","scopes":["wazuh:read"]}]
3536
3637# === CORS Configuration ===
3738# Comma-separated list of allowed origins
@@ -46,8 +47,10 @@ ALLOWED_ORIGINS=https://claude.ai,https://*.anthropic.com,http://localhost:*
4647LOG_LEVEL = INFO
4748
4849# === Wazuh SSL ===
49- WAZUH_VERIFY_SSL = false
50- WAZUH_ALLOW_SELF_SIGNED = true
50+ # SECURITY: Set WAZUH_VERIFY_SSL=true in production!
51+ # Only set to false for development with self-signed certificates
52+ WAZUH_VERIFY_SSL = true
53+ # WAZUH_ALLOW_SELF_SIGNED=true # Uncomment only for dev/testing
5154
5255# === Wazuh Indexer Configuration (Required for Wazuh 4.8.0+) ===
5356# The vulnerability API was removed in Wazuh 4.8.0 and replaced with Indexer queries.
0 commit comments