Upsun allows you to restrict access to a service. In this tutorial, learn how to grant your Data teamDocumentation Index
Fetch the complete documentation index at: https://developer.upsun.com/llms.txt
Use this file to discover all available pages before exploring further.
read-only access to your production database.
Before you start
You need:- A project with a database service
- A
vieweruser on your project
1. Add a read-only endpoint to your database service
Edit your.upsun/config.yaml file and add the following endpoints:
websitewithadminaccess to themaindatabasereportingwith read-onlyroaccess to themaindatabase
2. Grant your app access to the new endpoints
Edit your app configuration and add new relationships to your new endpoints:3. Create a worker with access to the read-only endpoint
Edit your app configuration to add a new worker which:- Does nothing (
sleep infinity) - Can access the read-only
reportingendpoint - Allows SSH access to
viewer
viewer users can SSH in to the worker application,
and connect to your database with read-only permissions.