Repository navigation
fix(client): omit test password header and display temporary password in settings UI - #121
Open
markusbrand wants to merge 2 commits into
Open
markusbrand wants to merge 2 commits into
markusbrand wants to merge 2 commits into
Conversation
…to prevent retention pruning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When an administrator creates a new user via the desktop client (Tauri UI), two interacting defects occurred:
ApiClient::create_userinclient-tauri/src-tauri/src/api.rsunconditionally included the test headerX-E2E-Return-Temp-Password: 1. This forced the backend intoskip_email = True, completely bypassing welcome email delivery even when SMTP is configured.client-tauri/src/Settings.tsx, the UI ignored the response fromapi_create_userand immediately closed the modal without inspectingtemp_password. In environments without SMTP configured (or when credentials must be transferred out-of-band), the returned temporary password was completely lost, rendering newly created accounts permanently inaccessible.Additionally, resolved a time-dependent test failure in
backend/tests/test_telemetry.pywhere a hardcoded timestamp (2026-09-16) exceeded the 30-day retention threshold, causingprune_telemetry_recordsto prematurely delete test summaries during ingestion.Key Changes
client-tauri/src-tauri/src/api.rs):X-E2E-Return-Temp-Password: 1header injection fromApiClient::create_user.test_create_user_does_not_send_e2e_password_headerverifying production headers via local TCP listener.client-tauri/src/Settings.tsx):api_create_user.temp_passwordis returned.temp_passwordis absent.backend/tests/test_telemetry.py):2026-09-16timestamp with dynamic ISO timestamp to prevent false failures from 30-day retention pruning.openspec/changes/fix-client-create-user-password-handling/.Verification
cargo testinclient-tauri/src-tauri: 22 passed, 0 failed, 3 ignored (live cloudflare).npm run buildinclient-tauri: Passed cleanly (tsc && vite build)../scripts/run-qa.sh): Passed across client-tauri, web, backend (108 pytest tests), and mkdocs.openspec validate --strict fix-client-create-user-password-handling): Valid.