Skip to content

Use OS Keyring for Secret Storage #5

@baebranch

Description

@baebranch

Problem:
API keys etc are stored in a JSON file which also needs to be locked for update resulting in errors when the file can't be locked. This is insecure and also causes problems if a write was missed due to not being able to lock the file for update.

Solution:
Use the OS keyring module to securely store secrets. Use asyncio tasks to remove auto-save logic from the main thread and use queues to prevent write conflicts as jobs can only be processed in the order submitted. Also data loaded from the keyring should be returned in the current dict format. Should also support multiple users on the same machine by default.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions