netbox-community / netbox-docker

🐳 Docker Image of NetBox
https://github.com/netbox-community/netbox-docker/wiki
Apache License 2.0
1.73k stars 800 forks source link

SUPERUSER_PASSWORD and SUPERUSER_API_TOKEN overwrite during container redeployment #1214

Closed marsteel closed 2 months ago

marsteel commented 2 months ago

Related Issue:

New Behavior

Update superuser's password and API token after container redeployment. The superuser password and API token can be rotated regularly when secrets stored in secrets manager in cloud service provider. It will be convenient that SSO is in place but local superuser credential is kept as last resort.

...

Contrast to Current Behavior

Current behavior doesn't support superuser credential secrets rotation. ...

Discussion: Benefits and Drawbacks

Security improvement

Yes

...

Changes to the Wiki

Add description about secret rotation to https://github.com/netbox-community/netbox-docker/wiki/Configuration#configure-for-production

...

Proposed Release Note Entry

Add environment variable SUPERUSER_PASSWORD_OVERWRITE to allow SUPERUSER_PASSWORD and SUPERUSER_API_TOKEN to be updated in database as secrets rotation during container redeployment.

...

Double Check