Skip to content

feat: encrypt tokens using safe storage api #1800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 1, 2025

Conversation

setchy
Copy link
Member

@setchy setchy commented Feb 1, 2025

Use Electron's Safe Storage API to encrypt and decrypt tokens.

Still supports backwards compatibility.

@setchy setchy changed the title Feat/encrypt tokens safe storage feat: encrypt tokens using safe storage api Feb 1, 2025
@setchy setchy added this to the Release 6.0.0 milestone Feb 1, 2025
@github-actions github-actions bot added the enhancement New feature or enhancement to existing functionality label Feb 1, 2025
@setchy
Copy link
Member Author

setchy commented Feb 1, 2025

I ported ~95% of this from https://github.com/setchy/atlassify

The 5% newness is handling both unecrypted tokens and encrypted tokens (Atlassify launched with encryption from its first GA release)

Copy link

sonarqubecloud bot commented Feb 1, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
4.9% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@setchy setchy merged commit 2e515d0 into main Feb 1, 2025
12 of 13 checks passed
@setchy setchy deleted the feat/encrypt-tokens-safe-storage branch February 1, 2025 13:26
Copy link
Collaborator

@bmulholland bmulholland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice touch, thanks for considering security

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants