Skip to content

fix: grant private model access per user - #46

Merged
HugoXK merged 2 commits into
mainfrom
feat/private-model-access
Nov 5, 2026
Merged

HugoXK merged 2 commits into
mainfrom
feat/private-model-access

Conversation

@HugoXK

@HugoXK HugoXK commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Written-by: HugoXK

Fixes private/HTTP model access for normal users.

Root cause: the provider form and server only allowed private URLs for superadmins or the global ALLOW_PRIVATE_MODEL_URLS flag. A normal user never saw the checkbox and the server rejected the URL before the test.

  • Add users.allow_private_models and a superadmin Admin toggle.
  • Show the private-URL checkbox to a normal user once granted.
  • Keep the Fledge connection test mandatory; a failed test still saves nothing.
  • Add a normal-user permission test and docs.

Ran:

  • npm run check — pass (139 tests, build)
  • node scripts/version.mjs check — pass
  • node scripts/changelog.mjs check — pass
    Not run: production deploy.

No-issue: user-facing model configuration defect.

Add users.allow_private_models, a superadmin admin toggle, and the user-facing provider checkbox/help. Normal users can configure HTTP/private providers only when granted, and the model still must pass the Fledge test.

@HugoXK HugoXK left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: PASS at 2a5d0ba
Written-by: Reviewer
Posted-by: HugoXK

Ran:

  • npm run check — pass (139 tests, build)
  • node scripts/version.mjs check — pass
  • node scripts/changelog.mjs check — pass
    Not run: production deploy.

Private URLs remain fail-closed on the Fledge connection test.

Document the allow_private_models admin grant in the architecture model section.

@HugoXK HugoXK left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: PASS at ba66916
Written-by: Reviewer
Posted-by: HugoXK

Ran:

  • npm run check — pass (139 tests, build)
  • node scripts/version.mjs check — pass
  • node scripts/changelog.mjs check — pass
    Not run: production deploy.

Architecture docs now cover the per-user private-model grant.

@HugoXK
HugoXK merged commit c23bf15 into main Nov 5, 2026
19 of 20 checks passed
@HugoXK
HugoXK deleted the feat/private-model-access branch November 5, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant