From 258990894d8c075b52e4e77498c40f1c3206434f Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 8 Mar 2026 12:07:02 +0100 Subject: [PATCH] fix: show OUTLINE_TOKEN in full, drop TS_AUTHKEY from UI config panel Co-Authored-By: Claude Sonnet 4.6 --- webui.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/webui.py b/webui.py index 5f975f7..c1c9265 100644 --- a/webui.py +++ b/webui.py @@ -495,16 +495,8 @@ async def dashboard(): pull_html = _sync_entry_html(s["last_pull"]) push_html = _sync_entry_html(s["last_push"]) - def _mask(val: str) -> str: - if not val: - return 'NOT SET' - if len(val) <= 10: - return "***" - return f'{val[:6]}***{val[-4:]}' - outline_url = os.environ.get("OUTLINE_URL", "") - outline_tok = _mask(os.environ.get("OUTLINE_TOKEN", "")) - ts_authkey = _mask(os.environ.get("TS_AUTHKEY", "")) + outline_tok = os.environ.get("OUTLINE_TOKEN", "") or 'NOT SET' body = f"""
@@ -528,8 +520,7 @@ async def dashboard(): - - +
KeyValue
OUTLINE_URL{outline_url or 'NOT SET'}
OUTLINE_TOKEN{outline_tok}
TS_AUTHKEY{ts_authkey}
OUTLINE_TOKEN{outline_tok}
APP_VERSION{APP_VERSION}
"""