mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #16532] [CLOSED] fix: implement Aurora PostgreSQL password authentication for OWUI #24163
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/16532
Author: @RCastillo-Clave
Created: 8/12/2025
Status: ❌ Closed
Base:
main← Head:feature/add-aws-rds-certificates📝 Commits (10+)
9c8e401feat(owui): Update package dependencies and add READMEs. Fixes issue #1.95f05abfix(ci): Increase Node.js memory for frontend buildcad1298Silent test commit79caf9dbuild: Ignore docker build artifact3a371e7Feature: modify Dockerfile to generate an authn token to the DB714a762Merge branch 'open-webui:main' into feature/owui-db-support6825620Merge pull request #1 from clavesec/feature/owui-db-support8c9e50bEnable VSCode debugging for Open WebUI in Dockerb1e0609fix: dockerfile and entrypoint for debugging in VSCode3b5bab4fix: merge feat/vscode-docker-debug for local Docker debugging rig📊 Changes
30 files changed (+2807 additions, -90 deletions)
View changed files
📝
.gitignore(+6 -0)➕
.vscode/launch.json(+24 -0)➕
AWS_INTEGRATION_MEMO_FOR_TOM.md(+432 -0)➕
DATABASE_VERIFICATION_QUERIES.sql(+263 -0)➕
DEBUG_OUTPUT_ANALYSIS_GUIDE.md(+273 -0)➕
DOCKER_BUILD_TEST_INSTRUCTIONS.md(+216 -0)📝
Dockerfile(+44 -4)📝
README.md(+3 -0)➕
backend/docker-entrypoint.sh(+119 -0)➕
backend/open_webui/README_IAM_DB.md(+15 -0)📝
backend/open_webui/env.py(+14 -0)📝
backend/open_webui/internal/db.py(+77 -6)📝
backend/open_webui/internal/wrappers.py(+47 -4)📝
backend/open_webui/main.py(+4 -1)📝
backend/open_webui/migrations/env.py(+30 -1)➕
backend/open_webui/migrations/versions/c4a3b2d1e0f_add_encryption_fields_to_user.py(+35 -0)📝
backend/open_webui/models/auths.py(+122 -32)➕
backend/open_webui/models/db_encryption_shim.py(+221 -0)📝
backend/open_webui/models/users.py(+95 -36)📝
backend/open_webui/retrieval/vector/dbs/pgvector.py(+31 -3)...and 10 more files
📄 Description
Summary
Implement PostgreSQL password authentication for OWUI connecting to Aurora in air-gapped environments, replacing IAM authentication that was incompatible with SSL-disabled connections.
Key Changes
Technical Details
Authentication Changes
ENABLE_AWS_RDS_IAMin favor of password extraction from secretsDocker & Deployment
USER $UID:$GIDinstead of hardcodedUSER 1000)Database Connection
PGCONNECT_TIMEOUT)Air-Gapped Environment Support
Files Changed
Dockerfile- User handling, certificate installation, AWS CLIbackend/docker-entrypoint.sh- Password authentication logicbackend/open_webui/env.py- SSL configuration variablesbackend/open_webui/internal/db.py- Migration debugging, connection handlingbackend/open_webui/internal/wrappers.py- SSL parameter supportbackend/open_webui/main.py- Import debuggingTesting
Security Notes
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.