Skip to content

support GPG encryption - #152

Open
ttionya wants to merge 8 commits into
masterfrom
feature/gpg
Open

support GPG encryption#152
ttionya wants to merge 8 commits into
masterfrom
feature/gpg

Conversation

@ttionya

@ttionya ttionya commented May 11, 2024

Copy link
Copy Markdown
Owner

@ttionya ttionya mentioned this pull request May 11, 2024
@ttionya

ttionya commented May 11, 2024

Copy link
Copy Markdown
Owner Author

I have released version v1.20.0-beta.0. After my initial testing, it seems to work well, but I need more testing to ensure it works under various scenarios. Additionally, I haven't finished writing the documentation yet, but I will continue to work on it. Once the documentation is complete and I feel that testing is sufficient, I will release the stable version.

Here's a brief description of how to use GPG and some notes:

Added the environment variable GPG_BASE64_PUBKEY. Please use base64 -w 0 <your public key file> to generate it. Once this variable is configured, GPG will be enabled, and the ZIP_PASSWORD will no longer be used.

To decrypt, please use the command gpg --decrypt backup.zip.gpg > backup.zip.

@ttionya

ttionya commented May 11, 2024

Copy link
Copy Markdown
Owner Author

I have released version v1.20.0-beta.0. After my initial testing, it seems to work well, but I need more testing to ensure it works under various scenarios. Additionally, I haven't finished writing the documentation yet, but I will continue to work on it. Once the documentation is complete and I feel that testing is sufficient, I will release the stable version.

Here's a brief description of how to use GPG and some notes:

Added the environment variable GPG_BASE64_PUBKEY. Please use base64 -w 0 <your public key file> to generate it. Once this variable is configured, GPG will be enabled, and the ZIP_PASSWORD will no longer be used.

To decrypt, please use the command gpg --decrypt backup.zip.gpg > backup.zip.

@AtomAsking , GPG encryption is now available for use. Any help with testing would be greatly appreciated.

@ttionya ttionya linked an issue May 11, 2024 that may be closed by this pull request
@ttionya
ttionya force-pushed the master branch 3 times, most recently from 7961ad2 to e9bed34 Compare May 12, 2024 14:10
@Lenart12

Copy link
Copy Markdown

What is the benefit of this? Doesn't vaultwarden only store user data that is already encrypted and only clients can see the contents... What is the point of encrypting twice 🤔

@ttionya

ttionya commented Mar 21, 2025

Copy link
Copy Markdown
Owner Author

@Lenart12,

Vaultwarden handles encryption for sensitive information such as passwords, storing them securely. However, user and organizational information remains in plaintext. To mitigate the risk of data leakage, it is essential to encrypt the database itself.

@skypigr

skypigr commented Sep 16, 2025

Copy link
Copy Markdown

Any plan to include this feature to stable?

@qaq112233

Copy link
Copy Markdown

I look forward to this feature being added to the stable version.

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.

support GPG encryption

5 participants