I have a server-side application that uses CloudKit Web Services to make changes to my CloudKit container. I generated a server-to-server key for this.
I want my server-side script to be able to update any record of type Person
in my Public Database, but I'm getting an error:
[reason] => WRITE operation not permitted
[serverErrorCode] => ACCESS_DENIED
The options for the security roles for my Person
record are as follows:
If I check Write then it works and I don't get the error anymore.
But I'm concerned that I just gave all users of my app access to make changes to any record in that table. Is there a way to only allow write access to my application and its server-to-server key?