Add 2-Factor Authentication to netbox #1639

Closed
opened 2025-12-29 16:33:44 +01:00 by adam · 5 comments
Owner

Originally created by @wenners on GitHub (Mar 22, 2018).

Issue type

[x] Feature request
[ ] Bug report
[ ] Documentation

Environment

  • Python version: 2.7.5
  • NetBox version: 2.3.2

Description

A detailed description of the proposed functionality

Add 2FA to netbox. Users should be able to log in securely by utilizing 2FA. Most commenly this would be a software generator for TOTP like Google Authenticator. It should also be possible for the Admin to enforce site-wide 2FA authentication, depending on the own paranoia / security demand.

A use case for the new feature

Netbox is holding the most crucial information about the site-wide infrastructure in the DC. This is very valuable information and should be protected and kept as secure as possible.
2FA will add an additional layer of security-

A rough description of any necessary changes to the database schema

No idea...

Any relevant third-party libraries which would be needed

Googling around I came across https://github.com/Bouke/django-two-factor-auth which is already a complete information of 2FA for Django which should fit very nicely to netbox. Reading through the documentation seemed like it should be no rocket-science to integrate this into netbox

Originally created by @wenners on GitHub (Mar 22, 2018). ### Issue type [x] Feature request <!-- An enhancement of existing functionality --> [ ] Bug report <!-- Unexpected or erroneous behavior --> [ ] Documentation <!-- A modification to the documentation --> ### Environment * Python version: 2.7.5 * NetBox version: 2.3.2 ### Description #### A detailed description of the proposed functionality Add 2FA to netbox. Users should be able to log in securely by utilizing 2FA. Most commenly this would be a software generator for TOTP like Google Authenticator. It should also be possible for the Admin to enforce site-wide 2FA authentication, depending on the own paranoia / security demand. #### A use case for the new feature Netbox is holding the most crucial information about the site-wide infrastructure in the DC. This is very valuable information and should be protected and kept as secure as possible. 2FA will add an additional layer of security- #### A rough description of any necessary changes to the database schema No idea... #### Any relevant third-party libraries which would be needed Googling around I came across https://github.com/Bouke/django-two-factor-auth which is already a complete information of 2FA for Django which should fit very nicely to netbox. Reading through the documentation seemed like it should be no rocket-science to integrate this into netbox
adam added the status: accepted label 2025-12-29 16:33:44 +01:00
adam closed this issue 2025-12-29 16:33:44 +01:00
Author
Owner

@wenners commented on GitHub (Mar 23, 2018):

Sorry - I missed in my initial search #118 but it looks like there the mentioned framework for Django was back then not taken into consideration/not available. Please have a look at it, if that would be a feasable way for 2FA.
Thanks
Sebastian

@wenners commented on GitHub (Mar 23, 2018): Sorry - I missed in my initial search #118 but it looks like there the mentioned framework for Django was back then not taken into consideration/not available. Please have a look at it, if that would be a feasable way for 2FA. Thanks Sebastian
Author
Owner

@LukeDRussell commented on GitHub (May 22, 2018):

https://github.com/digitalocean/netbox/issues/1677 would allow you to implement the MFA at the SAML provider, keeping Netbox out of it.

@LukeDRussell commented on GitHub (May 22, 2018): https://github.com/digitalocean/netbox/issues/1677 would allow you to implement the MFA at the SAML provider, keeping Netbox out of it.
Author
Owner

@kkirsche commented on GitHub (Jul 1, 2018):

I'd recommend including support for universal second factor (U2F) to support hardware tokens such as the Yubikey. Today, U2F works with a number of publicly available and business-use services such as Google, Salesforce, Dropbox, Github, Gitlab, and Bitbucket accounts. As a result, having support for U2F would allow Netbox to integrate well with environments leveraging the extra security of hardware tokens

@kkirsche commented on GitHub (Jul 1, 2018): I'd recommend including support for universal second factor (U2F) to support hardware tokens such as the Yubikey. Today, U2F works with a number of publicly available and business-use services such as Google, Salesforce, Dropbox, Github, Gitlab, and Bitbucket accounts. As a result, having support for U2F would allow Netbox to integrate well with environments leveraging the extra security of hardware tokens
Author
Owner

@efazenda commented on GitHub (Jul 31, 2018):

+1 for the support of Yubikey and U2F standard. (2FA is now the minimum of security best practices) is this possible to add priority on this feature ?

Thanks for the support and netbox !

Best Regards, Edouard Fazenda.

@efazenda commented on GitHub (Jul 31, 2018): +1 for the support of Yubikey and U2F standard. (2FA is now the minimum of security best practices) is this possible to add priority on this feature ? Thanks for the support and netbox ! Best Regards, Edouard Fazenda.
Author
Owner

@jeremystretch commented on GitHub (Jan 4, 2019):

Folding this into #2328.

@jeremystretch commented on GitHub (Jan 4, 2019): Folding this into #2328.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1639