Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
database/sql: Support for changing the username and password of an existing connection #17727
Opening as per the suggestion in https://groups.google.com/forum/#!topic/golang-nuts/_OakZP-dLZw
My use case for this feature it to support rotating username and passwords using Vault. Vault leases database usernames and passwords and forces clients to rotate them before expiry. Be able to update the username and password of an existing connection pool would be extremely useful.
All drivers currently use the DSN to pass in the username and password, so perhaps this could be generalized to updating the DSN of an existing database connection pool.