apache / gravitino

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
https://gravitino.apache.org
Apache License 2.0
1.1k stars 345 forks source link

[FEATURE] Support read-only mode for catalog #5231

Open mchades opened 1 month ago

mchades commented 1 month ago

Describe the feature

Support read-only mode for catalog, the catalog in read-only mode can only perform read operations.

All read operations regarding the catalog itself and its sub-objects will be rejected until the read-only mode is lifted.

Motivation

In data management, Read-Only Mode is a common security measure used to protect data from accidental or unauthorized modifications. It can be applied in scenarios such as data migration, system maintenance, and so on.

Describe the solution

Add an catalog API to support set read-only mode and show the status in the catalog properties

Additional context

No response

mchades commented 1 month ago

we also need to handle read-only mode on query engine side (like Trino and Spark)