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{