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.
This discussion was converted from issue #1361 on January 04, 2025 09:38.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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
Beta Was this translation helpful? Give feedback.
All reactions