Skip to content
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

Feature: PGP Asymmetric Encryption #456

Merged
merged 20 commits into from
Aug 11, 2024
Merged

Feature: PGP Asymmetric Encryption #456

merged 20 commits into from
Aug 11, 2024

Conversation

lbsekr
Copy link
Contributor

@lbsekr lbsekr commented Aug 9, 2024

While this project already provides symmetric pgp encryption, it lacks a way to encrypt backups asymmetric.
Therefore this pull request provides that functionality.

Therefore the encryptArchive function has been changed. All changes have been tested and documented.

I have not done much programming in Golang in the last year. Suggestions for improvement are welcome.

Copy link
Member

@m90 m90 left a comment

Choose a reason for hiding this comment

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

Thanks for this valuable addition. I left a few comments inline, nothing major. Let me know what you think.

docs/reference/index.md Outdated Show resolved Hide resolved
cmd/backup/encrypt_archive.go Outdated Show resolved Hide resolved
cmd/backup/encrypt_archive.go Show resolved Hide resolved
cmd/backup/encrypt_archive.go Show resolved Hide resolved
cmd/backup/encrypt_archive.go Outdated Show resolved Hide resolved
cmd/backup/config.go Outdated Show resolved Hide resolved
cmd/backup/encrypt_archive.go Outdated Show resolved Hide resolved
lbsekr and others added 5 commits August 9, 2024 18:10
use correct env var in example

Co-authored-by: Frederik Ring <frederik.ring@gmail.com>
use errwarp for initial error msg

Co-authored-by: Frederik Ring <frederik.ring@gmail.com>
test/gpg-asym/test-priv.asc Outdated Show resolved Hide resolved
test/gpg-asym/run.sh Outdated Show resolved Hide resolved
cmd/backup/encrypt_archive.go Outdated Show resolved Hide resolved
@lbsekr
Copy link
Contributor Author

lbsekr commented Aug 9, 2024

Thank you for reviewing. I just hope all this is getting squashed 🙂

cmd/backup/encrypt_archive.go Outdated Show resolved Hide resolved
@m90
Copy link
Member

m90 commented Aug 10, 2024

This looks good to me now. There's a tiny complaint by the linter still, but once that's fixed I'd say this is good to go.

Copy link
Member

@m90 m90 left a comment

Choose a reason for hiding this comment

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

Thanks for the feature and the conversation, that's much appreciated. I'll (squash) merge this when #457 is ready so I can cut a release for these changes then. I'll let you know when that happens 🎩

@m90 m90 merged commit 8a64da4 into offen:main Aug 11, 2024
3 checks passed
@m90
Copy link
Member

m90 commented Aug 11, 2024

This is now included in v2.42.0

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