-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PostgreSQL should emit connection strings #317
Comments
Adding to the 0.6 milestone as we have some work around postgres planned for that. I can't promise that this will actually be added, but I want to make sure that we don't forget about it so that it is in the discussion. |
If this issue is only about reading the configured parameters, it will be fixed by #1515 |
Fixed by #1515 |
I think this is a different ask -- the connection strings being asked for here will have information about the generated user, not the higher level connection information valid for the static admin user. |
+1 but for MySQL backend, please. I noticed the issue labels don't cover this backend even though you closed another issue for MySQL concerning this as a duplicate. |
Issue labels don't really matter in this context :-) |
Making sure. Thanks :) Here's another gotcha, what if I need the Vault server to use one hostname/IP or connection string, whereas my application uses a different hostname? Use cases involve multiple AWS VPCs that I've peered together using IPSec and custom hostnames to tunnel AWS RDS instances, where my apps all have direct access to their own RDS no matter what. A definable custom string would be handy for this, although I can always just store this in another generic backend. |
Please don't! |
Any plans to get this one going? Surprised that there are not that many people asking for it. Is there a workaround? I mean something better than building connection string yourself using received temp creds |
@Andrey9kin Not currently, there's very little demand - a handful of requests over the years. If someone wanted to work on a PR we could help with making sure the design is right. |
@jefferai how hard could it be? ;) doesn't feel like something big. I guess extend plugins/helper/database/credsutil/sql.go to return one more value and then roll from there, right? |
or perhaps it should be more specific since databases have a different format for connection strings... |
Yea, we never decided on a response format. |
I think returning the |
It'd be valuable to have the PostgreSQL backend (and other database backends) emit full connection strings; maybe via a template.
Currently we've gotta wire together that information from multiple locations (e.g. retrieve the address & db name in consul, and user/pass from vault), even though vault should have most/all of the info required
maybe a
vault read MOUNT/connection/ROLE
?The text was updated successfully, but these errors were encountered: