How to secure access to AWS Elasticsearch from a mobile application

柔情痞子 提交于 2019-12-11 15:40:01

问题


I'm building a mobile app that requires access to an AWS Elasticsearch (ES) cluster and would like to make sure only the app can make queries.

Assuming I'm not going to distribute AWS user credentials with my mobile application, what would be a secure way to allow read access to an AWS Elasticsearch cluster?

Reading this AWS post I gathered that I can setup a reverse proxy to sign my requests to Elasticsearch. If I follow this route, how would I secure access to the EC2 instance port where the proxy is listening to?


回答1:


For mobile applications what you want to set up is Web Identity Federation. This is will give users temporary credentials to access aws resources needed for your mobile application.

http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc.html

Setting up http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc_manual.html

Article from Amazon on Web Identity Federation with Mobile Applications

https://aws.amazon.com/articles/4617974389850313



来源:https://stackoverflow.com/questions/44253143/how-to-secure-access-to-aws-elasticsearch-from-a-mobile-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!