vault/plugins/database/mongodb
Konstantinos Tsanaktsidis cf46961f75 Fix a panic in MongoDB backend with concurrent create/revoke (#5463)
When Vault is concurrently creating and revoking leases for MongoDB
users as part of the database secrets engine, and then loses connection
to MongoDB, it can panic. This occurrs because the RevokeUser path does
_not_ lock the mutex, but the CreateUser path does. Both threads of
execution can concurently decide to call c.session.Close() in
mongodb/connection_producer.go:119, and then mgo panics when the second
close attempt occurs.
2018-10-04 09:51:08 -04:00
..
mongodb-database-plugin Fix flag parsing on database plugins, exit on parse error (#3305) 2017-09-07 16:30:00 -04:00
connection_producer.go Database Root Credential Rotation (#3976) 2018-03-21 15:05:56 -04:00
mongodb_test.go Clean up container on connection failure, switch to ory/dockertest on package postgresql (#5050) 2018-08-07 09:56:33 -07:00
mongodb.go Fix a panic in MongoDB backend with concurrent create/revoke (#5463) 2018-10-04 09:51:08 -04:00
util.go Mongodb plugin (#2698) 2017-05-11 17:38:54 -04:00