Skip to content

Commit 2bd46b6

Browse files
authored
docs: document enforcing private users (#900)
1 parent 11292a7 commit 2bd46b6

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

_includes/common/security.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The master key, on the other hand, is definitely a security mechanism. Using the
1414

1515
The overall philosophy is to limit the power of your clients (using client keys), and to perform any sensitive actions requiring the master key in Cloud Code. You'll learn how to best wield this power in the section titled [Implementing Business Logic in Cloud Code](#implementing-business-logic-in-cloud-code).
1616

17-
A final note: It is recommended to setup HTTPS and SSL in your server, to avoid man-in-the-middle attacks, but Parse works fine as well with non-HTTPS connections.
17+
A final note: It is recommended to setup HTTPS and SSL in your server, to avoid man-in-the-middle attacks, but Parse works fine as well with non-HTTPS connections.
1818

1919
## Class-Level Permissions
2020

@@ -34,6 +34,12 @@ Almost every class that you create should have these permissions tweaked to some
3434

3535
As a start, you can configure your application so that clients cannot create new classes on Parse. This is done by setting the key `allowClientClassCreation` to `false` in your ParseServer configuration. See the project Readme for an overview of [Configuring your ParseServer](https://github.com/parse-community/parse-server#configuration). Once restricted, classes may only be created from the Data Browser or with a the `masterKey`. This will prevent attackers from filling your database with unlimited, arbitrary new classes.
3636

37+
### Enforcing Private Users
38+
39+
*Requires Parse Server 5.0.0+*
40+
41+
By default, Parse Server creates Users with public read access. This allows other users, and un-authenticated users, to read data such as `email`. When moving to production, set the key `enforcePrivateUsers` to `true`, as this will remove the public read access to new users.
42+
3743
### Configuring Class-Level Permissions
3844

3945
Parse lets you specify what operations are allowed per class. This lets you restrict the ways in which clients can access or modify your classes. To change these settings, go to the Data Browser, select a class, and click the "Security" button.

parse-server.md

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ sections:
1616
- "parse-server/push-notifications.md"
1717
- "parse-server/push-notifications-clients.md"
1818
- "parse-server/class-level-permissions.md"
19+
- "common/security.md"
20+
- "common/performance.md"
21+
- "common/errors.md"
1922
- "parse-server/file-adapters.md"
2023
- "parse-server/cache-adapters.md"
2124
- "parse-server/live-query.md"

0 commit comments

Comments
 (0)