KMS: allow to provide the master encryption key as string

This commit is contained in:
Nicola Murino
2021-07-17 15:34:48 +02:00
parent 030507a2ce
commit 5a568b4077
5 changed files with 17 additions and 8 deletions

View File

@@ -7,6 +7,7 @@ SFTPGo stores sensitive data such as Cloud account credentials or passphrases to
The `secrets` section of the `kms` configuration allows to configure how to encrypt and decrypt sensitive data. The following configuration parameters are available:
- `url` defines the URI to the KMS service
- `master_key`, defines the master encryption key as string. If not empty, it takes precedence over `master_key_path`.
- `master_key_path` defines the absolute path to a file containing the master encryption key. This could be, for example, a docker secrets or a file protected with filesystem level permissions.
### Local provider