I have setup a parse server accepting streams from Moralis.
I have cloned the parse server migration files and am adding stream data to the parse server database using the streamsSync middleware from @moralisweb3/parse-server
I would like to know how this can be secured because as I understand it its writing to the database as a public user. I need to lock this down so that it can write only if it has a master key. Otherwise anyone can simply write inputs to the database which is very unsecure.
So my question is, can someone please let me know how I can add a parse server master key as an input to the streamsSync middleware?
Thank you