[PR #24586] [CLOSED] refac: scope /api/config disclosure to actual frontend consumers #131394

Closed
opened 2026-05-21 16:49:35 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/24586
Author: @Classic298
Created: 5/11/2026
Status: ❌ Closed

Base: dev ← Head: api-config-scope-disclosure


📝 Commits (1)

  • f5c5d50 refac: scope /api/config disclosure to actual frontend consumers

📊 Changes

1 file changed (+8 additions, -9 deletions)

View changed files

📝 backend/open_webui/main.py (+8 -9)

📄 Description

/api/config previously disclosed the same payload regardless of caller role, including the exact build version and the full feature-flag matrix to unauthenticated callers, plus the full inner features block to pending users who can only render AccountPending.

Audited every field returned to unauth/pending callers against actual frontend consumers:

  • 'status' (hard-coded True) has no readers anywhere — dropped.
  • 'version' only consumed by (app)/+layout.svelte changelog gate and ChangelogModal (both admin/user-only) — moved into the admin/user branch.
  • enable_api_keys, enable_password_change_form, enable_version_update_check, enable_public_active_users_count, enable_easter_eggs only consumed in admin/user-gated UI — moved into the inner features block.
  • The inner features block (enable_direct_connections … enable_memories, OneDrive personal/business) is only consumed in chat/admin UI that pending users never render. Inner-block gate tightened from 'user is not None' to 'user is not None and user.role in [admin, user]'.
  • metadata.login_footer / metadata.auth_logo_position only render on /auth, which redirects pending users away. Metadata fallback gated to anonymous callers only.

The /auth page, AccountPending overlay, and the pre-redirect root layout keep every field they actually read. No frontend change required.

Contributor License Agreement

Note

Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/24586 **Author:** [@Classic298](https://github.com/Classic298) **Created:** 5/11/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `api-config-scope-disclosure` --- ### 📝 Commits (1) - [`f5c5d50`](https://github.com/open-webui/open-webui/commit/f5c5d50b57564c8aa3d36f675b84b68a05d5d71b) refac: scope /api/config disclosure to actual frontend consumers ### 📊 Changes **1 file changed** (+8 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/main.py` (+8 -9) </details> ### 📄 Description /api/config previously disclosed the same payload regardless of caller role, including the exact build version and the full feature-flag matrix to unauthenticated callers, plus the full inner features block to pending users who can only render AccountPending. Audited every field returned to unauth/pending callers against actual frontend consumers: - 'status' (hard-coded True) has no readers anywhere — dropped. - 'version' only consumed by (app)/+layout.svelte changelog gate and ChangelogModal (both admin/user-only) — moved into the admin/user branch. - enable_api_keys, enable_password_change_form, enable_version_update_check, enable_public_active_users_count, enable_easter_eggs only consumed in admin/user-gated UI — moved into the inner features block. - The inner features block (enable_direct_connections … enable_memories, OneDrive personal/business) is only consumed in chat/admin UI that pending users never render. Inner-block gate tightened from 'user is not None' to 'user is not None and user.role in [admin, user]'. - metadata.login_footer / metadata.auth_logo_position only render on /auth, which redirects pending users away. Metadata fallback gated to anonymous callers only. The /auth page, AccountPending overlay, and the pre-redirect root layout keep every field they actually read. No frontend change required. ### Contributor License Agreement <!-- 🚨 DO NOT DELETE THE TEXT BELOW 🚨 Keep the "Contributor License Agreement" confirmation text intact. Deleting it will trigger the CLA-Bot to INVALIDATE your PR. Your PR will NOT be reviewed or merged until you check the box below confirming that you have read and agree to the terms of the CLA. --> - [x] By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. > [!NOTE] > Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-21 16:49:35 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#131394