aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-23 17:31:53 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-23 17:31:53 +0200
commitcb9b64a184470c7f332eb2c20bf64d53e84406f1 (patch)
tree992ae5d5cc8c22d7e9a4974028f914e9b3ba50ce /src/config.rs
parent378cbd76d0ce97e24941a81ff57c210c0342bd01 (diff)
downloadaerogramme-cb9b64a184470c7f332eb2c20bf64d53e84406f1.tar.gz
aerogramme-cb9b64a184470c7f332eb2c20bf64d53e84406f1.zip
Add user secret in mix to encrypt keys with password
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 8abbce6..ab40824 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -29,6 +29,10 @@ pub struct LoginStaticUser {
pub aws_secret_access_key: String,
pub bucket: Option<String>,
+ pub user_secret: String,
+ #[serde(default)]
+ pub alternate_user_secrets: Vec<String>,
+
pub master_key: Option<String>,
pub secret_key: Option<String>,
}
@@ -41,6 +45,8 @@ pub struct LoginLdapConfig {
pub username_attr: String,
pub aws_access_key_id_attr: String,
pub aws_secret_access_key_attr: String,
+ pub user_secret_attr: String,
+ pub alternate_user_secrets_attr: Option<String>,
pub bucket: Option<String>,
pub bucket_attr: Option<String>,