Repository navigation
Conversation
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Collaborator
Author
UI evidenceValidated the visible Studio change at 12ffa0f against merge base edd81b4.
|
Collaborator
Author
|
Superseded by #9102, which now includes the private-LAN listener and peer checks, exact method/path allowlist, credential-precedence rules, browser-origin and root-path handling, address-family coverage, and API-monitor behavior from this PR. Consolidating on one implementation to avoid maintaining two authentication paths. Thank you. |
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.

Summary
Adds an opt-in setting that lets private-network clients call Studio's OpenAI-compatible
/v1API without a password or API key. Authentication remains required for the Studio UI and non-/v1routes, andthe option defaults to off.
Motivation
Local agents on a trusted Wi-Fi or wired network should be able to use a loaded model without distributing Studio credentials. The exception must remain limited to private LAN traffic and fail closed
everywhere else.
Changes
lan_access_unauthenticated_apisetting, defaulted tofalse, and expose it through the LAN status response instudio/backend/utils/lan_access_settings.py:22.studio/backend/routes/settings.py:2084./v1, arrives through a private LAN listener from a private peer, and the opt-in is active instudio/backend/auth/authentication.py:160.studio/backend/routes/inference.py:2516.studio/frontend/src/features/settings/components/lan-access-section.tsx:215.studio/backend/tests/ test_lan_access_settings.py:943.studio/frontend/tests/lan-access-state.test.ts:115.How to test
Run the focused backend tests: