]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: improve oauth2-proxy validation error messaging
authorShubha Jain <SHUBHA.JAIN1@ibm.com>
Thu, 30 Apr 2026 16:06:16 +0000 (21:36 +0530)
committerShubha Jain <SHUBHA.JAIN1@ibm.com>
Mon, 4 May 2026 16:01:11 +0000 (21:31 +0530)
commit8122f820d7458302de5be2fe685f5a5a3390285f
tree58982d6df1706eeb2f2f097bafef837e2c164348
parent0bb56bbda4eca831820df54d9616be5f52aab277
cephadm: improve oauth2-proxy validation error messaging

Previously, applying oauth2-proxy without required configuration
resulted in misleading field-level validation errors.

This change introduces:
- Early validation for missing spec in CLI path
- Aggregated missing field validation in OAuth2ProxySpec
- Clear and actionable error messages

Fixes:
- ceph orch apply oauth2-proxy without spec
- ceph orch apply -i <yaml> with missing required fields

Fixes: https://tracker.ceph.com/issues/76372
Signed-off-by: Shubha Jain <SHUBHA.JAIN1@ibm.com>
src/pybind/mgr/orchestrator/module.py
src/pybind/mgr/orchestrator/tests/test_orchestrator.py
src/python-common/ceph/deployment/service_spec.py
src/python-common/ceph/tests/test_service_spec.py