]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/orchestrator: default NFS ingress to haproxy-protocol mode
authorShubha Jain <SHUBHA.JAIN1@ibm.com>
Tue, 6 Jan 2026 15:19:27 +0000 (20:49 +0530)
committerShubha Jain <SHUBHA.JAIN1@ibm.com>
Thu, 30 Apr 2026 18:01:25 +0000 (23:31 +0530)
Change default ingress mode from haproxy-standard to haproxy-protocol
to preserve client IP addresses for proper IP-level export restrictions
in NFS Ganesha.

Fixes: https://tracker.ceph.com/issues/74260
Signed-off-by: Shubha Jain <SHUBHA.JAIN1@ibm.com>
src/pybind/mgr/orchestrator/module.py

index 56d94fe24ab3d7bc763453171036e76826fd36d9..5b8e9a6458f5eef2e8a8a88f8ec6dbe3ecd2faf2 100644 (file)
@@ -222,7 +222,9 @@ class IngressType(enum.Enum):
 
     def canonicalize(self) -> "IngressType":
         if self == self.default:
-            return IngressType(self.haproxy_standard)
+            # Default to haproxy-protocol to preserve client IP addresses
+            # for proper IP-level export restrictions in NFS Ganesha
+            return IngressType(self.haproxy_protocol)
         return IngressType(self)
 
 
@@ -2623,3 +2625,4 @@ Usage:
         completion = self.update_service(service_type.value, service_type.name, image)
         raise_if_exception(completion)
         return HandleCommandResult(stdout=completion.result_str())
+