Skip to content

mgr/dashboard: fix-user-creation-validation - #69217

Merged
afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:wip-fix-user-creation-validation
Jul 6, 2026
Merged

afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:wip-fix-user-creation-validation

Conversation

@sagargopale2233

@sagargopale2233 sagargopale2233 commented Jun 1, 2026 •

Copy link
Copy Markdown

mgr/dashboard: fix-user-creation-validation

Fixes: https://tracker.ceph.com/issues/77024

Signed-off-by: Sagar Gopale [email protected]

PR Description : Enforce strict required validation for Password, Confirm Password, and Roles fields during new user creation.
Keep password fields dynamically optional when editing an existing user to preserve seamless user profile updates

Screencast :

Screencast.From.2026-06-01.18-03-09.mp4

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.

@sagargopale2233

Copy link
Copy Markdown
Author

jenkins test windows

@Pegonzal Pegonzal 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 Review in progress in Ceph-Dashboard Jun 2, 2026
@sagargopale2233
sagargopale2233 force-pushed the wip-fix-user-creation-validation branch from e23193c to d039ff3 Compare June 3, 2026 05:48
@sagargopale2233
sagargopale2233 requested a review from Pegonzal June 3, 2026 05:50

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

LGTM, just a couple of nits and code cleanups.

Also I don't think this is really a fix as I believe this was always the behaviour, but I do agree it makes sense to make this fields required.

@github-project-automation github-project-automation Bot moved this from Review in progress to Reviewer approved in Ceph-Dashboard Jun 3, 2026
@sagargopale2233
sagargopale2233 force-pushed the wip-fix-user-creation-validation branch 2 times, most recently from 114a63f to cd34d0c Compare June 5, 2026 05:51

@nizamial09 nizamial09 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

the reason we didn't require these fields was for the users created for sso. SSO users doesn't really need password at all so for them we create a user with empty password which is the reason we were supporting it. Do you know if that behavior changed with oAuth2 and if so is that why we are making this change?

@sagargopale2233
sagargopale2233 force-pushed the wip-fix-user-creation-validation branch from cd34d0c to d654470 Compare June 22, 2026 11:10
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Review in progress in Ceph-Dashboard Jun 22, 2026
@sagargopale2233
sagargopale2233 requested a review from afreen23 June 22, 2026 13:51
@sagargopale2233
sagargopale2233 force-pushed the wip-fix-user-creation-validation branch from d654470 to 70a122f Compare June 22, 2026 14:20
@sagargopale2233

Copy link
Copy Markdown
Author

jenkins test windows

@sagargopale2233

Copy link
Copy Markdown
Author

jenkins test windows

@sagargopale2233

Copy link
Copy Markdown
Author

jenkins test dashboard

@afreen23

afreen23 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

jenkins test api

@afreen23

afreen23 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

jenkins test dashboard cephadm

2 similar comments
@sagargopale2233

Copy link
Copy Markdown
Author

jenkins test dashboard cephadm

@sagargopale2233

Copy link
Copy Markdown
Author

jenkins test dashboard cephadm

@github-project-automation github-project-automation Bot moved this from Review in progress to Reviewer approved in Ceph-Dashboard Jul 6, 2026
@afreen23
afreen23 merged commit e3a65dc into ceph:main Jul 6, 2026
6 checks passed
@afreen23
afreen23 deleted the wip-fix-user-creation-validation branch July 6, 2026 12:29
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Jul 6, 2026
@github-actions

github-actions Bot commented Jul 6, 2026

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

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/28791569912

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.

4 participants