🔐 Security Best Practice
Always create a dedicated read-only user for Data Stoat. This ensures your data stays secure while giving Data Stoat only the access it needs to analyze your database.
Connect to Your PostgreSQL Database
Connect to your PostgreSQL instance as a superuser (usually postgres
) or a user with sufficient privileges to create users and grant permissions.
Note: Replace your-host
and your-database
with your actual database connection details.
Create the Data Stoat User
Create a new user specifically for Data Stoat with a secure password:
Important: Replace your_secure_password_here
with a strong, unique password. We recommend using a password manager to generate a secure password.
Grant Schema Access
Give the user access to connect to the database and use the schema:
Grant Table Permissions
Grant read-only access to all current and future tables in the schema:
Why the second command? The ALTER DEFAULT PRIVILEGES
ensures that any new tables created in the future will automatically be accessible to Data Stoat.
Test the Connection
Verify that the new user can connect and access your data:
Connect to Data Stoat
Now you can safely connect your database to Data Stoat using the read-only credentials. Data Stoat will be able to analyze your data structure and content without any risk to your database.
Questions? If you run into any issues during setup, please contact our support team at hello@datastoat.com