From 4dcd9eff40af2a0827a22d5a622bf8448f2b5c43 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Fri, 28 Nov 2025 14:17:23 +0200 Subject: [PATCH] Make use of the `BAIBOT_PERSISTENCE_SESSION_ENCRYPTION_KEY` environment variable for configuring `config.persistence.session_encryption_key` Seems like we already had a constant defined, but weren't making use of it. --- src/bot/load_config.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bot/load_config.rs b/src/bot/load_config.rs index c69e372..c7f0846 100644 --- a/src/bot/load_config.rs +++ b/src/bot/load_config.rs @@ -51,6 +51,9 @@ pub fn load() -> anyhow::Result { cfg_env::BAIBOT_PERSISTENCE_DATA_DIR_PATH => { config.persistence.data_dir_path = Some(value); } + cfg_env::BAIBOT_PERSISTENCE_SESSION_ENCRYPTION_KEY => { + config.persistence.session_encryption_key = Some(value); + } cfg_env::BAIBOT_PERSISTENCE_CONFIG_ENCRYPTION_KEY => { config.persistence.config_encryption_key = Some(value); }