From 81d5ca8ffccb68105a4eded6431e7afa26b9c260 Mon Sep 17 00:00:00 2001 From: Alon Girmonsky Date: Mon, 6 Apr 2026 12:39:44 -0700 Subject: [PATCH] Enable MongoDB protocol dissector Add mongodb to the enabled dissectors list and port mapping (27017) in both Go config defaults and Helm chart values. Co-Authored-By: Claude Opus 4.6 (1M context) --- config/configStruct.go | 2 ++ config/configStructs/tapConfig.go | 1 + helm-chart/values.yaml | 3 +++ 3 files changed, 6 insertions(+) diff --git a/config/configStruct.go b/config/configStruct.go index 04e463759..a2f1c04ce 100644 --- a/config/configStruct.go +++ b/config/configStruct.go @@ -128,6 +128,7 @@ func CreateDefaultConfig() ConfigStruct { "http", "icmp", "kafka", + "mongodb", "redis", // "sctp", // "syscall", @@ -147,6 +148,7 @@ func CreateDefaultConfig() ConfigStruct { HTTP: []uint16{80, 443, 8080}, AMQP: []uint16{5671, 5672}, KAFKA: []uint16{9092}, + MONGODB: []uint16{27017}, REDIS: []uint16{6379}, LDAP: []uint16{389}, DIAMETER: []uint16{3868}, diff --git a/config/configStructs/tapConfig.go b/config/configStructs/tapConfig.go index f6bce6917..1199f2355 100644 --- a/config/configStructs/tapConfig.go +++ b/config/configStructs/tapConfig.go @@ -282,6 +282,7 @@ type PortMapping struct { HTTP []uint16 `yaml:"http" json:"http"` AMQP []uint16 `yaml:"amqp" json:"amqp"` KAFKA []uint16 `yaml:"kafka" json:"kafka"` + MONGODB []uint16 `yaml:"mongodb" json:"mongodb"` 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 9be64a54e..8a024cde6 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -205,6 +205,7 @@ tap: - http - icmp - kafka + - mongodb - redis - ws - ldap @@ -224,6 +225,8 @@ tap: - 5672 kafka: - 9092 + mongodb: + - 27017 redis: - 6379 ldap: