I've got an AWS Elasticsearch server that I'm using to power search in my iOS app. I'm using Alamofire to make search requests from the iOS app, and I've got a Node.js server to manage the relationship between the Elasticsearch index and my backend database and keep the index updated whenever my backend gets new data.
How can I restrict the access of the iOS clients to read-only, but also have read/write access for my Node.js server?