Skip to content

Commit c206b5d

Browse files
authored
fix: revert default secret lifetime to 1 day (#507)
1 parent eb6a741 commit c206b5d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rust/crd/src/history.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ pub struct HistoryConfig {
410410

411411
impl HistoryConfig {
412412
// Auto TLS certificate lifetime
413-
const DEFAULT_HISTORY_SECRET_LIFETIME: Duration = Duration::from_days_unchecked(7);
413+
const DEFAULT_HISTORY_SECRET_LIFETIME: Duration = Duration::from_days_unchecked(1);
414414

415415
fn default_config(cluster_name: &str) -> HistoryConfigFragment {
416416
HistoryConfigFragment {

rust/crd/src/roles.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pub struct RoleConfig {
133133

134134
impl RoleConfig {
135135
// Auto TLS certificate lifetime
136-
const DEFAULT_SECRET_LIFETIME: Duration = Duration::from_days_unchecked(7);
136+
const DEFAULT_SECRET_LIFETIME: Duration = Duration::from_days_unchecked(1);
137137

138138
pub fn default_config() -> RoleConfigFragment {
139139
RoleConfigFragment {
@@ -225,7 +225,7 @@ pub struct SubmitConfig {
225225

226226
impl SubmitConfig {
227227
// Auto TLS certificate lifetime
228-
const DEFAULT_SECRET_LIFETIME: Duration = Duration::from_days_unchecked(7);
228+
const DEFAULT_SECRET_LIFETIME: Duration = Duration::from_days_unchecked(1);
229229

230230
pub fn default_config() -> SubmitConfigFragment {
231231
SubmitConfigFragment {

0 commit comments

Comments
 (0)