Menu

Post image 1
Post image 2
1 / 2
0

Building a Jira Time Tracker with Tauri: How I Stored API Tokens Securely

DEV Community·Vladimir Letiagin·about 1 month ago
#6FfEqi2v
#tauri#rust#security#keyring#keychain#user
Reading 0:00
15s threshold

I've been building a small menu-bar app for tracking time on Jira issues. Mostly it's boring CRUD: a timer, a list of issues, push worklogs back to Jira. Except for one thing I had to figure out on day one. The user logs in with a Jira API token, and that token has to live somewhere on their machine. Where, exactly? Every Tauri tutorial skips this part. Below is what I tried, what broke, and what I shipped. My first attempt (don't do this) I already had a local SQLite database in the app for caching Jira issues, worklogs, and user prefs. So my first move was the obvious one — stick the API token in a settings table next to everything else. One database, one place to look, simple. Don't do this. SQLite stores everything in a plain .db file on disk. No encryption by default.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More