Repository navigation
Conversation
…wner-only write - resolve_or_create_auth_secret(): generates 32 random bytes, base64-encoded (44 chars), stored in auth.secret under the Tauri app data directory. Reuses the existing file on subsequent launches. - write_secret_atomic(): creates a temp file (auth.secret.tmp) with 0o600 permissions at creation time on Unix (no write-then-chmod race window), writes the secret, then atomically renames to auth.secret. - Injects AUTH_SECRET and NEXTAUTH_SECRET into the sidecar process env. - Removes hardcoded secrets from .env.tauri; adds comment directing devs to .env.local for tauri dev mode. - Adds auth.secret documentation to docs/desktop-app.md: storage paths per platform, format, reuse across restarts, and loss/rebuild impact. Closes #55 Co-authored-by: hacksynth <hacksynth@users.noreply.github.com>
This was referenced May 2, 2026
Owner
Author
|
Superseded by #71, which uses Claude's refreshed branch claude/issue-55-20260502-1648 and avoids the rustfmt failure on this PR. |
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.
Remove shared desktop Auth.js secrets from .env.tauri; generate and reuse a per-install base64 auth secret under the Tauri app data directory, inject it into the sidecar environment, and document storage and session behavior.
Closes #55