OpenSearch-Dashboards icon indicating copy to clipboard operation
OpenSearch-Dashboards copied to clipboard

[DataSource] Restrict data source creation/update/delete when editMode is read_only or admin_only

Open yubonluo opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

Adding an optional setting that controls the permissions of data source to create, update and delete. data_source.editMode: "read_only|admin_only|none" "read_only": The data source is readonly for all users including OSD admin. "admin_only": The data source can only be edited by OSD admin((https://github.com/opensearch-project/OpenSearch-Dashboards/issues/6389) ). "none": The data source can be edited by all users. Default to "none".

Describe the solution you'd like

Before editing a data source, data source permission client wrapper will verify the data source edit mode.

Describe alternatives you've considered

Additional context

https://github.com/opensearch-project/OpenSearch-Dashboards/issues/4944

yubonluo avatar Jun 03 '24 09:06 yubonluo

Hi @yubonluo, thanks for opening the issue! Are we targeting this in 2.16?

BionIT avatar Jun 03 '24 16:06 BionIT

Hi @yubonluo, thanks for opening the issue! Are we targeting this in 2.16?

Hi @BionIT , The PR regarding this issue will be submitted in the next two days, with releasing on 2.15.

yubonluo avatar Jun 03 '24 17:06 yubonluo