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

Open
#29 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
rust, sqlite, tauri

Research direction

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.

Written by the indexing model from the issue text.

Description

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.
Dominant language
Rust
Stars
3
Forks
6
Avg merge
5h 37m
Merged PRs (30d)
12

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from abdulwalidal/secure-backup

All issues in abdulwalidal/secure-backup

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.