cloud-sql-python-connector icon indicating copy to clipboard operation
cloud-sql-python-connector copied to clipboard

chore: validate `user` format for automatic IAM authn

Open jackwotherspoon opened this issue 2 years ago • 0 comments

Adding a validation step to validate format of database user argument for better error handling and debugging when using automatic IAM database authentication.

Postgres: Removes .gserviceaccount.com domain suffix if it exists. MySQL: Removes everything after and including the @ sign. ([email protected] -> test-user)

Closes #429

jackwotherspoon avatar Sep 06 '22 12:09 jackwotherspoon