parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Parse node.js code security

Open stoufa88 opened this issue 10 years ago • 3 comments

I initialized parse with a MasterKey as in https://parse.com/docs/js/api/classes/Parse.html

Parse.initialize("XXX", "", "XXX");

but still getting permission denied for this action. This should bypass all the security rules on the server (The one I used is Class Level permission: Read Only)

Require with var Parse = require('parse/node')

Similar issue: https://github.com/ParsePlatform/parse-server/issues/1822

stoufa88 avatar May 19 '16 08:05 stoufa88

Is this the same issue as #1822 or a new issue? If it's the same then probably best to close this one. If it's a new issue then please provide more details. Please see #1271 for an ideal issue report.

steven-supersolid avatar May 19 '16 14:05 steven-supersolid

You still need to pass useMasterKey: true in your queries if you want to use the SDK with the master key.

drew-gross avatar May 19 '16 17:05 drew-gross

Clear, thank you. I thought this goes in Parse.initialiaze. More details can be found here: https://parse.com/docs/js/api/classes/Parse.Query.html

stoufa88 avatar May 20 '16 08:05 stoufa88