mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #3418] [MERGED] feat: hide all API keys by default in admin settings #21241
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/3418
Author: @cheahjs
Created: 6/25/2024
Status: ✅ Merged
Merged: 6/25/2024
Merged by: @tjbck
Base:
dev← Head:feat/hide-tokens-in-ui📝 Commits (2)
d5b91fbfeat: hide all API keys by default in admin settingsf8f6943refac: use new SensitiveInput component📊 Changes
44 files changed (+115 additions, -260 deletions)
View changed files
📝
src/lib/components/admin/Settings/Audio.svelte(+6 -15)📝
src/lib/components/admin/Settings/Connections.svelte(+3 -8)📝
src/lib/components/admin/Settings/Documents.svelte(+30 -22)📝
src/lib/components/admin/Settings/Images.svelte(+4 -16)📝
src/lib/components/admin/Settings/WebSearch.svelte(+7 -66)📝
src/lib/components/chat/Settings/Account.svelte(+3 -96)➕
src/lib/components/common/SensitiveInput.svelte(+62 -0)📝
src/lib/i18n/locales/ar-BH/translation.json(+0 -1)📝
src/lib/i18n/locales/bg-BG/translation.json(+0 -1)📝
src/lib/i18n/locales/bn-BD/translation.json(+0 -1)📝
src/lib/i18n/locales/ca-ES/translation.json(+0 -1)📝
src/lib/i18n/locales/ceb-PH/translation.json(+0 -1)📝
src/lib/i18n/locales/de-DE/translation.json(+0 -1)📝
src/lib/i18n/locales/dg-DG/translation.json(+0 -1)📝
src/lib/i18n/locales/en-GB/translation.json(+0 -1)📝
src/lib/i18n/locales/en-US/translation.json(+0 -1)📝
src/lib/i18n/locales/es-ES/translation.json(+0 -1)📝
src/lib/i18n/locales/fa-IR/translation.json(+0 -1)📝
src/lib/i18n/locales/fi-FI/translation.json(+0 -1)📝
src/lib/i18n/locales/fr-CA/translation.json(+0 -1)...and 24 more files
📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Hide all API keys in Admin Settings by default by setting the
inputtype topassword, and provide a button to unhide the keys.One side effect that might require some hacks to solve is that Chrome will ask to save the API keys as passwords due to
type=password. It's probably worth making aToggleableSensitiveInputcomponent that can be reused.The
{...{ type: showSTTKey ? 'text' : 'password' }}construction is used because Svelte disallows the use of abind:valueand a dynamictype.Changed
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.