1. 17 Apr, 2025 1 commit
    • qiuqunfeng's avatar
      Add logging for RDB_PASSWORD in LoadConfig and create new WAF tables · b9c63b91
      qiuqunfeng authored
      This update adds a log statement to the LoadConfig function to output the RDB_PASSWORD for better visibility during configuration loading. Additionally, it introduces new SQL tables for `waf_listener_histories` and `waf_blackwhitelists`, enhancing the database schema to support WAF functionalities.# Please enter the commit message for your changes. Lines starting
      b9c63b91
  2. 16 Apr, 2025 2 commits
  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 12 commits
  8. 30 Mar, 2025 7 commits
  9. 29 Mar, 2025 4 commits
  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 1 commit
    • 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