S3 Presigned URL Flashcards

1
Q

For what are pre-signed URLs used? What problem do they solve?

A

Provides temporal access to private resources without needing to make public a private bucket or give credentials or an AWS account to unknown users.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Example or UC of presigned URL:

A

Users of applications do not need to have an IAM user, they can get access through the app and get access to read, download or upload objects to private buckets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What information is required to make a request to S3 to generate a presigned URL?

A
  1. Security credentials
  2. Bucket name
  3. Object key
  4. Expiry date and time
  5. Indicate how the object will be accessed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What information is encoded in the presigned URL?

A

The provided data upon creation.

  1. Security credentials
  2. Bucket name
  3. Object key
  4. Expiry date and time
  5. Indicate how the object will be accessed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the process to get a presigned URL? (mention steps)

A
  1. Request to S3 to generate presigned URL
  2. S3 returns the presigned URL
  3. Presigned URL is shared with the unauthenticated user (in some way)
  4. The user can upload or download (PUT or GET) data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What access can a pre-signed URL provide?

A

Access to a bucket or specific objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Do pre-signed URLs make sense when using public buckets?

A

No, it is used normally to provide access to private buckets to unauthenticated resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Can you create a pre-signed URL for an object you do not have access to?

A

Yes, you can still get the pre-signed URL but the object will not allow access because the requestor’s user does not have access to it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Is it recommendable to generate presigned URLs using IAM roles and why?

A

It is not recommended because the role will likely expire before the URL does.
You should always use long term identities to generate URLs, generally IAM users.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly