Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mgr/dashboard: Add DHCHAP controller key to NVME host commands#67569

Merged
gbregman merged 1 commit intoceph:mainfrom
gbregman:main
Mar 2, 2026
Merged

mgr/dashboard: Add DHCHAP controller key to NVME host commands#67569
gbregman merged 1 commit intoceph:mainfrom
gbregman:main

Conversation

@gbregman
Copy link
Contributor

mgr/dashboard: Add DHCHAP controller key to NVME host commands.

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

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
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for DHCHAP (Diffie-Hellman Challenge Handshake Authentication Protocol) controller keys to NVMeoF host commands in the Ceph dashboard. DHCHAP provides bidirectional authentication for NVMe over Fabrics connections, and controller keys enable the subsystem (controller) to authenticate itself to the host, complementing the existing host-to-controller authentication.

Changes:

  • Added dhchap_controller_key parameter to the host creation endpoint, allowing controller keys to be set when adding hosts to NVMeoF subsystems
  • Implemented two new API endpoints for managing controller keys: change_controller_key and del_controller_key
  • Extended data models to include dhchap_controller_origin field in both Connection and Host objects, with normalization logic to format enum values for display
  • Updated OpenAPI specification with three new endpoints and additional property definitions

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/pybind/mgr/dashboard/openapi.yaml Added dhchap_controller_key to POST /host endpoint schema, plus three new PUT endpoints for controller key management (change_controller_key, del_controller_key, del_key)
src/pybind/mgr/dashboard/model/nvmeof.py Added nqn field to Connection model and dhchap_controller_origin field to both Connection and Host models to support controller key tracking
src/pybind/mgr/dashboard/controllers/nvmeof.py Implemented new controller key management endpoints, added helper functions for enum key normalization, and updated existing endpoints to handle controller keys

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@github-project-automation github-project-automation bot moved this from New to Reviewer approved in Ceph-Dashboard Mar 2, 2026
@gbregman gbregman merged commit 279629d into ceph:main Mar 2, 2026
21 of 23 checks passed
@github-project-automation github-project-automation bot moved this from Reviewer approved to Done in Ceph-Dashboard Mar 2, 2026
@github-actions
Copy link

github-actions bot commented Mar 2, 2026

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

I have resolved the following tracker ticket due to the merge of this PR:

No backports are pending for the ticket. If this is incorrect, please update the tracker
ticket and reset to Pending Backport state.

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

@nizamial09
Copy link
Member

@gbregman is this something we can backport to tentacle? if so, shall we have a backport PR as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants