GNOME Bugzilla – Bug 82679
GRANT/REVOKE API
Last modified: 2018-09-21 13:38:04 UTC
We need a API for clients to be able to GRANT/REVOKE rights on DB objects. This API should be flexible enough for managing as many scenarios as possible. So far, here are the thoughts: > > > > > - we need to allow the application to know what options the provider > > > accepts to adapt the GUI to what is available only > > > > > ok, that is perfectly doable. What are the options you're thinking > > about? > > Several options: > - types of rights (read, insert, update, or read, write, etc); > - if rights are managed at the level of a database, a table or some > columns of a table, sequence, index, vues... > - the kind of rights for a user (create DBs, create other users, change > passwords of other users, etc). > - maybe other ones. >
Grant/Revoke operations should be possible using the GdaServerOperation object. Just add a declaration for that type of operation, for each operation, create the spec file specifying all the input required for the operation, and add the code to the providers. An analysis work must be performed to define type of operations correctly to have the same maening across providers, for example I think there should be separated operations to grant privileges on tables, databases, functions, languages, schemas, tablespaces, etc.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/libgda/issues/36.