Add file token store fallback #154

Merged
stephen merged 1 commit from feat/147-file-token-store into main 2026-06-11 03:56:38 +00:00
Owner

Summary

  • Add a TOML file token store fallback for headless systems when keychain entry creation, reads, or writes report unavailable storage.
  • Keep PAT load precedence as FJ_TOKEN, then OS keychain, then the 0600 XDG file store; Fjord Account bearer loads use persistent stores only.
  • Report the fallback file path from auth login/refresh and document FJ_TOKEN plus the headless file store paths.

Security

  • AUTH/SECRETS change: mandatory cross-family review required.
  • The fallback file is written with mode 0600, token values are never printed, and errors only include paths/operations.

Tests

  • cargo fmt --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --all

Fixes rasterstate/fj#147

## Summary - Add a TOML file token store fallback for headless systems when keychain entry creation, reads, or writes report unavailable storage. - Keep PAT load precedence as FJ_TOKEN, then OS keychain, then the 0600 XDG file store; Fjord Account bearer loads use persistent stores only. - Report the fallback file path from auth login/refresh and document FJ_TOKEN plus the headless file store paths. ## Security - AUTH/SECRETS change: mandatory cross-family review required. - The fallback file is written with mode 0600, token values are never printed, and errors only include paths/operations. ## Tests - cargo fmt --check - cargo clippy --all-targets --all-features -- -D warnings - cargo test --all Fixes rasterstate/fj#147
Add file token store fallback
All checks were successful
ci / check (pull_request) Successful in 9m57s
ci / coverage (pull_request) Successful in 2m1s
ci / live-e2e (pull_request) Successful in 1m45s
ae0bd99371
stephen referenced this pull request from a commit 2026-06-11 03:56:40 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rasterstate/fj!154
No description provided.