Skip to content

mgr/dashboard: add oauth2 sso prerequisites and fixes missing claims and expired token - #68806

Merged
afreen23 merged 3 commits into
ceph:mainfrom
rhcs-dashboard:db-sso-oauth2-fixes
May 12, 2026
Merged

afreen23 merged 3 commits into
ceph:mainfrom
rhcs-dashboard:db-sso-oauth2-fixes

Conversation

@Pegonzal

@Pegonzal Pegonzal commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

Exception raised on expired token:

image

Prerequisite check before enabling dashboard's oauth2 sso

[ceph: root@ceph-node-00 /]# ceph dashboard sso enable oauth2
Error EPERM: OAuth2 SSO prerequisite not met: oauth2-proxy service must be deployed and running.
[ceph: root@ceph-node-00 /]# ceph dashboard sso enable oauth2
SSO is "enabled" with "OAuth2" protocol.

Full flow with changes

screen-capture.15.webm

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

This also needs an entry in "Pending Release Notes"

@afreen23
afreen23 requested a review from rkachach May 8, 2026 11:05
@afreen23

afreen23 commented May 8, 2026

Copy link
Copy Markdown
Contributor

Comment thread src/pybind/mgr/dashboard/module.py Resolved
@rkachach

Copy link
Copy Markdown
Contributor

Besides the comment related to documenting the behavior, cephadm changes LGTM

@Pegonzal
Pegonzal force-pushed the db-sso-oauth2-fixes branch from 5b566a1 to 217ddfb Compare May 11, 2026 10:20
@Pegonzal
Pegonzal requested a review from a team as a code owner May 11, 2026 10:20

@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.

@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard May 11, 2026
@Pegonzal
Pegonzal force-pushed the db-sso-oauth2-fixes branch 2 times, most recently from 87c888e to feb9af4 Compare May 11, 2026 13:42
@Pegonzal
Pegonzal force-pushed the db-sso-oauth2-fixes branch from feb9af4 to 15ee3b8 Compare May 11, 2026 14:47
@Pegonzal
Pegonzal force-pushed the db-sso-oauth2-fixes branch from 15ee3b8 to 062ec6f Compare May 11, 2026 15:54
@Pegonzal

Copy link
Copy Markdown
Contributor Author

@Pegonzal

Copy link
Copy Markdown
Contributor Author

jenkins test windows

@afreen23
afreen23 merged commit ffc7611 into ceph:main May 12, 2026
6 checks passed
@afreen23
afreen23 deleted the db-sso-oauth2-fixes branch May 12, 2026 06:36
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard May 12, 2026
@github-actions

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I found one or more Fixes: tags in the commit messages in

git log ffc7611d81295a11ba02d135464d5dc4a04e2ff8^..ffc7611d81295a11ba02d135464d5dc4a04e2ff8

The referenced tickets are:

Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them.

Update Log: https://github.com/ceph/ceph/actions/runs/25717863351

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.

3 participants