marknca
1 min readJul 27, 2017

--

Henry,

Ideally you’ve already authenticated your users and can simply leverage that existing authenticated identity to secure access to the files. That would let you ensure that only the authenticated user has access to the object(s) (your video files).

For temporary access to an object, S3 natively provides a method to create a temporary URL. The process per request is pretty simple:

  1. An authorized user/object with access to the video file (like your application) uses the SDK to create a temporary URL
  2. That URL encodes all the required information for access and has a set expiry date
  3. You pass the temporary URL to the user

The risk here is that anyone with the temporary URL can access the file for the duration that URL is valid. Generally the risk is minimal but you’ll have to evaluate against your user case.

Hope that helps!

Mark

--

--

marknca
marknca

Written by marknca

☁️🔬 Cloud Strategist @Lacework. @awscloud Community Hero. Builder. Working to make security easier for everyone. Opinionated but always looking to learn

Responses (1)