Skip to content

added section about master key config #667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
10 changes: 10 additions & 0 deletions _includes/cloudcode/cloud-code-advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -569,3 +569,13 @@ Here's an example of the JSON data that would be sent in the request to this web
```

After setting up your webhook in the Dashboard UI, you'll be acurately decrementing comment counts!

# Config
Parse Config offers a convenient way to configure parameters in Cloud Code.

```javascript
const config = await Parse.Config.get({useMasterKey: true});
const privateParam = config.get("privateParam");
```

By default, Parse Config parameters can be publicly read which may be undesired if the parameter contains sensitive information that should not be exposed to clients. A parameter can be made readable only with the master key by setting the `Master Key Only` property via the Parse Dashboard to `true`.