From 04903ffcb424fcc25b8f80b3251937a90a5be992 Mon Sep 17 00:00:00 2001 From: Samuel <39674930+samgj18@users.noreply.github.com> Date: Fri, 7 Jun 2024 14:50:55 +0100 Subject: [PATCH] fix: adding a sensible default on cache secret (#56) --- integrationos-api/src/config.rs | 2 +- integrationos-event/src/config.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/integrationos-api/src/config.rs b/integrationos-api/src/config.rs index fe511ab7..7131ca41 100644 --- a/integrationos-api/src/config.rs +++ b/integrationos-api/src/config.rs @@ -36,7 +36,7 @@ pub struct Config { pub connection_model_schema_cache_ttl_secs: u64, #[envconfig(from = "CONNECTION_MODEL_DEFINITION_CACHE_TTL_SECS", default = "3600")] pub connection_model_definition_cache_ttl_secs: u64, - #[envconfig(from = "SECRET_CACHE_TTL_SECS", default = "3600")] + #[envconfig(from = "SECRET_CACHE_TTL_SECS", default = "300")] pub secret_cache_ttl_secs: u64, #[envconfig( from = "EVENT_ACCESS_PASSWORD", diff --git a/integrationos-event/src/config.rs b/integrationos-event/src/config.rs index 69dc7125..2c51ac13 100644 --- a/integrationos-event/src/config.rs +++ b/integrationos-event/src/config.rs @@ -24,7 +24,7 @@ pub struct EventCoreConfig { pub connection_model_schema_cache_ttl_secs: u64, #[envconfig(from = "CONNECTION_MODEL_DEFINITION_CACHE_TTL_SECS", default = "3600")] pub connection_model_definition_cache_ttl_secs: u64, - #[envconfig(from = "SECRET_CACHE_TTL_SECS", default = "3600")] + #[envconfig(from = "SECRET_CACHE_TTL_SECS", default = "300")] pub secret_cache_ttl_secs: u64, }