1. 05 Mar, 2025 1 commit
    • 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
  2. 04 Mar, 2025 1 commit
    • qiuqunfeng's avatar
      Update response types and utility functions · 2840d98a
      qiuqunfeng authored
      - Add `Code`, `Message`, and `StatusCode` fields to `SuccessResponse` and `FailResponse`
      - Remove `RespErr` struct and directly include error details in `FailResponse`
      - Modify `AssembleResponse` to use new response structure with standardized fields
      2840d98a
  3. 01 Mar, 2025 2 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
  4. 15 Feb, 2025 1 commit
  5. 05 Feb, 2025 1 commit