Thanks for the datapoint Ross. I'm wondering what the difference is between our environments and the netbox developers' environments. I'm hoping one of them can chime in with some suggestions.
Regards,
-Kartik
--
You received this message because you are subscribed to a topic in the Google Groups "NetBox" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/netbox-discuss/1tYF9d-wRl8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to netbox-discus...@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/699ded9d-b197-4f9f-ada3-32c642c4baa9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks for the explanation Brian. I still think I'm missing something though. The 2.5.0 release announcement has the following:
#2426 - Introduced
SESSION_FILE_PATH
configuration setting for authentication without write access to database
This, along with the description of SESSION_FILE_PATH in the
netbox docs (
https://netbox.readthedocs.io/en/stable/configuration/optional-settings/#session_file_path
), seem to strongly imply that Jeremy's intent in adding this
feature was to allow users to login to replica instances without
having to point to the master database. I don't understand how
SESSION_FILE_PATH fixes issue #2426 if it doesn't enable this.
Jeremy, if you can chime in with your thoughts that'd be great :-)
For my current use case, an audit trail beyond what the apache access log already provides isn't important. The netbox enhancement that I'd actually prefer would be to enable cookie-based sessions (setting SESSION_ENGINE to "django.contrib.sessions.backends.signed_cookies"). That way, users could point to a netbox.example.com VIP in their browser. If the master crashed and keepalived flipped the VIP over to the replica, user sessions could transparently continue for read operations. Jeremy hinted at the possibility of exposing SESSION_ENGINE in the #2426 discussion. If this is practical to implement, I think it could be helpful for many users who want to deploy netbox in various ways.
Regards,
-Kartik
--
You received this message because you are subscribed to a topic in the Google Groups "NetBox" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/netbox-discuss/1tYF9d-wRl8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to netbox-discus...@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/73886a46-be1a-4e7a-9c57-0340fb1a9832%40googlegroups.com.
I'm not too familiar with django, but the following link looks
promising:
It refers to a python module called django-no-last-login which
calls user_logged_in.disconnect(update_last_login) to
disable the update:
https://github.com/MSA-Argentina/django-no-last-login/blob/master/nolastlogin/models.py#L11
Ah I see - I wasn't aware of that change.
It looks like update_last_login() is part of django contrib auth and I don't see an obvious way to disable it.
--
You received this message because you are subscribed to a topic in the Google Groups "NetBox" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/netbox-discuss/1tYF9d-wRl8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to netbox-discus...@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/6c89bb4b-2afe-409f-bf46-b28dda5d1798%40googlegroups.com.