1. 12 Jun, 2025 3 commits
    • qiuqunfeng's avatar
      Comment out WAF detection and event generation logic in LogConsumerService to... · 4835dac7
      qiuqunfeng authored
      Comment out WAF detection and event generation logic in LogConsumerService to simplify handling and improve readability. This change prepares the code for future enhancements while maintaining the current functionality.
      4835dac7
    • qiuqunfeng's avatar
      Refactor WAF detection handling in LogConsumerService to improve event generation and error logging · 9d8c640a
      qiuqunfeng authored
      This update replaces direct assignment of WAF detection properties with a new method for generating WAF detections and events, enhancing code clarity and maintainability. Additionally, error handling has been improved to log failures during the generation process, ensuring better visibility into issues that may arise.
      9d8c640a
    • qiuqunfeng's avatar
      Refactor API router and WAF handling to support additional parameters and... · eb384897
      qiuqunfeng authored
      Refactor API router and WAF handling to support additional parameters and improve configuration management
      
      This update modifies the SetRouters and SetWafRouter functions to accept new parameters, including a debug flag and a region URL map, enhancing the flexibility of the API routing. Additionally, a new SetApiRouters function is introduced for better organization of API routes. The configuration management has been streamlined by moving configuration imports to the internal package, ensuring a more consistent structure across the application.
      eb384897
  2. 05 Jun, 2025 1 commit
  3. 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
  4. 28 Apr, 2025 1 commit
  5. 16 Apr, 2025 2 commits
  6. 15 Apr, 2025 1 commit
  7. 03 Apr, 2025 1 commit
    • qiuqunfeng's avatar
      Add attack log counting to GetWaf method for current day · d00530ed
      qiuqunfeng authored
      This update introduces functionality to count attack logs for the current day within the GetWaf method. It utilizes a boolean query to filter logs based on the service ID and the attack time range, enhancing the WAF service's ability to track and report attack activity accurately.
      d00530ed
  8. 02 Apr, 2025 3 commits
  9. 01 Apr, 2025 4 commits
  10. 31 Mar, 2025 12 commits
  11. 30 Mar, 2025 5 commits
    • qiuqunfeng's avatar
      Add endpoints for detailed attack log retrieval in WAF API · 85023784
      qiuqunfeng authored
      - Introduce new API routes for fetching attack log details and response packages.
      - Implement corresponding methods in the WafController and wafService to handle the new functionality.
      - Update service interface and types to support the new data structures for attack logs and responses.
      85023784
    • qiuqunfeng's avatar
      Refactor WAF rule category handling for improved clarity and efficiency · a9badba3
      qiuqunfeng authored
      - Update the logic in getRulesForService and calculateCrdWafRules methods to simplify the process of enabling rule categories based on the RuleCategoryStatus.
      - Introduce a new helper method isCategoryEnabled to streamline category checks and enhance code readability.
      a9badba3
    • qiuqunfeng's avatar
      Refactor UpdateRule method to improve WAF service rule updates · 7f3bab59
      qiuqunfeng authored
      - Modify the UpdateRule method to assign the RuleCategoryStatus directly to the wafService before updating the database.
      - Enhance error handling for the database update operation to ensure clarity in failure cases.
      7f3bab59
    • qiuqunfeng's avatar
      Implement WAF rules calculation and update logic · 7df18457
      qiuqunfeng authored
      - Add calculateCrdWafRules method to compute WAF rules based on enabled categories.
      - Introduce updateRulesForCrd method to update WAF service rules in the cluster.
      - Modify UpdateRule method to include rules update after fetching the WAF service record.
      - Remove commented-out GetRuleCategories method for code clarity.
      7df18457
    • qiuqunfeng's avatar
      Enhance ListRules method to support localized filtering by name · 43bf5d54
      qiuqunfeng authored
      - Modify the ListRules method in the WAF service to allow filtering of rule categories based on the specified language and name.
      - Implement dynamic query construction to support localization for both Chinese and English categories.
      43bf5d54
  12. 29 Mar, 2025 3 commits
  13. 28 Mar, 2025 3 commits
    • qiuqunfeng's avatar
      Add attack classes endpoint and service implementation · c38228a3
      qiuqunfeng authored
      - Introduce a new GET endpoint for listing attack classes in the WAF router.
      - Implement AttackClassesList method in WafController to handle requests and return attack class data based on the specified language.
      - Enhance the WAF service with ListAttackClasses method to retrieve attack classes and support localization for descriptions.
      - Define AttackClasses struct to standardize the response format for attack class data.
      c38228a3
    • qiuqunfeng's avatar
      fix · f77ce263
      qiuqunfeng authored
      f77ce263
    • qiuqunfeng's avatar
      Enhance ListListenerHistory method to support multiple LIKE conditions · 7d814c33
      qiuqunfeng authored
      - Update the ListListenerHistory method to allow querying by multiple fields using LIKE conditions, specifically for 'name', 'listener_name', and 'gateway_name'.
      7d814c33