[Bug]: Set Password option not disabled when auth is disabled #22436
-
Checklist
Describe the problem you are havingWhen auth is disabled and users are authenticated via headers, the UI still shows a "Set Password" function. The Set Password dialog may misguide users into thinking there is a problem with their account when they get a "User not found" error after submitting the valid form. Steps to reproduce
Version0.17.0-f0d69f7 In which browser(s) are you experiencing the issue with?Google Chrome 145.0.7632.159, Any Frigate config file# semi-relevant config sections:
auth:
enabled: false
trusted_proxies:
- 10.1.1.0/24
proxy:
auth_secret: "REDACTED"
separator: "|"
default_role: "viewer"
header_map:
user: X-Forwarded-User
role: X-Forwarded-Groups
role_map:
admin:
- "sysadmins@domain.org-02lwamvv3hidity"
- "security-video-admins@domain.org-01t3h5sf3suej6x"
viewer:
- "security-video-viewers@domain.org-0319y80a0z918y9"docker-compose file or Docker CLI commandN/ARelevant Frigate log outputN/ARelevant go2rtc log outputN/AOperating systemDebian Install methodDocker Compose Network connectionWired Camera make and modelN/A Screenshots of the Frigate UI's System metrics pagesN/A Any other information that may be helpfulI added an additional But there are also similar auth disabled oddities that might need a broader review, like if you don't set a logout url you still see the user/pass login form even if auth is disabled. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
This appears to be a valid UI bug. When Frigate's authentication is disabled ( Your configuration is correct for proxy authentication: auth:
enabled: false
proxy:
auth_secret: "REDACTED"
header_map:
user: X-Forwarded-User
role: X-Forwarded-GroupsThe documentation confirms that when leveraging upstream proxy authentication, you should disable Frigate's authentication because "there is no correspondence between users in Frigate's database and users authenticated via the proxy."(1) The "User not found" error occurs because the proxy-authenticated user doesn't exist in Frigate's internal database—this is expected behavior for the backend, but the UI shouldn't be offering the password change option in the first place.(1) Your fix adding a condition to check The related issue you mentioned about the login form appearing when 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks, this is fixed in #22439 |
Beta Was this translation helpful? Give feedback.
Thanks, this is fixed in #22439