Skip to content

Commit

Permalink
fix: revert default secret lifetime to 1 day (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
razvan authored Dec 9, 2024
1 parent eb6a741 commit c206b5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust/crd/src/history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions rust/crd/src/roles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit c206b5d

Please sign in to comment.