Support passwordless Postgres database connections #4061
Labels
needs: product approval
It's not yet clear that this issue will actually improve Mathesar from a user's perspective
type: enhancement
New feature or request
work: backend
Related to Python, Django, and simple SQL
work: frontend
Related to frontend code in the mathesar_ui directory
Milestone
Problem
Perhaps bafflingly, there are valid use cases for allowing users to connect to a database without a password set for the user / login role. In terms of Mathesar's UI, this means allowing the following password field to be blank and the form to be submitted:
Proposed solution
Update the frontend form to make password an "optional" field:
mathesar/mathesar_ui/src/systems/databases/create-database/ConnectExistingDatabase.svelte
Line 32 in f8647ae
Then, ensure that the resulting API calls to connect the database and save the connection also support a "blank" password, represented as an empty string "" or whatever makes the most sense for the code.
Additional context
I think this is important for a few reasons:
postgres://postgres@{unique-hash-subdomain}.browser.db.build/postgres?sslmode=require
) and Mathesar is unable to connect. This tool alone is a quite nice one to show off Mathesar's capabilities to folks without database experience, and it's a shame it doesn't work.The text was updated successfully, but these errors were encountered: