Using the secret provider
This page describes how to use the secret provider.
The secret provider was introduced in Duplicati version 2.0.9.109 and aims to reduce the possibility of leaking passwords from Duplicati by not storing the passwords inside Duplicati.
To start using a secret provider you need to set only a single option:
This will make the secret provider available for the remainder of the application.
You can then insert placeholder values where you want secrets to appear but without storing the actual secret in Duplicati. For commandline users, the secrets can appear in both the backend destination or in the options.
As an example:
The secret provider will find the three keys prefixed with $
and look them up with the secret provider. The provider will then be invoked to obtain the real values and the values will be replaced before running the operation. If the secret provider has these values:
The example from above will then be updated internally, but without having the keys written on disk:
To ensure you never run with an empty string or a placeholder instead of the real value, all values requested needs to be in the storage provider, or the operation will fail with a message indicating which key was not found.
Last updated