From c206b5d375fe76094b497817d9407f745d213aee Mon Sep 17 00:00:00 2001 From: Razvan-Daniel Mihai <84674+razvan@users.noreply.github.com> Date: Mon, 9 Dec 2024 13:26:53 +0100 Subject: [PATCH] fix: revert default secret lifetime to 1 day (#507) --- rust/crd/src/history.rs | 2 +- rust/crd/src/roles.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/crd/src/history.rs b/rust/crd/src/history.rs index 0651ece5..1ca93081 100644 --- a/rust/crd/src/history.rs +++ b/rust/crd/src/history.rs @@ -410,7 +410,7 @@ pub struct HistoryConfig { impl HistoryConfig { // Auto TLS certificate lifetime - const DEFAULT_HISTORY_SECRET_LIFETIME: Duration = Duration::from_days_unchecked(7); + const DEFAULT_HISTORY_SECRET_LIFETIME: Duration = Duration::from_days_unchecked(1); fn default_config(cluster_name: &str) -> HistoryConfigFragment { HistoryConfigFragment { diff --git a/rust/crd/src/roles.rs b/rust/crd/src/roles.rs index 77c3d57b..72bab050 100644 --- a/rust/crd/src/roles.rs +++ b/rust/crd/src/roles.rs @@ -133,7 +133,7 @@ pub struct RoleConfig { impl RoleConfig { // Auto TLS certificate lifetime - const DEFAULT_SECRET_LIFETIME: Duration = Duration::from_days_unchecked(7); + const DEFAULT_SECRET_LIFETIME: Duration = Duration::from_days_unchecked(1); pub fn default_config() -> RoleConfigFragment { RoleConfigFragment { @@ -225,7 +225,7 @@ pub struct SubmitConfig { impl SubmitConfig { // Auto TLS certificate lifetime - const DEFAULT_SECRET_LIFETIME: Duration = Duration::from_days_unchecked(7); + const DEFAULT_SECRET_LIFETIME: Duration = Duration::from_days_unchecked(1); pub fn default_config() -> SubmitConfigFragment { SubmitConfigFragment {