[PR #23831] [CLOSED] feat: inlet: Add configurable propagation of user auth context for pipelines #66253

Closed
opened 2026-05-06 12:30:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/23831
Author: @shawn-core-bpmi
Created: 4/17/2026
Status: Closed

Base: devHead: feature/extend-auth-context-pipelines


📝 Commits (1)

  • fd6d767 feat(pipelines_auth_context): Add configurable option to propagate Oauth, groups, and api keys to the pipelines container

📊 Changes

2 files changed (+40 additions, -2 deletions)

View changed files

📝 backend/open_webui/config.py (+21 -0)
📝 backend/open_webui/routers/pipelines.py (+19 -2)

📄 Description

Changelog Entry

Description

  • Adds configurable options to extend user dict in inlet function to include user Oauth and groups for downstream system authentication as well as user api key for reverse proxy. Resolves #23607.

Added

  • Added configurable environment variables for ENABLE_PIPELINE_USER_GROUPS, ENABLE_PIPELINE_USER_OAUTH, and
    ENABLE_PIPELINE_USER_API_KEY. Each optionally enhances the user dict context propagated to the inlet function in the pipeline container. Each variable defaults to false.

Testing

  • Testing included building the container with the included env variables and testing the payload to a pipeline inlet function.

Contributor License Agreement


🔄 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/23831 **Author:** [@shawn-core-bpmi](https://github.com/shawn-core-bpmi) **Created:** 4/17/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feature/extend-auth-context-pipelines` --- ### 📝 Commits (1) - [`fd6d767`](https://github.com/open-webui/open-webui/commit/fd6d767da0f42d3f803c48a0b541764fb7077261) feat(pipelines_auth_context): Add configurable option to propagate Oauth, groups, and api keys to the pipelines container ### 📊 Changes **2 files changed** (+40 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+21 -0) 📝 `backend/open_webui/routers/pipelines.py` (+19 -2) </details> ### 📄 Description # Changelog Entry ### Description - Adds configurable options to extend user dict in inlet function to include user Oauth and groups for downstream system authentication as well as user api key for reverse proxy. Resolves #23607. ### Added - Added configurable environment variables for ENABLE_PIPELINE_USER_GROUPS, ENABLE_PIPELINE_USER_OAUTH, and ENABLE_PIPELINE_USER_API_KEY. Each optionally enhances the user dict context propagated to the inlet function in the pipeline container. Each variable defaults to false. ### Testing - Testing included building the container with the included env variables and testing the payload to a pipeline inlet function. ### Contributor License Agreement - [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. --- <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-06 12:30:39 -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#66253