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

Disable Client Class Creation

Open davidruisinger opened this issue 10 years ago • 9 comments

I'm aware that this it not a big security risk but I just don't want my DB to get spammed with data that I don't need.

davidruisinger avatar Jan 29 '16 16:01 davidruisinger

:+1: Was thinking of posting the same thing

davidaik avatar Jan 29 '16 16:01 davidaik

+1

NorthMcCormick avatar Jan 29 '16 16:01 NorthMcCormick

+1

andrewoons avatar Jan 29 '16 17:01 andrewoons

There should be a setting to control either of this or https://github.com/ParsePlatform/parse-server/issues/26.

5amfung avatar Jan 29 '16 18:01 5amfung

Agreed, we should add this option.

gfosco avatar Jan 29 '16 18:01 gfosco

Less simple than expected. The Schema class is what creates a new collection, but it isn't passed any of the configuration to hold an option like this. Still working on a method for this.

gfosco avatar Jan 31 '16 00:01 gfosco

+1

Morbix avatar Jan 31 '16 00:01 Morbix

Have worked on this issue, proposed solution will freeze schema (classes and fields) unless NODE_ENV === 'development' or masterkey is used. Have submited a PR ... :)

lucianmat avatar Jan 31 '16 13:01 lucianmat

Added in #684

drew-gross avatar Mar 05 '16 02:03 drew-gross