Skip to content

Commit 92d4c43

Browse files
authored
docs: Describe Cloud DB users as database users, not superusers (#860)
1 parent 907ee34 commit 92d4c43

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎cloud_docs/concepts/database.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ You can connect to the managed database from your machine, a GUI client, or `psq
5353
The steps:
5454

5555
1. Run `serverpod cloud db connection` to print the host, port, and database name.
56-
2. Run `serverpod cloud db user create <username>` to create a superuser. The password is shown **once**, so save it.
56+
2. Run `serverpod cloud db user create <username>` to create a database user. It can read and write data, but it can't create or change tables. The password is shown **once**, so save it.
5757
3. Connect from your client with the host, port, database, your username, and the saved password.
5858

5959
Both commands need to know which project you're working with. From a project directory that's been linked (any project created with `serverpod cloud launch` is linked automatically), the project ID is picked up from `scloud.yaml`. From anywhere else, pass `-p your-project-id`.
@@ -87,7 +87,7 @@ The managed database is built so you don't have to think about credentials in yo
8787

8888
- **TLS is required for all connections.** Cloud sets `SERVERPOD_DATABASE_REQUIRE_SSL` to `true` for your server, and the same applies to direct connections from `psql` or a GUI client.
8989
- **The server's password is managed by the platform.** It's never written into your repo and never shown to you. Your server reads it from the injected environment at runtime.
90-
- **Direct access uses separate superusers that you create.** The server's user and the users you create with `serverpod cloud db user create` are distinct, so revoking or rotating a direct-access password does not affect the server.
90+
- **Direct access uses separate database users that you create.** The server connects as its own user, not as one you create with `serverpod cloud db user create`. Revoking or rotating a direct-access password doesn't affect the server.
9191

9292
## Performance
9393

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# scloud db
22

3-
`scloud db` manages your project's database directly: print connection details, create and reset superusers for `psql` or GUI clients, and wipe the database during development. These operations are independent of how your server connects (the server's credentials are injected by Cloud separately).
3+
`scloud db` manages your project's database directly: print connection details, create and reset database users for `psql` or GUI clients, and wipe the database during development. These operations are independent of how your server connects (the server's credentials are injected by Cloud separately).
44

55
See [Database](/cloud/concepts/database) for the model, common operations, and security notes around direct access.

0 commit comments

Comments
 (0)