Skip to content

tentacle: mgr/dashboard: set MOTD fails on FIPS enabled systems - #70374

Merged
batrick merged 1 commit into
ceph:tentaclefrom
aaSharma14:wip-78461-tentacle
Aug 21, 2026
Merged

batrick merged 1 commit into
ceph:tentaclefrom
aaSharma14:wip-78461-tentacle

Conversation

@aaSharma14

Copy link
Copy Markdown
Contributor

Root cause: On FIPS-compliant systems, the OpenSSL provider rejects hashlib.md5() calls that lack the usedforsecurity=False flag, because MD5 is not an approved algorithm for security-sensitive use. This causes the MOTD set command — and the /api/motd create endpoint — to raise a ValueError and crash whenever a new MOTD is saved.

Fix: Pass usedforsecurity=False to hashlib.md5(). This tells the FIPS provider that MD5 is being used only as a non-cryptographic checksum (to detect whether a user has already dismissed a specific MOTD message), which is a legitimate use-case that FIPS allows.

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

Signed-off-by: Aashish Sharma <[email protected]>
(cherry picked from commit 7927cf5)
@aaSharma14
aaSharma14 requested a review from a team as a code owner July 21, 2026 09:51
@aaSharma14 aaSharma14 added this to the tentacle milestone Jul 21, 2026
@github-actions github-actions Bot added pybind releng-audit-pass Release engineering: passed backport verification audit. labels Jul 21, 2026
@yuriw

yuriw commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri16-testing-20260729.212606-tentacle.

@yuriw

yuriw commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

@aaSharma14 this PR is part of the wip-yuri16-testing integration batch and still needs review approval before it can be merged. Could you request a review or ping a reviewer? Thanks!

@afreen23 afreen23 closed this Jul 30, 2026
@github-project-automation github-project-automation Bot moved this from New to Done in Ceph-Dashboard Jul 30, 2026
@afreen23 afreen23 reopened this Jul 30, 2026
@github-project-automation github-project-automation Bot moved this from Done to New in Ceph-Dashboard Jul 30, 2026
@github-actions github-actions Bot added releng-audit-pass Release engineering: passed backport verification audit. and removed releng-audit-pass Release engineering: passed backport verification audit. labels Jul 30, 2026
@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Aug 6, 2026
@yuriw yuriw added needs-merge QA-approved, awaiting merge window wip-yuri3-testing and removed wip-yuri16-testing labels Aug 15, 2026
@yuriw

yuriw commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri3-testing-20260819.151734-tentacle.

@batrick batrick modified the milestones: tentacle, v20.2.5 Aug 21, 2026
@batrick
batrick merged commit 00bf6fe into ceph:tentacle Aug 21, 2026
25 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dashboard needs-merge QA-approved, awaiting merge window needs-qa pybind releng-audit-pass Release engineering: passed backport verification audit. wip-yuri3-testing

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants