Enable Full Read-Only Mode for Connection to Read-Only DBs (Such As Production Read-Replicas) in Mathesar #3578
Description
Problem
I am interested in connecting Mathesar to a production read replica for our data analysis needs, but I'm encountering significant barriers due to current application requirements. Primarily, Mathesar's necessity to alter the database structure just to establish a read connection is excessively intrusive. This requirement conflicts with our policies aimed at minimizing changes to the production database to ensure maximum stability and security.
Additionally, the permission level of our reporting user does not allow for the installation of new schemas, a prerequisite for using Mathesar. This limitation prevents me from trialing the tool independently, as I would need team approval for schema creation before I can even begin testing. Without the ability to trial and test these schemas personally, I'm unable to demonstrate their potential value or functionality, which is crucial for advocating for Mathesar's broader adoption within my team.
Together, these issues form a significant barrier to adopting Mathesar in our environment, as the initial setup requirements do not align with our operational and security standards.
Proposed Solution
Implement a full read-only mode in Mathesar that allows it to connect to a production read replica without needing to install or modify any schemas. I am willing to accept a slight performance hit if necessary to enable this functionality.
Additional Context
The ability to operate in a read-only mode is critical for us as it aligns with our database management and security protocols. This feature would allow us to utilize Mathesar for reporting and analysis without altering the underlying database structure or permissions.