[PR #216] [MERGED] feat: full backend support (including auth/rbac) #7014

Closed
opened 2025-11-11 17:14:26 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/216
Author: @tjbck
Created: 12/14/2023
Status: Merged
Merged: 12/27/2023
Merged by: @tjbck

Base: mainHead: dev


📝 Commits (10+)

  • d7ae3b1 Merge pull request #213 from ollama-webui/main
  • d4f783c Merge branch 'main' into dev
  • 34bd742 Merge branch 'main' into dev
  • 1fb6b13 Merge branch 'main' into dev
  • 32619db Merge branch 'main' into dev
  • cbaf9f7 Merge branch 'main' into dev
  • bfa6471 Merge branch 'main' into dev
  • ac34a79 Merge branch 'main' into dev
  • eadbfeb Merge branch 'main' into dev
  • 9174331 feat: db migration to sqlite

📊 Changes

46 files changed (+2630 additions, -1266 deletions)

View changed files

.dockerignore (+16 -0)
📝 README.md (+25 -90)
📝 TROUBLESHOOTING.md (+10 -40)
backend/.dockerignore (+7 -0)
📝 backend/.gitignore (+4 -1)
📝 backend/apps/ollama/main.py (+8 -1)
backend/apps/web/internal/db.py (+4 -0)
📝 backend/apps/web/main.py (+5 -1)
📝 backend/apps/web/models/auths.py (+25 -15)
backend/apps/web/models/chats.py (+157 -0)
backend/apps/web/models/modelfiles.py (+135 -0)
📝 backend/apps/web/models/users.py (+41 -24)
📝 backend/apps/web/routers/auths.py (+2 -2)
backend/apps/web/routers/chats.py (+161 -0)
backend/apps/web/routers/modelfiles.py (+191 -0)
📝 backend/config.py (+5 -21)
📝 backend/constants.py (+6 -0)
backend/data/readme.txt (+1 -0)
📝 backend/dev.sh (+1 -1)
📝 backend/requirements.txt (+2 -2)

...and 26 more files

📄 Description

Resolves #68, #281

Auth (backend) will be REQUIRED from now on, even for local deployment, just like JupyterLab.

For those who wish to use frontend only for the UI, please check out our stripped down version of ollama-webui forked repo: https://github.com/ollama-webui/ollama-webui-lite

TODO

  • migrate DB to sqlite
  • require Auth for security
  • full multi-user chat history support
  • overall code refac
  • local indexeddb -> backend db migration guide
  • save modelfiles to the backend
  • local modelfiles -> backend migration option
  • disable modelfiles edit for users
  • update backend error page
  • whitelist ollama version '0.0.0' (#263)
  • doc update
  • testing
  • HELP NEEDED: better doc?

Blockers


🔄 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/216 **Author:** [@tjbck](https://github.com/tjbck) **Created:** 12/14/2023 **Status:** ✅ Merged **Merged:** 12/27/2023 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `main` ← **Head:** `dev` --- ### 📝 Commits (10+) - [`d7ae3b1`](https://github.com/open-webui/open-webui/commit/d7ae3b1fd6346cd0d5757d748ead9c8bbfd8546b) Merge pull request #213 from ollama-webui/main - [`d4f783c`](https://github.com/open-webui/open-webui/commit/d4f783cbb0eeee6526c35ef06bef0e9435efd2e6) Merge branch 'main' into dev - [`34bd742`](https://github.com/open-webui/open-webui/commit/34bd74296429ec83291deeabeb0c21aacd868ba0) Merge branch 'main' into dev - [`1fb6b13`](https://github.com/open-webui/open-webui/commit/1fb6b13ab77aef83fe7bdc25aeb60df09c8d74e6) Merge branch 'main' into dev - [`32619db`](https://github.com/open-webui/open-webui/commit/32619dbe6b41a9a99345e76c6acc921b54c060e2) Merge branch 'main' into dev - [`cbaf9f7`](https://github.com/open-webui/open-webui/commit/cbaf9f7a6c0f701bc67225483037975a2bcfbb7d) Merge branch 'main' into dev - [`bfa6471`](https://github.com/open-webui/open-webui/commit/bfa64717dd0ad12b7a2194f3e0d523d149592a03) Merge branch 'main' into dev - [`ac34a79`](https://github.com/open-webui/open-webui/commit/ac34a7978f302e25bdce062b405974883a761786) Merge branch 'main' into dev - [`eadbfeb`](https://github.com/open-webui/open-webui/commit/eadbfeb2774551094e851e2850cde4e3d37fc419) Merge branch 'main' into dev - [`9174331`](https://github.com/open-webui/open-webui/commit/91743310255c7aac0db37ccb4790909582d7f6a9) feat: db migration to sqlite ### 📊 Changes **46 files changed** (+2630 additions, -1266 deletions) <details> <summary>View changed files</summary> ➕ `.dockerignore` (+16 -0) 📝 `README.md` (+25 -90) 📝 `TROUBLESHOOTING.md` (+10 -40) ➕ `backend/.dockerignore` (+7 -0) 📝 `backend/.gitignore` (+4 -1) 📝 `backend/apps/ollama/main.py` (+8 -1) ➕ `backend/apps/web/internal/db.py` (+4 -0) 📝 `backend/apps/web/main.py` (+5 -1) 📝 `backend/apps/web/models/auths.py` (+25 -15) ➕ `backend/apps/web/models/chats.py` (+157 -0) ➕ `backend/apps/web/models/modelfiles.py` (+135 -0) 📝 `backend/apps/web/models/users.py` (+41 -24) 📝 `backend/apps/web/routers/auths.py` (+2 -2) ➕ `backend/apps/web/routers/chats.py` (+161 -0) ➕ `backend/apps/web/routers/modelfiles.py` (+191 -0) 📝 `backend/config.py` (+5 -21) 📝 `backend/constants.py` (+6 -0) ➕ `backend/data/readme.txt` (+1 -0) 📝 `backend/dev.sh` (+1 -1) 📝 `backend/requirements.txt` (+2 -2) _...and 26 more files_ </details> ### 📄 Description Resolves #68, #281 Auth (backend) will be **REQUIRED** from now on, even for local deployment, just like JupyterLab. For those who wish to use frontend only for the UI, please check out our stripped down version of ollama-webui forked repo: https://github.com/ollama-webui/ollama-webui-lite TODO - [x] migrate DB to sqlite - [x] require Auth for security - [x] full multi-user chat history support - [x] overall code refac - [x] local indexeddb -> backend db migration guide - [x] save modelfiles to the backend - [x] local modelfiles -> backend migration option - [x] disable modelfiles edit for users - [x] update backend error page - [x] whitelist ollama version '0.0.0' (#263) - [x] doc update - [x] testing - [x] **HELP NEEDED**: better doc? Blockers - #215 --- <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 2025-11-11 17:14:26 -06: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#7014