Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support read-only tree nodes or some kind of access control #196

Open
dumbbell opened this issue Apr 7, 2023 · 0 comments
Open

Support read-only tree nodes or some kind of access control #196

dumbbell opened this issue Apr 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@dumbbell
Copy link
Member

dumbbell commented Apr 7, 2023

Why

In khepri_mnesia_migration, we use the ability to switch Mnesia tables to read-only to prevent further updates at the end of a copy from Mnesia to Khepri.

It would be nice to have a similar mechanism to be able to implement the opposite direction: a copy from Khepri to Mnesia.

How

  • It could be a store-wide flag to switch the entire store to read-only.
  • We could have per-path-pattern flags to provide a more fine-grained solution.
  • Another option is to accept a stored procedure to programmatically decide if an update (or any operation in fact) is allowed or not.
@dumbbell dumbbell added the enhancement New feature or request label Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant