]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: pass RGW zonegroup hostnames as custom SANs 69984/head
authorRedouane Kachach <rkachach@ibm.com>
Tue, 7 Jul 2026 10:37:53 +0000 (12:37 +0200)
committerRedouane Kachach <rkachach@ibm.com>
Tue, 7 Jul 2026 10:37:53 +0000 (12:37 +0200)
commit3ceee3ad3ffcbac4ded9da2060633d7bec0ea39a
tree3ad0612aebc5f0fd65f52bee4d94cf3baeb5a7cf
parent6c89866b534a380fe99e2e0eae5e4b904f6e6da8
mgr/cephadm: pass RGW zonegroup hostnames as custom SANs

Fix RGW certificate generation so `zonegroup_hostnames` and wildcard
SANs are passed to `get_certificates()` using the correct keyword
argument. Previously, RGW built the expected SAN list from
`zonegroup_hostnames` and `wildcard_enabled`, but passed it
positionally so it was interpreted as ips list.

Also add a unit test to cover the RGW `zonegroup_hostnames` +
`wildcard_enabled` path and ensure SANs are passed as `custom_sans`.

Fixed other calls to enforce the usage of keywords for arguments just
to avoid similar issues in the future.

Fixes: https://tracker.ceph.com/issues/77980
Signed-off-by: Redouane Kachach <rkachach@ibm.com>
src/pybind/mgr/cephadm/services/cephadmservice.py
src/pybind/mgr/cephadm/services/mgmt_gateway.py
src/pybind/mgr/cephadm/services/monitoring.py
src/pybind/mgr/cephadm/tests/services/test_rgw.py