From fef3e8fb056f42eff91fb2edc987656de8a426f2 Mon Sep 17 00:00:00 2001 From: Alon Girmonsky <1990761+alongir@users.noreply.github.com> Date: Wed, 29 Apr 2026 12:59:11 +0300 Subject: [PATCH] Add PostgreSQL protocol configuration (#1919) * Add MySQL protocol to default configuration Closes #1915 * Add PostgreSQL protocol configuration Co-Authored-By: Claude Opus 4.6 (1M context) --------- Co-authored-by: Alon Girmonsky Co-authored-by: Claude Opus 4.6 (1M context) --- config/configStruct.go | 6 ++++-- config/configStructs/tapConfig.go | 5 +++-- helm-chart/values.yaml | 3 +++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/config/configStruct.go b/config/configStruct.go index ff8c68c74..c587eb6c8 100644 --- a/config/configStruct.go +++ b/config/configStruct.go @@ -130,6 +130,7 @@ func CreateDefaultConfig() ConfigStruct { "kafka", "mongodb", "mysql", + "postgresql", "redis", // "sctp", // "syscall", @@ -150,8 +151,9 @@ func CreateDefaultConfig() ConfigStruct { AMQP: []uint16{5671, 5672}, KAFKA: []uint16{9092}, MONGODB: []uint16{27017}, - MYSQL: []uint16{3306}, - REDIS: []uint16{6379}, + MYSQL: []uint16{3306}, + POSTGRESQL: []uint16{5432}, + REDIS: []uint16{6379}, LDAP: []uint16{389}, DIAMETER: []uint16{3868}, }, diff --git a/config/configStructs/tapConfig.go b/config/configStructs/tapConfig.go index 7e88f737a..6cd8164bf 100644 --- a/config/configStructs/tapConfig.go +++ b/config/configStructs/tapConfig.go @@ -284,8 +284,9 @@ type PortMapping struct { AMQP []uint16 `yaml:"amqp" json:"amqp"` KAFKA []uint16 `yaml:"kafka" json:"kafka"` MONGODB []uint16 `yaml:"mongodb" json:"mongodb"` - MYSQL []uint16 `yaml:"mysql" json:"mysql"` - REDIS []uint16 `yaml:"redis" json:"redis"` + MYSQL []uint16 `yaml:"mysql" json:"mysql"` + POSTGRESQL []uint16 `yaml:"postgresql" json:"postgresql"` + REDIS []uint16 `yaml:"redis" json:"redis"` LDAP []uint16 `yaml:"ldap" json:"ldap"` DIAMETER []uint16 `yaml:"diameter" json:"diameter"` } diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 6b41ec81a..4b8906c9e 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -210,6 +210,7 @@ tap: - kafka - mongodb - mysql + - postgresql - redis - ws - ldap @@ -233,6 +234,8 @@ tap: - 27017 mysql: - 3306 + postgresql: + - 5432 redis: - 6379 ldap: