Replies: 1 comment 2 replies
-
While I didn't do it via docker/helm charts I was able to successfully make it work well enough for my team leverage Azure Managed Identify for almost everything (The code for REDIS still leverages a secret, but I had some commented lines to leverage managed identity logins....) This also pulls secrets from Azure keyvault leveraging the managed identity so there is no secrets in live code. I'm also running a little older version, so it should still work for 4.2.x (I'm working on a project to update it right now) I can't guarantee it. In configuration.py I made the following changes/tweaks to the default configuration.py file.
Below are a few links I leveraged to point me in the right direction in setting up the connections. How to connect to Postgres with managed identity using python - https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/connect-python?tabs=cmd%2Cpasswordless The only issues I have run into is that I have a chron job to restart Netbox every 24 hours due to the managed identity password changing causing the connection to Postgres to break. It's one the things that I'm sure can be done a lot cleaner to dynamically update it versus restarting the service. |
Beta Was this translation helpful? Give feedback.
-
I would like to use azure managed identity to connect to the postgres SQL database running in Azure.
We deploy netbox using the helm-chart which allows to provide the options
External database configuration
.Beta Was this translation helpful? Give feedback.
All reactions