1. 28 Apr, 2025 1 commit
  2. 16 Apr, 2025 1 commit
  3. 15 Apr, 2025 1 commit
  4. 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
  5. 02 Apr, 2025 3 commits
  6. 01 Apr, 2025 4 commits
  7. 31 Mar, 2025 10 commits
  8. 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
  9. 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
  10. 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
  11. 21 Mar, 2025 1 commit
    • qiuqunfeng's avatar
      Update WAF operation constants to use localized strings · 3d7cd866
      qiuqunfeng authored
      - Change operation constants for creation and deletion from English to Chinese ("新建" and "删除").
      - Update the addListenerHistory method to accept the Operation type instead of a string for better type safety and clarity in logging operations.
      3d7cd866
  12. 20 Mar, 2025 3 commits
    • qiuqunfeng's avatar
      Add listener history endpoint and implement history logging · 7a0e8ca0
      qiuqunfeng authored
      - Introduce a new GET endpoint for listing listener history in the WAF router.
      - Implement ListListenerHistory method in the WafController to handle requests and return paginated results based on query parameters.
      - Enhance the WAF service to log listener creation and deletion events, capturing relevant details for auditing purposes.
      - Update the WafListenerHistory model and service methods to support querying and storing listener history data effectively.
      7a0e8ca0
    • qiuqunfeng's avatar
      Enhance GetBlackWhiteLists method to return total count of items · 7aeb7fbb
      qiuqunfeng authored
      - Update the GetBlackWhiteLists method in both the service and controller layers to return the total number of items alongside the list of MatcherExpr.
      - Modify response structure in the controller to include total items for improved client-side handling.
      - Ensure proper error handling and maintain existing functionality while enhancing data retrieval capabilities.
      7aeb7fbb
    • qiuqunfeng's avatar
      Refactor EnableBlackWhiteList method to use Model update for status change · 5a77e771
      qiuqunfeng authored
      - Update the database operation in the EnableBlackWhiteList method to use Model and Where clauses for a more precise status update.
      - Improve the clarity and efficiency of the database interaction within the WAF service.
      5a77e771
  13. 19 Mar, 2025 5 commits
  14. 18 Mar, 2025 1 commit
    • qiuqunfeng's avatar
      Add ListWafs endpoint and service method for WAF management · f9077078
      qiuqunfeng authored
      - Introduce ListWafs method in WafController to retrieve a list of WAF services
      - Update WAF router to include new GET routes for listing WAFs
      - Implement ListWafs method in the service layer to fetch WAF data from the database
      - Enhance the MatcherExpr and WafService structures to support new functionality
      f9077078