Repository navigation
fix(oidc): accept numeric/boolean admin passwords from env vars (#8263) - #8327
Merged
Merged
Conversation
The settings loader coerces env-var values, so ADMIN_PASSWORD=123456 in settings.json.docker arrives as the number 123456. The 3.3.6 OIDC login check (GHSA-62cj-9j72-mfrh) only accepted string passwords, so such an admin could no longer log in. HTTP Basic already compared via toString(). Accept finite numbers and booleans; still refuse nullish, empty, NaN and non-scalar values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WnNeNQpAJ5TWNZka4yugCw
) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WnNeNQpAJ5TWNZka4yugCw
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
PR Summary by QodoRestore OIDC login for coerced admin passwords
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can tweak Display settings with a live preview to see your comment before it ships |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #8263.
The settings loader coerces env values, so
ADMIN_PASSWORD=123456(e.g. via settings.json.docker) arrives as the number 123456. The OIDC interactive login check added in 3.3.6 (GHSA-62cj-9j72-mfrh) only accepted string passwords, so these admins could no longer log in. HTTP Basic already compared viatoString().verifyInteractiveLoginnow accepts finite numbers and booleans (compared as strings); nullish, empty, NaN and non-scalar values are still refused.${ADMIN_PASSWORD}through the realparseSettingsloader.🤖 Generated with Claude Code
https://claude.ai/code/session_012cFUmwE79DiLX4VsJqoTZV