1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/src
David Steele 6680130c6f Require S3 key options except for local/remote commands.
S3 key options (repo1-s3-key/repo1-s3-key-secret) were not required which meant that users got an ugly assertion when they were missing rather than a tidy configuration error.

Only the local/remote commands need them to be optional.  This is because local/remote commands get all their options from the command line but secrets cannot be passed on the command line.  Instead, secrets are passed to the local/remote commands via the protocol for any operation that needs them.

The configuration system allows required to be set per command so use that to improve the error messages while not breaking the local/remote commands.
2018-11-20 19:24:53 -05:00
..
command Apply String constant macros where appropriate. 2018-11-10 18:32:49 -05:00
common Add ServiceError for errors from a service that can be retried. 2018-11-16 17:22:22 -05:00
compress Apply String constant macros where appropriate. 2018-11-10 18:32:49 -05:00
config Require S3 key options except for local/remote commands. 2018-11-20 19:24:53 -05:00
crypto Apply String constant macros where appropriate. 2018-11-10 18:32:49 -05:00
info Reduce debug level for infoIni() to test. 2018-11-16 16:05:06 -05:00
perl Add ServiceError for errors from a service that can be retried. 2018-11-16 17:22:22 -05:00
postgres Apply String constant macros where appropriate. 2018-11-10 18:32:49 -05:00
storage Allow storage path and file mode to be 0. 2018-11-12 20:00:57 -05:00
.gitignore Add .gitignore to C src directory. 2018-09-30 12:27:05 +01:00
main.c Support configurable WAL segment size. 2018-09-25 10:24:42 +01:00
Makefile Apply String constant macros where appropriate. 2018-11-10 18:32:49 -05:00
version.h Begin v2.08 development. 2018-11-16 10:04:14 -05:00