vault/plugins/database/mongodb
Mathias Top 17054b52a4
fix mongodb connection issue when using TLS client + username/password authentication (#30073)
* fix mongodb connection issue when using TLS client + username/password authentication

* add changelog file

* fix authMecanism more properly - add test for TLS and User/Password auth

* add godoc on TestGetTLSAndUserPasswordAuth

* update test to be included in TestGetTLSAuth - replace value by constant
2025-06-16 14:22:44 -04:00
..
mongodb-database-plugin [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
cert_helpers_test.go Use go-secure-stdlib's RSA key generator backed by a DRBG (#29020) 2024-12-05 15:39:16 -06:00
connection_producer_test.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
connection_producer.go fix mongodb connection issue when using TLS client + username/password authentication (#30073) 2025-06-16 14:22:44 -04:00
mongodb_test.go fix mongodb connection issue when using TLS client + username/password authentication (#30073) 2025-06-16 14:22:44 -04:00
mongodb.go MongoDB database secret engine - rotate-root - Only default to admin if DB blank (#23240) 2023-10-03 20:28:25 -05:00
README.md Add x509 Client Auth to MongoDB Database Plugin (#8329) 2020-02-13 15:54:00 -07:00
util.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00

MongoDB Tests

The test TestInit_clientTLS cannot be run within CircleCI in its current form. This is because it's not possible to use volume mounting with the docker executor.

Because of this, the test is skipped. Running this locally shouldn't present any issues as long as you have docker set up to allow volume mounting from this directory:

go test -v -run Init_clientTLS

This may be able to be fixed if we mess with the entrypoint or the command arguments.