Brak opisu

config.py 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. from pydantic_settings import BaseSettings, SettingsConfigDict
  2. class Settings(BaseSettings):
  3. model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8")
  4. app_name: str = "soc-integrator"
  5. app_env: str = "dev"
  6. log_level: str = "INFO"
  7. soc_integrator_internal_key: str = "dev-internal-key"
  8. soc_integrator_db_host: str = "soc-integrator-db"
  9. soc_integrator_db_port: int = 5432
  10. soc_integrator_db_name: str = "soc_integrator"
  11. soc_integrator_db_user: str = "soc_integrator"
  12. soc_integrator_db_password: str = "soc_integrator_password"
  13. wazuh_base_url: str = "https://wazuh.manager:55000"
  14. wazuh_username: str = "wazuh-wui"
  15. wazuh_password: str = "MyS3cr37P450r.*-"
  16. wazuh_indexer_url: str = "https://wazuh.indexer:9200"
  17. wazuh_indexer_username: str = "admin"
  18. wazuh_indexer_password: str = "SecretPassword"
  19. wazuh_auto_sync_enabled: bool = True
  20. wazuh_auto_sync_interval_seconds: int = 60
  21. wazuh_auto_sync_query: str = "*"
  22. wazuh_auto_sync_limit: int = 50
  23. wazuh_auto_sync_minutes: int = 120
  24. log_loss_monitor_enabled: bool = False
  25. log_loss_monitor_interval_seconds: int = 60
  26. log_loss_monitor_window_minutes: int = 5
  27. log_loss_monitor_create_iris_ticket: bool = False
  28. log_loss_monitor_ticket_cooldown_seconds: int = 900
  29. c_detection_enabled: bool = True
  30. c_detection_window_minutes: int = 30
  31. c1_max_travel_speed_kmph: int = 900
  32. c2_offhours_start_utc: int = 20
  33. c2_offhours_end_utc: int = 6
  34. c3_host_spread_threshold: int = 5
  35. c3_scan_port_threshold: int = 20
  36. c_detection_create_iris_ticket: bool = True
  37. c_detection_ticket_cooldown_seconds: int = 900
  38. geoip_provider: str = "ipwhois"
  39. geoip_cache_ttl_seconds: int = 21600
  40. shuffle_base_url: str = "http://shuffle-backend:5001"
  41. shuffle_api_key: str = ""
  42. shuffle_username: str = ""
  43. shuffle_password: str = ""
  44. pagerduty_base_url: str = "http://pagerduty-stub"
  45. pagerduty_api_key: str = ""
  46. iris_base_url: str = "https://iriswebapp_nginx:8443"
  47. iris_api_key: str = ""
  48. iris_default_customer_id: int = 1
  49. iris_default_soc_id: str = ""
  50. virustotal_base_url: str = "https://www.virustotal.com/api/v3"
  51. virustotal_api_key: str = ""
  52. abuseipdb_base_url: str = "https://api.abuseipdb.com/api/v2"
  53. abuseipdb_api_key: str = ""
  54. settings = Settings()