Skip to content
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

Unable to log in using remote auth after upgrade #15866

Closed
johnmc-ucdavis opened this issue Apr 26, 2024 · 3 comments
Closed

Unable to log in using remote auth after upgrade #15866

johnmc-ucdavis opened this issue Apr 26, 2024 · 3 comments
Labels
status: under review Further discussion is needed to determine this issue's scope and/or implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@johnmc-ucdavis
Copy link

Deployment Type

Self-hosted

NetBox Version

v3.7.6

Python Version

3.10

Steps to Reproduce

Attempt to log in to NetBox using remote login. Remote login completes but user is not logged in.

Expected Behavior

User is logged in.

Observed Behavior

User is not logged in. Users can log in using local passwords.

REMOTE_USER variable is set. We have also tried changing it to HTTP_REMOTE_USER.

Same remote auth is working for several other web apps. It was working in v3.7.5 prior to upgrade.

Two users were able to remain logged in via. remote auth. We had one of these users log out and now this user does not get logged in when using remote auth.

@johnmc-ucdavis johnmc-ucdavis added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels Apr 26, 2024
@jeremystretch
Copy link
Member

@johnmc-ucdavis this sounds like it's likely the same root issue as #15811. Please try downgrading gunicorn and let us know if that resolves the issue:

pip3 install gunicorn==21.2.0

(Don't forget to restart the NetBox service afterward!)

@jeremystretch jeremystretch added status: under review Further discussion is needed to determine this issue's scope and/or implementation and removed status: needs triage This issue is awaiting triage by a maintainer labels Apr 26, 2024
@johnmc-ucdavis
Copy link
Author

That was indeed the problem. Thanks!

@apollo13
Copy link

Instead of down-grading you can probably configure header-map (https://docs.gunicorn.org/en/stable/settings.html#header-map) accordingly, but be aware of the downsides.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: under review Further discussion is needed to determine this issue's scope and/or implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

4 participants