Skip to content

tentacle: mgr/dashboard: oauth2 sso configuration fixes and oauth2-proxy prerequisit - #68895

Merged
batrick merged 5 commits into
tentaclefrom
oauth2-sso-fixes-tentacle
Oct 12, 2026
Merged

batrick merged 5 commits into
tentaclefrom
oauth2-sso-fixes-tentacle

Conversation

@Pegonzal

@Pegonzal Pegonzal commented May 13, 2026 •

Copy link
Copy Markdown
Contributor

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@afreen23

Copy link
Copy Markdown
Contributor

Tests (1 failure / +1)
projectroot.src.pybind.mgr.run_tox_mgr

@afreen23 afreen23 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make check failures,

@github-project-automation github-project-automation Bot moved this from New to Review in progress in Ceph-Dashboard May 14, 2026
@yuriw

yuriw commented May 14, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to tentacle integration testing by yuriw started 2026-05-14-20:58.

@yuriw

yuriw commented May 14, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to tentacle integration testing by yuriw started 2026-05-14-21:01.

@yuriw

yuriw commented May 14, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri5-testing integration testing.

@yuriw

yuriw commented May 14, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri5-testing integration testing.

@Pegonzal

Pegonzal commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@Pegonzal
Pegonzal force-pushed the oauth2-sso-fixes-tentacle branch from 812cb8b to 8971fb7 Compare June 8, 2026 08:03
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jun 8, 2026
@afreen23

Copy link
Copy Markdown
Contributor

@Pegonzal can you check test failures ?

@afreen23

afreen23 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check

@afreen23

afreen23 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

jenkins test dashboard cephadm

@yuriw

yuriw commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri8-testing-20261009.204258-tentacle.

@afreen23

afreen23 commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

/audit retest

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

🔄 Audit Retest Triggered by @afreen23.

View workflow run

@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Oct 9, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Oct 9, 2026
@afreen23

Copy link
Copy Markdown
Contributor

/audit retest

@github-actions

Copy link
Copy Markdown

🔄 Audit Retest Triggered by @afreen23.

View workflow run

@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Oct 12, 2026
@afreen23

Copy link
Copy Markdown
Contributor

jenkins test make check

github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Oct 12, 2026
@afreen23

Copy link
Copy Markdown
Contributor

/audit retest

@github-actions

Copy link
Copy Markdown

🔄 Audit Retest Triggered by @afreen23.

View workflow run

@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Oct 12, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:).

  • c2527040 mgr/cephadm: fix test_services.py failure

Be familiar with the rules and guidelines for writing backports.


Automated Backport Parity Review

⚠️ Multiple Original PRs Detected: PR #67417, PR #68806

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

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

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)

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)

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.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Oct 12, 2026
@afreen23

afreen23 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Adding override

  • the conflicts and reasons mentioned in cherrypick commit except for one which checked manual and LGTM
  • test fix commit message title should have tentacle , but ignoring for now as test passing @Pegonzal please note for next time.

@afreen23 afreen23 added releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels Oct 12, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @afreen23.

View workflow run

@batrick
batrick merged commit e883f95 into tentacle Oct 12, 2026
29 of 30 checks passed
@batrick batrick modified the milestones: tentacle, v20.2.5 Oct 12, 2026
@batrick
batrick deleted the oauth2-sso-fixes-tentacle branch October 12, 2026 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants