Repository navigation
tentacle: mgr/dashboard: oauth2 sso configuration fixes and oauth2-proxy prerequisit - #68895
Conversation
b2a7f7f to
812cb8b
Compare
|
Tests (1 failure / +1) |
|
This PR has been added to tentacle integration testing by yuriw started 2026-05-14-20:58. |
|
This PR has been added to tentacle integration testing by yuriw started 2026-05-14-21:01. |
|
This PR has been added to wip-yuri5-testing integration testing. |
|
This PR has been added to wip-yuri5-testing integration testing. |
|
jenkins test make check |
812cb8b to
8971fb7
Compare
|
@Pegonzal can you check test failures ? |
|
jenkins test make check |
|
jenkins test dashboard cephadm |
|
This PR has been added to wip-yuri8-testing-20261009.204258-tentacle. |
|
/audit retest |
|
🔄 Audit Retest Triggered by @afreen23. |
|
/audit retest |
|
🔄 Audit Retest Triggered by @afreen23. |
|
jenkins test make check |
|
/audit retest |
|
🔄 Audit Retest Triggered by @afreen23. |
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Automated Backport Parity Review - Invalid Commit Format
The following commits have an invalid format. Backport commits must either include a standard (cherry picked from commit ...) line or start with the target branch name (e.g., tentacle:).
c2527040mgr/cephadm: fix test_services.py failure
Be familiar with the rules and guidelines for writing backports.
Automated Backport Parity Review
Discrepancies detected between the backport PR and the original source PR(s). Please see the Commit Parity Visualizer below.
Commit Parity Visualizer
| BACKPORT PR #68895 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| 6f91a5f mgr/dashboard: Improve oauth2 sso configuration | PR #67417 | 70328ef mgr/dashboard: Improve oauth2 sso configuration |
| f053f1b mgr/dashboard: raise exception on oauth2 sso expired token | PR #68806 | 3606511 mgr/dashboard: raise exception on oauth2 sso expired token |
| e3b14fd mgr/dashboard: fix missing claims on oauth2 sso | d63d2bf mgr/dashboard: fix missing claims on oauth2 sso | |
| 6b69c3a mgr: add prerequisites check before enabling dashboard oauth2 sso | 062ec6f mgr: add prerequisites check before enabling dashboard oauth2 sso | |
| c252704 mgr/cephadm: fix test_services.py failure | <<<< EXTRA IN BACKPORT >>>> |
Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations
A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
This does not necessarily indicate an issue but a maintainer should review.
**Click to expand conflict summaries.**
Deviation in Backport 6f91a5f (cherry-pick of 70328ef)
Affected File(s)
src/pybind/mgr/cephadm/tests/services/test_mgmt_gateway.pysrc/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.htmlsrc/python-common/ceph/deployment/service_spec.py
Range Diff
Click to expand
--- Original (70328ef1)
+++ Backport (6f91a5f2)
@@ -10,3 +10,15 @@
Fixes: https://tracker.ceph.com/issues/75984
Signed-off-by: Alexandre Jardon <[email protected]>
+(cherry picked from commit 70328ef12a98846553f1395a92bd975065b2e7d9)
+
+ Conflicts:
+ src/pybind/mgr/cephadm/tests/services/test_mgmt_gateway.py
+ src/python-common/ceph/deployment/service_spec.py
+
+ - test_mgmt_gateway.py does not exist in tentacle, updated test_services.py instead.
+ - Different service spec parameters
+
+After rebase with tentacle:
+ Conflicts:
+ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.html
================================================================================
RANGE DIFF
================================================================================
1: 70328ef12a9 ! 1: 6f91a5f2bf7 mgr/dashboard: Improve oauth2 sso configuration Add possibility to configure email_domains and scope parameters in oauth2 sso configuration Fixes: https://tracker.ceph.com/issues/75020
@@ Commit message
Fixes: https://tracker.ceph.com/issues/75984
Signed-off-by: Alexandre Jardon <[email protected]>
+ (cherry picked from commit 70328ef12a98846553f1395a92bd975065b2e7d9)
+
+ Conflicts:
+ src/pybind/mgr/cephadm/tests/services/test_mgmt_gateway.py
+ src/python-common/ceph/deployment/service_spec.py
+
+ - test_mgmt_gateway.py does not exist in tentacle, updated test_services.py instead.
+ - Different service spec parameters
+
+ After rebase with tentacle:
+ Conflicts:
+ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.html
## doc/cephadm/services/oauth2-proxy.rst ##
@@ doc/cephadm/services/oauth2-proxy.rst: A non-exhaustive list of important limitations for the `oauth2-proxy` service fo
@@ src/pybind/mgr/cephadm/templates/services/oauth2-proxy/oauth2-proxy.conf.j2: set
+email_domains= "{{ (email_domains | join(',')) or '*' }}"
whitelist_domains= "{{ allowlist_domains | join(',') }}"
- ## src/pybind/mgr/cephadm/tests/services/test_mgmt_gateway.py ##
-@@ src/pybind/mgr/cephadm/tests/services/test_mgmt_gateway.py: class TestMgmtGateway:
+ ## src/pybind/mgr/cephadm/tests/test_services.py ##
+@@ src/pybind/mgr/cephadm/tests/test_services.py: class TestMgmtGateway:
oidc_issuer_url= "http://192.168.10.10:8888/dex"
redirect_url= "{redirect_url}"
- ssl_insecure_skip_verify=true
-
+-
# following configuration is needed to avoid getting Forbidden
# when using chrome like browsers as they handle 3rd party cookies
+ # more strictly than Firefox
## src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.html ##
@@
- }
- </ng-template>
- </div>
+
+ <!-- oauth2-proxy -->
+ @if (serviceForm.controls.service_type.value === 'oauth2-proxy') {
+- <!-- provider_display_name -->
+- <div class="form-item">
+- <cds-text-label
+- cdRequiredField="Provider display name"
+- placeholder="My OIDC Provider"
+- i18n-placeholder
+- [invalid]="
+- serviceForm.controls.provider_display_name.invalid &&
+- serviceForm.controls.provider_display_name.dirty
+- "
+- [invalidText]="invalidProviderDisplayNameError"
+- >
+- <input
+- cdsText
+- type="text"
+- id="provider_display_name"
+- formControlName="provider_display_name"
+- [invalid]="
+- serviceForm.controls.provider_display_name.invalid &&
+- serviceForm.controls.provider_display_name.dirty
+- "
+- />
+- </cds-text-label>
+- <ng-template #invalidProviderDisplayNameError>
+- @if (serviceForm.showError('provider_display_name', frm, 'required')) {
+- <span
+- class="invalid-feedback"
+- i18n
+- >This field is required.</span
+- >
+- }
+- </ng-template>
+- </div>
+- <!-- client_id -->
+- <div class="form-item">
+- <cds-text-label
+- cdRequiredField="Client ID"
+- placeholder="oauth2-client"
+- [invalid]="
+- serviceForm.controls.client_id.invalid && serviceForm.controls.client_id.dirty
+- "
+- [invalidText]="invalidClientIdError"
+- >
+- <input
+- cdsText
+- type="text"
+- id="client_id"
+- formControlName="client_id"
+- [invalid]="
+- serviceForm.controls.client_id.invalid && serviceForm.controls.client_id.dirty
+- "
+- />
+- </cds-text-label>
+- <ng-template #invalidClientIdError>
+- @if (serviceForm.showError('client_id', frm, 'required')) {
+- <span
+- class="invalid-feedback"
+- i18n
+- >This field is required.</span
+- >
+- }
+- </ng-template>
+- </div>
+- <!-- client_secret -->
+- <div class="form-item form-item-append">
+- <cds-password-label
+- cdRequiredField="Client secret"
+- [invalid]="
+- serviceForm.controls.client_secret.invalid && serviceForm.controls.client_secret.dirty
+- "
+- [invalidText]="invalidClientSecretError"
+- >
+- <input
+- cdsPassword
+- type="text"
+- id="client_secret"
+- formControlName="client_secret"
+- [invalid]="
+- serviceForm.controls.client_secret.invalid &&
+- serviceForm.controls.client_secret.dirty
+- "
+- />
+- </cds-password-label>
+- <cd-copy-2-clipboard-button
+- source="client_secret"
+- class="mt-4"
+- >
+- </cd-copy-2-clipboard-button>
+- <ng-template #invalidClientSecretError>
+- @if (serviceForm.showError('client_secret', frm, 'required')) {
+- <span
+- class="invalid-feedback"
+- i18n
+- >This field is required.</span
+- >
+- }
+- </ng-template>
+- </div>
+- <!-- oidc_issuer_url -->
+- <div class="form-item">
+- <cds-text-label
+- cdRequiredField="OIDC issuer URL"
+- [invalid]="
+- serviceForm.controls.oidc_issuer_url.invalid &&
+- serviceForm.controls.oidc_issuer_url.dirty
+- "
+- [invalidText]="invalidOidcIssuerUrlError"
+- >
+- <input
+- cdsText
+- type="text"
+- id="oidc_issuer_url"
+- formControlName="oidc_issuer_url"
+- [invalid]="
+- serviceForm.controls.oidc_issuer_url.invalid &&
+- serviceForm.controls.oidc_issuer_url.dirty
+- "
+- />
+- </cds-text-label>
+- <ng-template #invalidOidcIssuerUrlError>
+- @if (serviceForm.showError('oidc_issuer_url', frm, 'required')) {
+- <span
+- class="invalid-feedback"
+- i18n
+- >This field is required.</span
+- >
+- }
+- @if (serviceForm.showError('oidc_issuer_url', frm, 'validUrl')) {
+- <span
+- class="invalid-feedback"
+- i18n
+- >Invalid url.</span
+- >
+- }
+- </ng-template>
+- </div>
+- <!-- https_address -->
+- <div class="form-item">
+- <cds-text-label
+- cdRequiredField="Https address"
+- helperText="The address for HTTPS connections as [IP|Hostname]:port."
+- i18n-helperText
+- placeholder="0.0.0.0:4180"
+- [invalid]="
+- serviceForm.controls.https_address.invalid && serviceForm.controls.https_address.dirty
+- "
+- [invalidText]="invalidHttpsAddressError"
+- >
+- <input
+- cdsText
+- type="text"
+- id="https_address"
+- formControlName="https_address"
+- [invalid]="
+- serviceForm.controls.https_address.invalid &&
+- serviceForm.controls.https_address.dirty
+- "
+- />
+- </cds-text-label>
+- <ng-template #invalidHttpsAddressError>
+- @if (serviceForm.showError('https_address', frm, 'invalidAddress')) {
+- <span
+- class="invalid-feedback"
+- i18n
+- >Format must be [IP|Hostname]:port and the port between 0 and 65535</span
+- >
+- }
+- </ng-template>
+- </div>
+- <!-- redirect_url -->
+- <div class="form-item">
+- <cds-text-label
+- cdRequiredField="Redirect URL"
+- placeholder="https://<IP|Hostname>:4180/oauth2/callback"
+- helperText="The URL the oauth2-proxy service will redirect to after a successful login."
+- i18n-helperText
+- [invalid]="
+- serviceForm.controls.redirect_url.invalid && serviceForm.controls.redirect_url.dirty
+- "
+- [invalidText]="invalidRedirectUrlError"
+- >
+- <input
+- cdsText
+- type="text"
+- id="redirect_url"
+- formControlName="redirect_url"
+- [invalid]="
+- serviceForm.controls.redirect_url.invalid && serviceForm.controls.redirect_url.dirty
+- "
+- />
+- </cds-text-label>
+- <ng-template #invalidRedirectUrlError>
+- @if (serviceForm.showError('redirect_url', frm, 'required')) {
+- <span
+- class="invalid-feedback"
+- i18n
+- >This field is required.</span
+- >
+- }
+- </ng-template>
+- </div>
+- <!-- Allowlist_domains -->
+- <div class="form-item">
+- <cd-text-label-list
+- formControlName="allowlist_domains"
+- label="Allowlist domains"
+- helperText="Domains to be allowed to redirect to, used for login or logout."
+- placeholder="192.168.100.1:8080"
+- >
+- </cd-text-label-list>
+- </div>
++ <!-- provider_display_name -->
++ <div class="form-item">
++ <cds-text-label cdRequiredField="Provider display name"
++ placeholder="My OIDC Provider"
++ i18n-placeholder
++ [invalid]="serviceForm.controls.provider_display_name.invalid && serviceForm.controls.provider_display_name.dirty"
++ [invalidText]="invalidProviderDisplayNameError">
++ <input cdsText
++ type="text"
++ id="provider_display_name"
++ formControlName="provider_display_name"
++ [invalid]="serviceForm.controls.provider_display_name.invalid && serviceForm.controls.provider_display_name.dirty" />
++ </cds-text-label>
++ <ng-template #invalidProviderDisplayNameError>
++ @if (serviceForm.showError('provider_display_name', frm, 'required')) {
++ <span class="invalid-feedback"
++ i18n>This field is required.</span>
++ }
++ </ng-template>
++ </div>
++ <!-- client_id -->
++ <div class="form-item">
++ <cds-text-label cdRequiredField="Client ID"
++ placeholder="oauth2-client"
++ [invalid]="serviceForm.controls.client_id.invalid && serviceForm.controls.client_id.dirty"
++ [invalidText]="invalidClientIdError">
++ <input cdsText
++ type="text"
++ id="client_id"
++ formControlName="client_id"
++ [invalid]="serviceForm.controls.client_id.invalid && serviceForm.controls.client_id.dirty" />
++ </cds-text-label>
++ <ng-template #invalidClientIdError>
++ @if (serviceForm.showError('client_id', frm, 'required')) {
++ <span class="invalid-feedback"
++ i18n>This field is required.</span>
++ }
++ </ng-template>
++ </div>
++ <!-- client_secret -->
++ <div class="form-item form-item-append">
++ <cds-password-label cdRequiredField="Client secret"
++ [invalid]="serviceForm.controls.client_secret.invalid && serviceForm.controls.client_secret.dirty"
++ [invalidText]="invalidClientSecretError">
++ <input cdsPassword
++ type="text"
++ id="client_secret"
++ formControlName="client_secret"
++ [invalid]="serviceForm.controls.client_secret.invalid && serviceForm.controls.client_secret.dirty" />
++ </cds-password-label>
++ <cd-copy-2-clipboard-button source="client_secret"
++ class="mt-4">
++ </cd-copy-2-clipboard-button>
++ <ng-template #invalidClientSecretError>
++ @if (serviceForm.showError('client_secret', frm, 'required')) {
++ <span class="invalid-feedback"
++ i18n>This field is required.</span>
++ }
++ </ng-template>
++ </div>
++ <!-- oidc_issuer_url -->
++ <div class="form-item">
++ <cds-text-label cdRequiredField="OIDC issuer URL"
++ [invalid]="serviceForm.controls.oidc_issuer_url.invalid && serviceForm.controls.oidc_issuer_url.dirty"
++ [invalidText]="invalidOidcIssuerUrlError">
++ <input cdsText
++ type="text"
++ id="oidc_issuer_url"
++ formControlName="oidc_issuer_url"
++ [invalid]="serviceForm.controls.oidc_issuer_url.invalid && serviceForm.controls.oidc_issuer_url.dirty" />
++ </cds-text-label>
++ <ng-template #invalidOidcIssuerUrlError>
++ @if (serviceForm.showError('oidc_issuer_url', frm, 'required')) {
++ <span class="invalid-feedback"
++ i18n>This field is required.</span>
++ }
++ @if (serviceForm.showError('oidc_issuer_url', frm, 'validUrl')) {
++ <span class="invalid-feedback"
++ i18n>Invalid url.</span>
++ }
++ </ng-template>
++ </div>
++ <!-- https_address -->
++ <div class="form-item">
++ <cds-text-label cdRequiredField="Https address"
++ helperText="The address for HTTPS connections as [IP|Hostname]:port."
++ i18n-helperText
++ placeholder="0.0.0.0:4180"
++ [invalid]="serviceForm.controls.https_address.invalid && serviceForm.controls.https_address.dirty"
++ [invalidText]="invalidHttpsAddressError">
++ <input cdsText
++ type="text"
++ id="https_address"
++ formControlName="https_address"
++ [invalid]="serviceForm.controls.https_address.invalid && serviceForm.controls.https_address.dirty" />
++ </cds-text-label>
++ <ng-template #invalidHttpsAddressError>
++ @if (serviceForm.showError('https_address', frm, 'invalidAddress')) {
++ <span class="invalid-feedback"
++ i18n>Format must be [IP|Hostname]:port and the port between 0 and 65535</span>
++ }
++ </ng-template>
++ </div>
++ <!-- redirect_url -->
++ <div class="form-item">
++ <cds-text-label cdRequiredField="Redirect URL"
++ placeholder="https://<IP|Hostname>:4180/oauth2/callback"
++ helperText="The URL the oauth2-proxy service will redirect to after a successful login."
++ i18n-helperText
++ [invalid]="serviceForm.controls.redirect_url.invalid && serviceForm.controls.redirect_url.dirty"
++ [invalidText]="invalidRedirectUrlError">
++ <input cdsText
++ type="text"
++ id="redirect_url"
++ formControlName="redirect_url"
++ [invalid]="serviceForm.controls.redirect_url.invalid && serviceForm.controls.redirect_url.dirty" />
++ </cds-text-label>
++ <ng-template #invalidRedirectUrlError>
++ @if (serviceForm.showError('redirect_url', frm, 'required')) {
++ <span class="invalid-feedback"
++ i18n>This field is required.</span>
++ }
++ </ng-template>
++ </div>
+ <!-- Scope -->
+ <div class="form-item">
+ <cd-text-label-list formControlName="scope"
@@ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/ser
+ placeholder="*">
+ </cd-text-label-list>
+ </div>
- <!-- Allowlist_domains -->
- <div class="form-item">
- <cd-text-label-list formControlName="allowlist_domains"
-@@
- placeholder="192.168.100.1:8080">
- </cd-text-label-list>
- </div>
++ <!-- Allowlist_domains -->
++ <div class="form-item">
++ <cd-text-label-list formControlName="allowlist_domains"
++ label="Allowlist domains"
++ helperText="Domains to be allowed to redirect to, used for login or logout."
++ placeholder="192.168.100.1:8080">
++ </cd-text-label-list>
++ </div>
+ <!-- SSL Insecure Skip Verify -->
+ <div class="form-item">
+ <cds-checkbox i18n-label
@@ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/ser
+ </div>
}
- @if (!serviceForm.controls.unmanaged.value && ['mgmt-gateway'].includes(serviceForm.controls.service_type.value))
+ @if (
## src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.ts ##
@@ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.ts: export class ServiceFormComponent extends CdForm implements OnInit {
@@ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/ser
}
+ serviceSpec['ssl_insecure_skip_verify'] = values['ssl_insecure_skip_verify'];
if (values['ssl']) {
- this.applySslCertificateConfig(serviceSpec, values);
- }
+ serviceSpec['ssl_cert'] = values['ssl_cert']?.trim();
+ serviceSpec['ssl_key'] = values['ssl_key']?.trim();
## src/pybind/mgr/dashboard/services/auth/auth.py ##
@@ src/pybind/mgr/dashboard/services/auth/auth.py: class JwtManager(object):
@@ src/python-common/ceph/deployment/service_spec.py: class OAuth2ProxySpec(Service
cookie_secret: Optional[str] = None,
ssl_cert: Optional[str] = None,
ssl_key: Optional[str] = None,
- ssl: Optional[bool] = True,
- certificate_source: Optional[str] = None,
- custom_sans: Optional[List[str]] = None,
+ email_domains: Optional[List[str]] = None,
allowlist_domains: Optional[List[str]] = None,
+ ssl_insecure_skip_verify: Optional[bool] = False,
@@ src/python-common/ceph/deployment/service_spec.py: class OAuth2ProxySpec(Service
#: The secret key used for signing cookies. Its length must be 16,
# 24, or 32 bytes to create an AES cipher.
self.cookie_secret = cookie_secret or self.generate_random_secret()
+@@ src/python-common/ceph/deployment/service_spec.py: class OAuth2ProxySpec(ServiceSpec):
+ self.ssl_cert = ssl_cert
+ #: The multi-line SSL certificate private key for decrypting communications.
+ self.ssl_key = ssl_key
+ #: List of allowed email domains.
+ self.email_domains = email_domains
#: List of allowed domains for safe redirection after login or logout,Deviation in Backport 6b69c3a (cherry-pick of 062ec6f)
Affected File(s)
src/pybind/mgr/cephadm/services/oauth2_proxy.py
Range Diff
Click to expand
--- Original (062ec6fe)
+++ Backport (6b69c3a8)
@@ -3,3 +3,7 @@
Assisted-by: Claude:claude-4.6-sonnet
Fixes: https://tracker.ceph.com/issues/76476
Signed-off-by: Pedro Gonzalez Gomez <[email protected]>
+(cherry picked from commit 062ec6feddec4cc326f89c63c6b87ea9e0c3bd91)
+
+ Conflicts:
+ src/pybind/mgr/cephadm/services/oauth2_proxy.py
================================================================================
RANGE DIFF
================================================================================
1: 062ec6fedde ! 1: 6b69c3a8c8d mgr: add prerequisites check before enabling dashboard oauth2 sso
@@ Commit message
Assisted-by: Claude:claude-4.6-sonnet
Fixes: https://tracker.ceph.com/issues/76476
Signed-off-by: Pedro Gonzalez Gomez <[email protected]>
+ (cherry picked from commit 062ec6feddec4cc326f89c63c6b87ea9e0c3bd91)
+
+ Conflicts:
+ src/pybind/mgr/cephadm/services/oauth2_proxy.py
## PendingReleaseNotes ##
@@
@@ PendingReleaseNotes
* Dashboard: SMB monitoring and management
+* Dashboard: `ceph dashboard sso enable oauth2` checks for oauth2-proxy service for SSO enablement. If the `oauth2-proxy` service goes down, cephadm will automatically disable Dashboard OAuth2 SSO.
* Monitoring: New monitoring Dashboards for Application, NVMe, CephFS, and SMB Overview
- * RGW: Introduce the `rgw_usage_log_key_transition` configuration option to handle
- the co-existence of old and new usage log keys. This option is enabled by default
+ * Dashboard: Introduces a command `ceph dashboard set-rgw-hostname <daemon> <hostname>`
+ to set custom dns names for each gateways. Once set dashboard will pick up that
## doc/cephadm/services/oauth2-proxy.rst ##
@@ doc/cephadm/services/oauth2-proxy.rst: A non-exhaustive list of important limitations for the `oauth2-proxy` service fo
@@ src/pybind/mgr/cephadm/services/oauth2_proxy.py: import logging
from cephadm.services.cephadmservice import CephadmService, CephadmDaemonDeploySpec
from .service_registry import register_cephadm_service
@@ src/pybind/mgr/cephadm/services/oauth2_proxy.py: class OAuth2ProxyService(CephadmService):
- }
-
- return daemon_config, sorted(OAuth2ProxyService.get_dependencies(self.mgr))
-+
-+ def post_remove(self, daemon: DaemonDescription, is_failed_deploy: bool) -> None:
-+ """
+ def post_remove(self, daemon: DaemonDescription, is_failed_deploy: bool) -> None:
+ """
+ Called before mgmt-gateway daemon is removed.
+ Called after an oauth2-proxy daemon is removed.
+ Disables Dashboard OAuth2 SSO if no other oauth2-proxy daemons remain running.
-+ """
+ """
+ # delete cert/key entires for this mgmt-gateway daemon
+ self.mgr.cert_mgr.rm_cert('oauth2_proxy_cert')
+ self.mgr.cert_mgr.rm_key('oauth2_proxy_key')
++
+ remaining_running = any(
+ dd.status == DaemonDescriptionStatus.running and dd.name() != daemon.name()
+ for dd in self.mgr.cache.get_daemons_by_service('oauth2-proxy')
@@ src/pybind/mgr/cephadm/services/oauth2_proxy.py: class OAuth2ProxyService(Cephad
+
+ super().post_remove(daemon, is_failed_deploy=is_failed_deploy)
+ ## src/pybind/mgr/cephadm/tests/test_services.py ##
+@@ src/pybind/mgr/cephadm/tests/test_services.py: class TestMgmtGateway:
+
+ with with_host(cephadm_module, 'ceph-node'):
+ with with_service(cephadm_module, mgmt_gw_spec) as _, with_service(cephadm_module, oauth2_spec):
+- _run_cephadm.assert_called_with(
++ _run_cephadm.assert_any_call(
+ 'ceph-node',
+ 'oauth2-proxy.ceph-node',
+ ['_orch', 'deploy'],
+
## src/pybind/mgr/dashboard/module.py ##
@@ src/pybind/mgr/dashboard/module.py: from mgr_util import ServerConfigException, build_url, \
How to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
🛟 Need Help?
If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.
📋 Component Lead / Release Manager
To override the audit failure, apply releng-audit-override label or comment /audit override.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
Adding override
|
|
✅ Audit Override Applied by @afreen23. |
Backport trackers:
https://tracker.ceph.com/issues/76357
https://tracker.ceph.com/issues/76527
https://tracker.ceph.com/issues/76526
https://tracker.ceph.com/issues/76525
https://tracker.ceph.com/issues/81598
https://tracker.ceph.com/issues/78096
Original Prs:
#68895
#67417
#68806
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.