Skip to content

encrypted file-based token storage with keyring abstraction#163

Open
Sreehari425 wants to merge 13 commits intoMrmayman:mainfrom
Sreehari425:file-secrets
Open

encrypted file-based token storage with keyring abstraction#163
Sreehari425 wants to merge 13 commits intoMrmayman:mainfrom
Sreehari425:file-secrets

Conversation

@Sreehari425
Copy link
Copy Markdown
Contributor

so this PR adds an alternative to the system keyring for storing auth tokens since the keyring can be kinda unreliable on some setups

tokens are encrypted with AES-256-GCM and the key is derived via Argon2id so its not just a plaintext file chillin on disk. there's a password prompt on startup if the store is locked and a new Security tab in settings where you can swap backends set a password or nuke the store entirely

all the auth flows (microsoft, elyby, littleskin, yggdrasil) got refactored to go through a shared token_store abstraction instead of hitting the keyring directly which should make adding new backends way easier down the line
also accounts are filtered by backend so keyring accounts wont bleed into encrypted file mode and vice versa

new deps: aes-gcm argon2 base64 rand

image image

@Sreehari425
Copy link
Copy Markdown
Contributor Author

Build for app image : Github Action

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants