From 325c0baaab0fdec308ce9d584ec8d1765f4a88bd Mon Sep 17 00:00:00 2001 From: Camila Macedo <7708031+camilamacedo86@users.noreply.github.com> Date: Tue, 19 Nov 2024 18:54:07 +0000 Subject: [PATCH] add real certificates to manager --- cmd/manager/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/manager/main.go b/cmd/manager/main.go index 2ba29b054..18698e6d3 100644 --- a/cmd/manager/main.go +++ b/cmd/manager/main.go @@ -186,6 +186,11 @@ func main() { // These configurations ensure that only authorized users and service accounts // can access the metrics endpoint. FilterProvider: filters.WithAuthenticationAndAuthorization, + + // Ensure that metrics is protected with certs managed by cert-manager + CertDir: "/var/certs/", + CertName: "olm-ca.crt", + KeyName: "ca.crt", } mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{