Add Kafka log consumer with dynamic authentication and configuration
- 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
Showing
... | @@ -4,6 +4,9 @@ go 1.20 | ... | @@ -4,6 +4,9 @@ go 1.20 |
require ( | require ( | ||
github.com/gin-gonic/gin v1.10.0 | github.com/gin-gonic/gin v1.10.0 | ||
github.com/olivere/elastic/v7 v7.0.32 | |||
github.com/segmentio/kafka-go v0.4.47 | |||
github.com/sony/sonyflake v1.0.0 | |||
gorm.io/driver/mysql v1.5.0 | gorm.io/driver/mysql v1.5.0 | ||
gorm.io/gorm v1.25.12 | gorm.io/gorm v1.25.12 | ||
k8s.io/apimachinery v0.27.2 | k8s.io/apimachinery v0.27.2 | ||
... | @@ -40,8 +43,8 @@ require ( | ... | @@ -40,8 +43,8 @@ require ( |
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect | golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect | ||
google.golang.org/appengine v1.6.7 // indirect | google.golang.org/appengine v1.6.7 // indirect | ||
gopkg.in/inf.v0 v0.9.1 // indirect | gopkg.in/inf.v0 v0.9.1 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 | gopkg.in/yaml.v2 v2.4.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 | gopkg.in/yaml.v3 v3.0.1 // indirect | ||
k8s.io/api v0.27.2 // indirect | k8s.io/api v0.27.2 // indirect | ||
k8s.io/gengo v0.0.0-20210813121822-485abfe95c7c // indirect | k8s.io/gengo v0.0.0-20210813121822-485abfe95c7c // indirect | ||
k8s.io/klog/v2 v2.90.1 // indirect | k8s.io/klog/v2 v2.90.1 // indirect | ||
... | @@ -55,10 +58,10 @@ require ( | ... | @@ -55,10 +58,10 @@ require ( |
require ( | require ( | ||
github.com/inconshreveable/mousetrap v1.1.0 // indirect | github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
github.com/klauspost/compress v1.15.9 // indirect | github.com/klauspost/compress v1.15.9 // indirect | ||
github.com/olivere/elastic/v7 v7.0.32 // indirect | |||
github.com/pierrec/lz4/v4 v4.1.15 // indirect | github.com/pierrec/lz4/v4 v4.1.15 // indirect | ||
github.com/segmentio/kafka-go v0.4.40 // indirect | github.com/xdg-go/pbkdf2 v1.0.0 // indirect | ||
github.com/sony/sonyflake v1.0.0 // indirect | github.com/xdg-go/scram v1.1.2 // indirect | ||
github.com/xdg-go/stringprep v1.0.4 // indirect | |||
) | ) | ||
require ( | require ( | ||
... | @@ -72,7 +75,7 @@ require ( | ... | @@ -72,7 +75,7 @@ require ( |
github.com/go-playground/universal-translator v0.18.1 // indirect | github.com/go-playground/universal-translator v0.18.1 // indirect | ||
github.com/go-playground/validator/v10 v10.22.0 // indirect | github.com/go-playground/validator/v10 v10.22.0 // indirect | ||
github.com/goccy/go-json v0.10.3 // indirect | github.com/goccy/go-json v0.10.3 // indirect | ||
github.com/json-iterator/go v1.1.12 // indirect | github.com/json-iterator/go v1.1.12 | ||
github.com/klauspost/cpuid/v2 v2.2.8 // indirect | github.com/klauspost/cpuid/v2 v2.2.8 // indirect | ||
github.com/leodido/go-urn v1.4.0 // indirect | github.com/leodido/go-urn v1.4.0 // indirect | ||
github.com/mattn/go-colorable v0.1.13 // indirect | github.com/mattn/go-colorable v0.1.13 // indirect | ||
... | ... |
internal/middleware/auth.go
0 → 100644
internal/middleware/types.go
0 → 100644
internal/utils/errors.go
0 → 100644
Please register or sign in to comment