Project

General

Profile

Feature #35949

Feature #40907: mgr/dashboard: REST API improvements

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

Added by Lenz Grimmer about 4 years ago. Updated over 1 year 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

Related to Dashboard - Tasks #47066: mgr/restful: Deprecate the "restful" module in favor of the Ceph Dashboard REST API In Progress

History

#1 Updated by John Spray about 4 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?

#2 Updated by Lenz Grimmer about 4 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?

#3 Updated by Lenz Grimmer about 4 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?

#4 Updated by Ernesto Puerta over 2 years ago

  • Parent task set to #40907

#5 Updated by Lenz Grimmer about 2 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.

#6 Updated by Ernesto Puerta almost 2 years ago

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

#7 Updated by Ernesto Puerta over 1 year ago

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

Also available in: Atom PDF