Repository navigation
fix(backup): accept PGP files in cluster restore - #1443
Closed
Platypuschan wants to merge 1 commit into
Closed
Platypuschan wants to merge 1 commit into
Platypuschan wants to merge 1 commit into
Conversation
The retrieve-cluster-backup action checks the output of file(1) for the word "GPG". Newer versions of file(1) print "PGP" for the same encrypted file, as on Debian 13, so a valid cluster backup was refused with "not_valid_gpg_file". Accept both words. Also avoid a KeyError in the error report when the backup is fetched from a URL instead of an uploaded file. Assisted-by: Hermes Agent:claude-sonnet-5-5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A cluster backup file created on a Debian 13 node was refused by
retrieve-cluster-backupwith "not_valid_gpg_file", because the newer file(1) calls the encrypted file "PGP" instead of "GPG". NethServer/dev#8410The check now accepts both words, and the error report no longer fails when the backup is fetched from a URL. Nothing else changes.
How to test
retrieve-cluster-backupwith a cluster backup file and its password: before, it fails with "not_valid_gpg_file"; now it is accepted.See also
Generated by Hermes Agent:claude-sonnet-5-5 with nethserver-pr