netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Make it possible to log failed login attempts

Open K4pper opened this issue 3 years ago • 0 comments

NetBox version

v3.2.9

Feature type

New functionality

Proposed functionality

I would like to have netbox log every login attempt that is made, however this doesn't seem possible, i currently have this logging config

LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'handlers': {
        'console': {
            'class': 'logging.StreamHandler',
        },
    },
    'loggers': {
        'netobx.*': {
        'handlers': ['console'],
        'level': 'INFO',
        }
    },
}

This config logs every time a user logs in successfully but not when a user fails to authenticate.

Use case

This would make it possible to see if netbox is currently being bruteforced, this would be especially helpful to deployments in the cloud where it is accessible to the web.

Database changes

N/A

External dependencies

N/A

K4pper avatar Oct 14 '22 11:10 K4pper