HI there,
I'm trying to set this for one of our database configs and the below is the get request:
"request_id": “fdkfjkdfjkldjfkldjflkjk”,
"lease_id": "",
"renewable": false,
"lease_duration": 0,
"data": {
"allowed_roles": [
“my-read-role”,
“my-write-role”
],
"connection_details": {
"connection_url": "postgresql://myadminuser:mypas...@postgresdb.blah:5432/mydb?sslmode=require",
"max_connection_lifetime": "30s",
"max_idle_connections": 0,
"max_open_connections": 5
},
"plugin_name": "postgresql-database-plugin"
},
"wrap_info": null,
"warnings": null,
"auth": null
}
And i'm looking at these options specifically:
"max_connection_lifetime": "30s",
"max_idle_connections": 0,
"max_open_connections": 5
But when i start for example 15 containers I only see one connection for myadminuser to the DB (for adding the users) and i would expect to see 5. I see the users get added to the DB, but it seems that vault uses 1 connection (with the myadminuser) rather than creating 5 connections (when I list active connections from the sql side).
My question is, was this supported in version 0.8.3 of vault, and if so, when would i see multiple connections for 'myadminuser' for creating the temp db users for the app to use to auth to the db?
Cheers,
Simon.