Fix cli mode of edit-db-privs #71

Open
opened 2024-08-19 02:33:03 +02:00 by oysteikt · 0 comments
Owner

In the current implementation of edit-db-privs with the -p flag, the user would need to provide all privileges for all users on all databases. The intended effect is to modify the privileges which have matching users and databases, as well as add any new db-user pairs, but the resulting diff would remove any existing privileges that the user forgot to include in their -p flags.

However, if we make it so that the -p flag only modifies/adds new stuff, it would make it impossible to remove privileges. Maybe we should think of something new?

In the current implementation of `edit-db-privs` with the `-p` flag, the user would need to provide all privileges for all users on all databases. The intended effect is to modify the privileges which have matching users and databases, as well as add any new db-user pairs, but the resulting diff would remove any existing privileges that the user forgot to include in their `-p` flags. However, if we make it so that the `-p` flag only modifies/adds new stuff, it would make it impossible to remove privileges. Maybe we should think of something new?
oysteikt added the
bug
question
labels 2024-08-19 02:33:03 +02:00
Sign in to join this conversation.
No description provided.