Skip to content

Commit b7cf5aa

Browse files
committed
Fix cipher_public_key and cipher_private_key not allowed in config file
1 parent 7b2ab08 commit b7cf5aa

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,9 +496,9 @@ func validateConfigurationFile(cfg *ini.File) error {
496496
"dbname", "exclude_dbs", "include_dbs", "with_templates", "format",
497497
"parallel_backup_jobs", "compress_level", "jobs", "pause_timeout",
498498
"purge_older_than", "purge_min_keep", "checksum_algorithm", "pre_backup_hook",
499-
"post_backup_hook", "encrypt", "cipher_pass", "encrypt_keep_source",
500-
"upload", "purge_remote", "s3_region", "s3_bucket", "s3_endpoint", "s3_profile",
501-
"s3_key_id", "s3_secret", "s3_force_path", "s3_tls", "sftp_host",
499+
"post_backup_hook", "encrypt", "cipher_pass", "cipher_public_key", "cipher_private_key",
500+
"encrypt_keep_source", "upload", "purge_remote", "s3_region", "s3_bucket", "s3_endpoint",
501+
"s3_profile", "s3_key_id", "s3_secret", "s3_force_path", "s3_tls", "sftp_host",
502502
"sftp_port", "sftp_user", "sftp_password", "sftp_directory", "sftp_identity",
503503
"sftp_ignore_hostkey", "gcs_bucket", "gcs_endpoint", "gcs_keyfile",
504504
"azure_container", "azure_account", "azure_key", "azure_endpoint", "pg_dump_options",

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import (
3737
"time"
3838
)
3939

40-
var version = "2.3.0"
40+
var version = "2.3.1"
4141
var binDir string
4242

4343
type dump struct {

pg_back.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ encrypt = false
6767
# environment variable can be used alternatively.
6868
cipher_pass =
6969

70+
# AGE public key for encryption; in Bech32 encoding starting with 'age1'
71+
cipher_public_key =
72+
73+
# AGE private key for decryption; in Bech32 encoding starting with 'AGE-SECRET-KEY-1'
74+
cipher_private_key =
75+
7076
# Keep original files after encrypting them.
7177
encrypt_keep_source = false
7278

0 commit comments

Comments
 (0)