1. 01 Jun, 2025 1 commit
    • qiuqunfeng's avatar
      Implement dynamic log level configuration and refactor Elasticsearch client creation · 5f22de38
      qiuqunfeng authored
      This update introduces the ability to set the log level dynamically based on the LOG_LEVEL environment variable, allowing for better control over logging verbosity. Additionally, the Elasticsearch client creation has been refactored to utilize configuration settings from a JSON file, enhancing the application's configurability. The previous LoadConfig function has been replaced with a more structured approach, and unnecessary code has been removed to streamline the log consumer service.
      5f22de38
  2. 29 Mar, 2025 1 commit
    • qiuqunfeng's avatar
      Refactor log consumer service to streamline WAF service updates · f17ae858
      qiuqunfeng authored
      - Simplify the update process for WAF service attack numbers by directly incrementing the attack_num field in the database.
      - Remove redundant queries and error handling for improved code clarity and efficiency.
      - Update attack log filter to clarify the purpose of the AttackApp field as the gateway name.
      - Adjust the WAF service to correctly reference the gateway name in workload creation and modify attack log queries for consistency.
      f17ae858
  3. 05 Mar, 2025 2 commits
    • qiuqunfeng's avatar
      Add logging for Kafka message consumption · ab374dd5
      qiuqunfeng authored
      - Include informative log message when starting Kafka message consumption
      - Enhance observability of log consumer service startup process
      ab374dd5
    • qiuqunfeng's avatar
      Add Kafka log consumer with dynamic authentication and configuration · b0527e79
      qiuqunfeng authored
      - Implement dynamic Kafka authentication mechanism (PLAIN/SCRAM)
      - Add environment variable-based Kafka broker and authentication configuration
      - Modify log consumer service to support flexible Kafka connection setup
      - Update Elasticsearch store initialization with new index template
      - Extend WAF service types to support listener name and hosts
      b0527e79
  4. 01 Mar, 2025 1 commit
    • qiuqunfeng's avatar
      Implement Kafka log consumer with Elasticsearch and database integration · 22159493
      qiuqunfeng authored
      - Add log consumer service to process WAF detection messages
      - Implement message handling with JSON unmarshaling
      - Save WAF detection logs to Elasticsearch
      - Update WAF service attack number in database
      - Modify ESStore to support bulk indexing with channel-based approach
      - Add constants for Kafka topics and Elasticsearch indices
      22159493
  5. 26 Feb, 2025 1 commit
    • qiuqunfeng's avatar
      Add support for bulk listener WAF configuration · 20c5b6e6
      qiuqunfeng authored
      - Introduced new API endpoint and service method to enable/disable WAF for multiple listeners
      - Updated router, controller, and service to support bulk listener WAF operations
      - Added new request type `EnableListenerWafsReq` to handle multiple listener configurations
      - Implemented logic to add or remove WAF configurations for specific listeners based on input
      20c5b6e6