- 03 Mar, 2025 1 commit
-
-
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
-
- 01 Mar, 2025 3 commits
-
-
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
-
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
-
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
-
- 28 Feb, 2025 2 commits
-
-
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
-
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
-
- 26 Feb, 2025 1 commit
-
-
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
-
- 18 Feb, 2025 5 commits
-
-
qiuqunfeng authored
- Added log statements to help debug API Gateway listener list retrieval - Logs the raw response and parsed response for troubleshooting purposes
-
qiuqunfeng authored
-
qiuqunfeng authored
-
qiuqunfeng authored
-
qiuqunfeng authored
- Modified SQL migration to add 'hosts' column to gateway_listeners table - Updated model, service, and controller to support hosts in gateway listener operations - Added new GetWafGatewayInfo method to retrieve WAF gateway information - Refactored WAF service methods to handle hosts and improve flexibility
-
- 17 Feb, 2025 5 commits
-
-
qiuqunfeng authored
-
qiuqunfeng authored
-
qiuqunfeng authored
-
qiuqunfeng authored
-
qiuqunfeng authored
-
- 15 Feb, 2025 2 commits
-
-
qiuqunfeng authored
-
qiuqunfeng authored
-
- 06 Feb, 2025 4 commits
-
-
qiuqunfeng authored
-
qiuqunfeng authored
-
qiuqunfeng authored
-
qiuqunfeng authored
-
- 05 Feb, 2025 1 commit
-
-
qiuqunfeng authored
-