-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable file-based session storage #2426
Comments
Login is not supported on the standby because sessions are stored in the database and the database is read-only, as the error message indicates. Changing this requires designating a new location for session storage; options are listed here. The best we can do is expose the |
…authentication without write access to database
I've exposed the |
It looks like SESSION_FILE_PATH may not be sufficient for logins to work on read-only replicas. Even after setting SESSION_FILE_PATH, I get an exception
I did some searching and came across this link: It refers to a python module called django-no-last-login which calls Perhaps something like this might be needed to get this functionality working. Or perhaps I'm missing something. Is anyone able to get logins to read-only replicas to work properly? |
Environment
Proposed Functionality
Enable "LOGIN_REQUIRED = True" to be set in the configuration.py file for a hot standby / read only copy of netbox and for login to work.
Use Case
Netbox administrator creates two installations and configures them as a MASTER / SLAVE hot standby using postgre. Netbox administrators employer requires logins to be enabled on the Netbox servers due to the nature of the information held within.
This does not present an issue on the MASTER but when attempting to login to the SLAVE this does not work. This would be how it is intended to work currently which is why this is submitted as a feature request and not a bug.
Database Changes
Unknown
External Dependencies
Unknown
The text was updated successfully, but these errors were encountered: