From 437bfa033660a7221ea01bcfd0fc303e334a534f Mon Sep 17 00:00:00 2001 From: tithakka Date: Thu, 10 Jul 2025 13:51:47 -0500 Subject: [PATCH 1/2] Add feature flag for using RHCS cert auto rotation tool in Notifications from app-interface --- pkg/client/notifications/config.go | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/pkg/client/notifications/config.go b/pkg/client/notifications/config.go index 2671cf88..33620de8 100644 --- a/pkg/client/notifications/config.go +++ b/pkg/client/notifications/config.go @@ -1,21 +1,23 @@ package notifications type ClientConfiguration struct { - BaseURL string - ProxyURL string - KeyFile string - CertFile string - Key string - Cert string - EnableMock bool + BaseURL string + ProxyURL string + KeyFile string + CertFile string + Key string + Cert string + EnableMock bool + UseRHCSCertAutoRotation bool } func NewClientConfig() *ClientConfiguration { return &ClientConfiguration{ - BaseURL: "https://mtls.internal.cloud.redhat.com/api/notifications-gw/notifications", - ProxyURL: "", - KeyFile: "secrets/notifications.key", - CertFile: "secrets/notifications.crt", - EnableMock: false, + BaseURL: "https://mtls.internal.cloud.redhat.com/api/notifications-gw/notifications", + ProxyURL: "", + KeyFile: "secrets/notifications.key", + CertFile: "secrets/notifications.crt", + EnableMock: false, + UseRHCSCertAutoRotation: false, } } From 4e2da69f6c078a3cd56b4c51e264466c559f505d Mon Sep 17 00:00:00 2001 From: tithakka Date: Mon, 14 Jul 2025 12:27:46 -0500 Subject: [PATCH 2/2] Change the variable name --- pkg/client/notifications/config.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/pkg/client/notifications/config.go b/pkg/client/notifications/config.go index 33620de8..8aaeaa49 100644 --- a/pkg/client/notifications/config.go +++ b/pkg/client/notifications/config.go @@ -1,23 +1,23 @@ package notifications type ClientConfiguration struct { - BaseURL string - ProxyURL string - KeyFile string - CertFile string - Key string - Cert string - EnableMock bool - UseRHCSCertAutoRotation bool + BaseURL string + ProxyURL string + KeyFile string + CertFile string + Key string + Cert string + EnableMock bool + EnableRHCSCertAutoRotation bool } func NewClientConfig() *ClientConfiguration { return &ClientConfiguration{ - BaseURL: "https://mtls.internal.cloud.redhat.com/api/notifications-gw/notifications", - ProxyURL: "", - KeyFile: "secrets/notifications.key", - CertFile: "secrets/notifications.crt", - EnableMock: false, - UseRHCSCertAutoRotation: false, + BaseURL: "https://mtls.internal.cloud.redhat.com/api/notifications-gw/notifications", + ProxyURL: "", + KeyFile: "secrets/notifications.key", + CertFile: "secrets/notifications.crt", + EnableMock: false, + EnableRHCSCertAutoRotation: false, } }