Project

General

Profile

Actions

Feature #35949

open

Feature #40907: mgr/dashboard: REST API improvements

mgr/dashboard: Add pass-through MON-commands to REST API

Added by Lenz Grimmer over 5 years ago. Updated about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
General - Back-end
Target version:
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Per our discussions during the Dashboard F2F meeting, the possibility to send MON commands via the REST API was raised as a requirement. The existing REST API needs to be extended to support this.


Related issues 1 (1 open0 closed)

Related to Dashboard - Tasks #47066: mgr/restful: Deprecate the "restful" module in favor of the Ceph Dashboard REST APIIn ProgressErnesto Puerta

Actions
Actions #1

Updated by John Spray over 5 years ago

This is a recurring feature request, although it usually seems to come from people who want a particular piece of functionality, but don't want to ask for an actual REST API for it.

Don't forget to put a huge health warning on the docs around this, to note that any passed-through commands may change even if the REST API itself is stable.

Also I guess access to this would be limited to super-privileged user accounts?

Actions #2

Updated by Lenz Grimmer over 5 years ago

John Spray wrote:

This is a recurring feature request, although it usually seems to come from people who want a particular piece of functionality, but don't want to ask for an actual REST API for it.

Indeed, it would be helpful to get more specific feedback on what's actually missing that would require this kind of "low-level" API, but IIRC this is primarily intended to support existing customers with legacy applications that use this feature.

Don't forget to put a huge health warning on the docs around this, to note that any passed-through commands may change even if the REST API itself is stable.

Good point, indeed.

Also I guess access to this would be limited to super-privileged user accounts?

It probably should - maybe with a special security scope in the roles management?

Actions #3

Updated by Lenz Grimmer over 5 years ago

  • Assignee set to Paul Cuzner

@Paul - according to the notes on the Dashboard F2F Etherpad , it was an action item for you to further specify/clarify this. Any guidance / input would be helpful. I assume this is a feature from the deprecated ceph_rest_api.py script, not the "restful" manager module?

Actions #4

Updated by Ernesto Puerta about 4 years ago

  • Parent task set to #40907
Actions #5

Updated by Lenz Grimmer over 3 years ago

There has been ongoing discussion if we really want to have such a thing in an API. It's basically against the RESTful concept and there are other downsides (mostly around security, auth, ...). One idea was instead of fully deprecating the current restful module, to just remove the other API endpoints and only keep the pass-through MON command part.

Actions #6

Updated by Ernesto Puerta over 3 years ago

  • Related to Tasks #47066: mgr/restful: Deprecate the "restful" module in favor of the Ceph Dashboard REST API added
Actions #7

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 146 to General - Back-end
Actions

Also available in: Atom PDF