open-vault/plugins/database/mongodb
Michael Golowka 8d754f552b
Enable root user credential rotation in MongoDB (#8540)
* Enable root user credential rotation in MongoDB

This takes its logic from the SetCredentials function with some changes
(ex: it's generating a password rather than taking one as a parameter).

This will error if the username isn't specified in the config. Since
Mongo defaults to unauthorized, this seemed like an easy check to make
to prevent strange behaviors when it tries to rotate the "" user.
2020-05-15 11:24:10 -06:00
..
mongodb-database-plugin Update to api 1.0.1 and sdk 0.1.8 2019-04-15 14:10:07 -04:00
README.md Add x509 Client Auth to MongoDB Database Plugin (#8329) 2020-02-13 15:54:00 -07:00
cert_helpers_test.go Add x509 Client Auth to MongoDB Database Plugin (#8329) 2020-02-13 15:54:00 -07:00
connection_producer.go Enable root user credential rotation in MongoDB (#8540) 2020-05-15 11:24:10 -06:00
connection_producer_test.go Add x509 Client Auth to MongoDB Database Plugin (#8329) 2020-02-13 15:54:00 -07:00
mongodb.go Enable root user credential rotation in MongoDB (#8540) 2020-05-15 11:24:10 -06:00
mongodb_test.go Enable root user credential rotation in MongoDB (#8540) 2020-05-15 11:24:10 -06:00
util.go Add x509 Client Auth to MongoDB Database Plugin (#8329) 2020-02-13 15:54:00 -07:00

README.md

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.