[PR #47] Added password encryption for ZIP files #149

Open
opened 2026-02-26 21:34:42 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/eduardolat/pgbackweb/pull/47
Author: @mdrozdovz
Created: 9/17/2024
Status: 🔄 Open

Base: mainHead: main


📝 Commits (5)

  • 52388e0 Added support for password-protected ZIP files
  • d32d534 Updated .env files
  • e2c1fb5 Revert "Added support for password-protected ZIP files"
  • 26b2816 Reapply "Added support for password-protected ZIP files"
  • 4200bcb Reverted accidental LICENSE changes

📊 Changes

11 files changed (+45 additions, -6 deletions)

View changed files

📝 .env.dev (+4 -0)
📝 .env.example (+4 -0)
📝 README.md (+3 -0)
📝 docker/Dockerfile (+1 -1)
📝 docker/Dockerfile.cicd (+1 -1)
📝 docker/Dockerfile.dev (+1 -1)
📝 docker/compose.dev.yaml (+4 -0)
📝 go.mod (+1 -0)
📝 go.sum (+2 -0)
📝 internal/config/env.go (+5 -0)
📝 internal/integration/postgres/postgres.go (+19 -3)

📄 Description

Added password encryption for ZIP files used both in local and remote (S3/Minio) destinations.

Working with remote destinations it's often the case the bucket is shared across different teams/projects or permissions are not fine-grained. So, in order to prevent data leaks, and as best practice when uploading data to third party services encrypting files is a way to go.

This PR adds support for encrypting dump and decrypting upon restoration - by replacing unzip utility with p7zip.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/eduardolat/pgbackweb/pull/47 **Author:** [@mdrozdovz](https://github.com/mdrozdovz) **Created:** 9/17/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (5) - [`52388e0`](https://github.com/eduardolat/pgbackweb/commit/52388e0c03e815398da737d855c429f4a4234d80) Added support for password-protected ZIP files - [`d32d534`](https://github.com/eduardolat/pgbackweb/commit/d32d5349a6ab05b4faa50367eff31bbd33b05237) Updated .env files - [`e2c1fb5`](https://github.com/eduardolat/pgbackweb/commit/e2c1fb51e56ae11c7cd0505cb2c0fe18927fb128) Revert "Added support for password-protected ZIP files" - [`26b2816`](https://github.com/eduardolat/pgbackweb/commit/26b28160d07cf312b1ad1ab2b036e8ce13e9ffbc) Reapply "Added support for password-protected ZIP files" - [`4200bcb`](https://github.com/eduardolat/pgbackweb/commit/4200bcb3936d91545b1a558f6bb63a50caa5204b) Reverted accidental LICENSE changes ### 📊 Changes **11 files changed** (+45 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `.env.dev` (+4 -0) 📝 `.env.example` (+4 -0) 📝 `README.md` (+3 -0) 📝 `docker/Dockerfile` (+1 -1) 📝 `docker/Dockerfile.cicd` (+1 -1) 📝 `docker/Dockerfile.dev` (+1 -1) 📝 `docker/compose.dev.yaml` (+4 -0) 📝 `go.mod` (+1 -0) 📝 `go.sum` (+2 -0) 📝 `internal/config/env.go` (+5 -0) 📝 `internal/integration/postgres/postgres.go` (+19 -3) </details> ### 📄 Description ## Added password encryption for ZIP files used both in local and remote (S3/Minio) destinations. Working with remote destinations it's often the case the bucket is shared across different teams/projects or permissions are not fine-grained. So, in order to prevent data leaks, and as best practice when uploading data to third party services encrypting files is a way to go. This PR adds support for encrypting dump and decrypting upon restoration - by replacing `unzip` utility with `p7zip`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pgbackweb#149
No description provided.