Skip to content

Commit

Permalink
Fix cipher_public_key and cipher_private_key not allowed in config file
Browse files Browse the repository at this point in the history
  • Loading branch information
orgrim committed May 31, 2024
1 parent 7b2ab08 commit b7cf5aa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,9 @@ func validateConfigurationFile(cfg *ini.File) error {
"dbname", "exclude_dbs", "include_dbs", "with_templates", "format",
"parallel_backup_jobs", "compress_level", "jobs", "pause_timeout",
"purge_older_than", "purge_min_keep", "checksum_algorithm", "pre_backup_hook",
"post_backup_hook", "encrypt", "cipher_pass", "encrypt_keep_source",
"upload", "purge_remote", "s3_region", "s3_bucket", "s3_endpoint", "s3_profile",
"s3_key_id", "s3_secret", "s3_force_path", "s3_tls", "sftp_host",
"post_backup_hook", "encrypt", "cipher_pass", "cipher_public_key", "cipher_private_key",
"encrypt_keep_source", "upload", "purge_remote", "s3_region", "s3_bucket", "s3_endpoint",
"s3_profile", "s3_key_id", "s3_secret", "s3_force_path", "s3_tls", "sftp_host",
"sftp_port", "sftp_user", "sftp_password", "sftp_directory", "sftp_identity",
"sftp_ignore_hostkey", "gcs_bucket", "gcs_endpoint", "gcs_keyfile",
"azure_container", "azure_account", "azure_key", "azure_endpoint", "pg_dump_options",
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import (
"time"
)

var version = "2.3.0"
var version = "2.3.1"
var binDir string

type dump struct {
Expand Down
6 changes: 6 additions & 0 deletions pg_back.conf
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ encrypt = false
# environment variable can be used alternatively.
cipher_pass =

# AGE public key for encryption; in Bech32 encoding starting with 'age1'
cipher_public_key =

# AGE private key for decryption; in Bech32 encoding starting with 'AGE-SECRET-KEY-1'
cipher_private_key =

# Keep original files after encrypting them.
encrypt_keep_source = false

Expand Down

0 comments on commit b7cf5aa

Please sign in to comment.