-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
How to disable schema modifications #3228
Comments
@notramo You can create a new 'Standard' Mathesar user from the Users administration page, and provide 'Editor' access to the schemas where you'd like disallow schema modifications for the new user. Editor access allows editing the rows in a table (and all DML operations), and disables schema modifications (DDL operations). Here are the steps:
You can find more documentation here. Let me know if this satisfies your requirement. |
Thanks for the detailed explanation. I will take a look. |
These are stored only in the Mathesar internal metadata. They are not Postgres roles. Improving our permission system and having better integration with Postgres roles, is on our roadmap. If you have specific usecases or requirements, please let us know. It'll help us with our product direction. Thanks! |
In order to improve the security of the database, I would create 2 Postgres roles: 1 with schema modification capabilities for Lucky, and the other without schema permissions for Mathesar. This way, only the Editor and lower permissions would make sense, as no matter how many permissions are given to the Mathesar internal metadata accounts, the Postgres role would not allow Mathesar to make any schema modifications. Is it possible currently? |
Yes, it's possible, with some manual steps.
If you need further help with this (including calls with our core team), please let us know. |
Hey @notramo, just checking-in to see if your requirements are met. Did the steps I mentioned above work for you, and do you have further questions? |
I haven't tried this long guide yet. |
I want to use Mathesar for browsing the database of a Lucky app. The built-in (Avram) ORM migration feature is used for managing the schema, and schema modifications from Mathesar can cause crashes, as the web server expects a different schema.
The text was updated successfully, but these errors were encountered: