You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Django by default uses username/password db authentication, if you don't change the engine, you'll be stuck with error asking for the service account password.
Desired Behavior
Hei folks. I just came out from rabbit hole of running netbox in gcp cloud run and would like to ask you to add support for gcp iam auth to be able to connect netbox to cloud sql database without password using service account.
See https://cloud.google.com/sql/docs/postgres/iam-logins and https://cloud.google.com/sql/docs/postgres/connect-run for more info.
This is needed, tested, works:
pip install --upgrade google-auth django-gcp-iam-auth
configuration.py
DATABASE section to support newENGINE
type and optiongpc_iam_auth
:Contrast to Current Behavior
Django by default uses username/password db authentication, if you don't change the engine, you'll be stuck with error asking for the service account password.
Required Changes
pip install --upgrade google-auth django-gcp-iam-auth
in
configuration.py
Discussion: Benefits and Drawbacks
No response
The text was updated successfully, but these errors were encountered: