security(auth): store Google OAuth tokens in the OS credential store

Aperta
#29 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@abdulwalidal ci sta già lavorando.

Dal 5/12/2026.

  • #144 di @abdulwalidal — aperta

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust, sqlite, tauri

Direzione di ricerca

Start by locating the Google OAuth token persistence, refresh, disconnect, and migration entry points; the issue does not name specific files or tests. Research Tauri/Rust-supported cross-platform credential stores, then trace how SQLite settings are read and written. Done means secrets stay out of SQLite and logs, legacy tokens migrate safely, disconnect removes stored credentials, and tests cover missing, expired, refreshed, and disconnected credentials.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

cloud security

Problem

The security audit found Google access and refresh tokens stored in plaintext in SQLite app_settings.

Goal

Use the operating system's secure credential/keychain facility instead of plaintext SQLite storage.

Requirements

  • Identify a suitable cross-platform OS credential store supported by Tauri/Rust.
  • Store Google access and refresh tokens in the credential store.
  • Keep only non-secret account metadata in SQLite.
  • Support token refresh using the secure store.
  • Handle missing/deleted credentials gracefully.
  • Migrate existing plaintext tokens safely.
  • Avoid logging tokens during migration or normal operation.
  • Remove plaintext token storage after successful migration.

Acceptance criteria

  • New Google credentials are never persisted as plaintext SQLite values.
  • Existing installations have a safe migration path.
  • Disconnect removes the credential from the OS store.
  • Tests cover missing, expired, refreshed, and disconnected credentials.
Lingua principale
Rust
Stelle
3
Fork
6
Merge medio
5h 37m
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di abdulwalidal/secure-backup

Tutte le issue di abdulwalidal/secure-backup

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.