1. 01 Mar, 2025 3 commits
    • 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
    • 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
    • qiuqunfeng's avatar
      Add name field to ListenerWaf struct and update dependencies · 6f4bd708
      qiuqunfeng authored
      - Added `Name` field to `ListenerWaf` struct in `internal/service/types.go`
      - Updated Go module dependencies, adding Elasticsearch client library
      - Removed `CreateListener` method from `waf.go` service
      6f4bd708
  2. 28 Feb, 2025 3 commits
    • qiuqunfeng's avatar
      Update config struct tags from YAML to JSON · fac776fe
      qiuqunfeng authored
      - Changed struct tags in `cmd/app/config.go` from `yaml` to `json`
      - Maintains existing configuration structure while switching serialization format
      fac776fe
    • qiuqunfeng's avatar
      Switch from YAML to JSON configuration and rule files · ea21cd21
      qiuqunfeng authored
      - Updated config loading in `cmd/app/config.go` to use JSON instead of YAML
      - Modified `internal/service/waf.go` to read WAF rules from JSON file
      - Removed YAML library imports and replaced with JSON unmarshaling
      - Updated file extensions from `.yaml` to `.json` in file reading logic
      ea21cd21
    • qiuqunfeng's avatar
      Refactor EnableListenerWafs to support new listener format · 59201340
      qiuqunfeng authored
      - Updated `EnableListenerWafsReq` struct to use string slice for listeners
      - Modified WAF service method to parse listener string into hosts and port
      - Simplified listener WAF configuration logic to work with new listener representation
      - Added error handling for port parsing and listener format validation
      59201340
  3. 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
  4. 18 Feb, 2025 5 commits
  5. 17 Feb, 2025 12 commits
  6. 15 Feb, 2025 2 commits
  7. 06 Feb, 2025 11 commits
  8. 05 Feb, 2025 3 commits