From 70e4821f36e10e5f38f7e1ec51022f50ddee2cf6 Mon Sep 17 00:00:00 2001 From: danielhanchen <23090290+danielhanchen@users.noreply.github.com> Date: Wed, 15 Jul 2026 14:26:15 +0000 Subject: [PATCH] Point to bootstrap password on restart before first login for PR #7140 --- studio/backend/main.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/studio/backend/main.py b/studio/backend/main.py index 675124533e..4657b5c075 100644 --- a/studio/backend/main.py +++ b/studio/backend/main.py @@ -570,7 +570,13 @@ async def lifespan(app: FastAPI): print(" open that file to read the password, then sign in and change it.") print("=" * 60 + "\n") else: - app.state.bootstrap_password = storage.get_bootstrap_password() + bootstrap_pw = storage.get_bootstrap_password() + app.state.bootstrap_password = bootstrap_pw + # A restart before first login skips the creation banner above; still + # point the operator to the seed file while the bootstrap pw is unrotated. + if bootstrap_pw: + bootstrap_path = storage.DB_PATH.parent / ".bootstrap_password" + print(f"\nAdmin password change still required. Read it from: {bootstrap_path}\n") _lifespan_log.info( "lifespan startup completed in %.1fms",