I am able to access the mongodb using mongosh "mongodb://kachi.example.com:27017", also through port forwarding using kubectl port-forward
However failed when proxying through teleport, by running
Expected behavior:
tsh proxy / tsh db connect should be able to connect to mongodb
Current behavior:
MongoServerSelectionError: your Teleport role requires automatic database user provisioning but an attempt to activate database user "kachi-app" failed due to the following error: server selection error: server selection timeout, current topology: { Type: ReplicaSetNoPrimary, Servers: [{ Addr: kachi.example.com:27017, Type: Unknown, Last error: EOF }, { Addr: kachi.example.com:27017, Type: Unknown, Last error: EOF }, ] }
Bug details:
Teleport version: 17.0.2 CE ( Just updated, previously was 16.4.7 ), both version failed though
Background: I deployed Teleport and MongoDB through Helm Charts. Here the config i used to deploy: Teleport Kube Agent
Teleport Role
proxyListenerMode: multiplex chartMode: gcp MongoDB: tls disabled
I am able to access the mongodb using
mongosh "mongodb://kachi.example.com:27017"
, also through port forwarding usingkubectl port-forward
However failed when proxying through teleport, by runningor
Please note: I have read the documentation below few times:
Expected behavior: tsh proxy / tsh db connect should be able to connect to mongodb
Current behavior:
Bug details:
docker.io/bitnami/mongodb:8.0.3-debian-12-r0