Skip to content

sec(auth): migrate auth state persistence from plain YAML to OS Keyring #79

Description

@iamdhakrey

Summary

Migrates user authentication state storage (access tokens, refresh tokens, and profile data) from plaintext YAML on disk (auth.yaml) to the operating system's secure credential store using the keyring crate. Intermediate sensitive memory allocations are scrubbed via zeroize.

Context & Motivation

Previously, tokens and session data were serialized as plaintext YAML inside ~/.config/veyak/auth.yaml via DataDir. Storing credentials unencrypted on disk poses security risks (token extraction by unprivileged background processes, local file inspection, and accidental repository commits).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions