简体   繁体   中英

How can I validate data uploaded directly to S3?

I have an iPhone application that uploads images directly to S3. Then it hits an endpoint on my web server and creates a new post with some metadata, along with the S3 URL for the uploaded image. All of this occurs over SSL, but what is stopping someone from reverse engineering the endpoint for creating posts and supplying a bogus URL?

No, it is not possible to really ensure that only your app can contact your server, but you can provide some kind of signature to your app, which is posted to your server via HTTPS before the real communication takes place.

Taking a look at API authentication in general is a good idea I think. This looks like a goot start: Principles for Standardized REST Authentication

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM