1. 30 Mar, 2025 1 commit
  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. 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
  4. 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
  5. 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
  6. 19 Mar, 2025 5 commits
  7. 18 Mar, 2025 2 commits
    • 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
    • qiuqunfeng's avatar
      Add labels to ConfigMap creation in WAF service · efd47f51
      qiuqunfeng authored
      - Introduce a label to the ConfigMap for black/white list to enhance identification and management
      - Add logging for the ConfigMap name to improve visibility during configuration creation
      efd47f51
  8. 17 Mar, 2025 2 commits
  9. 14 Mar, 2025 4 commits
  10. 11 Mar, 2025 1 commit
    • qiuqunfeng's avatar
      Add ServiceID to WAF creation and enable listener WAF flow · a4c820e1
      qiuqunfeng authored
      - Extend CreateWafReq struct with ServiceID field
      - Update CreateWaf method to include ServiceID in WAF configuration
      - Implement getServiceID method to retrieve or create WAF service
      - Modify EnableListenerWaf to handle ServiceID retrieval and creation
      - Ensure consistent WAF service tracking across different operations
      a4c820e1
  11. 07 Mar, 2025 4 commits
  12. 06 Mar, 2025 1 commit
    • qiuqunfeng's avatar
      Add Elasticsearch-based WAF attack log and rule listing endpoints · 79468cd7
      qiuqunfeng authored
      - Integrate Elasticsearch client for querying WAF attack logs
      - Add new API endpoints for listing attack logs and WAF rules
      - Implement pagination and filtering for attack log retrieval
      - Support language-based rule category display
      - Update service and controller layers to support new functionality
      79468cd7
  13. 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
  14. 04 Mar, 2025 3 commits
    • qiuqunfeng's avatar
      Add WAF mode to CreateWaf and EnableListenerWaf requests · bb958705
      qiuqunfeng authored
      - Extend CreateWafReq and EnableListenerWafReq structs with Mode field
      - Update CreateWaf method to use requested WAF mode
      - Modify EnableListenerWafs to retrieve and apply WAF mode from existing service
      - Ensure mode is consistently passed through WAF service operations
      bb958705
    • qiuqunfeng's avatar
      Update WAF service mode update to set listener mode · a1ed13b0
      qiuqunfeng authored
      - Add direct mode assignment to listener specification
      - Ensure listener mode is updated during concurrent processing
      - Simplify mode update logic in UpdateMode method
      a1ed13b0
    • qiuqunfeng's avatar
      Improve WAF service mode update with concurrent listener processing · 1d95943f
      qiuqunfeng authored
      - Add synchronization mechanism using sync.WaitGroup
      - Implement concurrent goroutine updates for WAF service listeners
      - Ensure all listener updates complete before returning
      - Create local listener variable to prevent goroutine closure issues
      1d95943f
  15. 03 Mar, 2025 6 commits
    • qiuqunfeng's avatar
      Enhance WAF service mode update with listener synchronization · 0fabf210
      qiuqunfeng authored
      - Implement concurrent listener mode updates for WAF services
      - Add client retrieval and listing of listeners by gateway name
      - Return updated WAF service metadata after mode modification
      - Improve error handling for client and listener operations
      0fabf210
    • qiuqunfeng's avatar
      Fix listener host parsing in EnableListenerWafs method · bf474a69
      qiuqunfeng authored
      - Add error logging for listener list retrieval
      - Modify host extraction to use substring before port separator
      - Improve error handling and logging in WAF service method
      bf474a69
    • qiuqunfeng's avatar
      Refactor EnableListenerWaf method and remove host column from WAF services table · 4bb0b53d
      qiuqunfeng authored
      - Commented out database operations in `EnableListenerWaf` method
      - Simplified WAF creation and deletion logic using request parameters
      - Removed `host` column from `waf_services` table migration
      - Updated logging to use request parameters instead of listener object
      4bb0b53d
    • qiuqunfeng's avatar
      Add listener details to WAF service response · 75afb8d4
      qiuqunfeng authored
      - Modify `WafService` struct to include listener information
      - Update `GetWaf` method to retrieve and format listener details
      - Enhance `ListListenerWafStatus` to return hosts for each listener
      - Remove commented-out code and unused port list logic
      75afb8d4
    • qiuqunfeng's avatar
      Update listener port parsing in WAF service · 286f81ee
      qiuqunfeng authored
      - Modify comment to clarify port extraction from `HostsAndPort` field
      - Improve code readability by updating inline documentation
      286f81ee
    • qiuqunfeng's avatar
      Update WAF service types and migration for listener configuration · 055b870b
      qiuqunfeng authored
      - Modify `ListenerWaf` struct to use single `HostsAndPort` field instead of separate `Hosts` and `Port`
      - Update `EnableListenerWafsReq` to use `ListenerWaf` slice for listeners
      - Change `waf_services` table migration to use `BIGINT` and `AUTO_INCREMENT`
      - Adjust `EnableListenerWafs` method to parse new listener format
      - Add logging for listener name during WAF configuration
      055b870b
  16. 01 Mar, 2025 1 commit
    • qiuqunfeng's avatar
      Refactor WAF service creation and error handling · 7ba7c191
      qiuqunfeng authored
      - Improve CreateWaf method by adding validation for rule count
      - Update error messages in cluster client retrieval
      - Return WafService struct with basic metadata on successful creation
      - Remove commented-out legacy code
      - Enhance error handling in DeleteListenerWaf and CreateWaf methods
      7ba7c191