# Enforce SSL with S3 bucket access

**URL:** <https://awshq.com/t/enforce-ssl-with-s3-bucket-access/15783>\
**Category:** AWS Storage Discussion\
**Tags:** s3\
**Created:** [November 3, 2022, 4:51pm UTC](https://awshq.com/t/enforce-ssl-with-s3-bucket-access/15783 "2022-11-03T16:51:12Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![tech\_tuna](https://awshq.com/letter_avatar_proxy/v4/letter/t/47e85d/32.png) [@tech\_tuna](https://awshq.com/u/tech_tuna)\
**Post date:** [November 3, 2022, 4:51pm UTC](https://awshq.com/t/enforce-ssl-with-s3-bucket-access/15783/1 "2022-11-03T16:51:12Z")

</div>

I’m kind of surprised and embarrassed to only realize this now but it seems that the only way to require TLS/SSL access to an S3 bucket is with a bucket policy.

Is that correct? Seems like the kind of property that, in 2022, is enabled by default. Happy to be corrected here.

---

<div class="post-metadata">

**Author:** ![im-a-smith](https://awshq.com/letter_avatar_proxy/v4/letter/i/e47774/32.png) [@im-a-smith](https://awshq.com/u/im-a-smith)\
**Post date:** [November 3, 2022, 5:07pm UTC](https://awshq.com/t/enforce-ssl-with-s3-bucket-access/15783/2 "2022-11-03T17:07:24Z")

</div>

It’s truly baffling that it isn’t enabled by default as an option for newly created buckets but requires a policy.

---

<div class="post-metadata">

**Author:** ![tech\_tuna](https://awshq.com/letter_avatar_proxy/v4/letter/t/47e85d/32.png) [@tech\_tuna](https://awshq.com/u/tech_tuna)\
**Post date:** [November 3, 2022, 5:21pm UTC](https://awshq.com/t/enforce-ssl-with-s3-bucket-access/15783/3 "2022-11-03T17:21:39Z")

</div>

> [@im-a-smith](#):
>
> It’s truly baffling that it isn’t enabled by default as an option for newly created buckets but requires a policy.

OK, so you’re confirming my suspicion. . . cause this is a major WTF for me. I should have known this but holy hell, not sure how AWS hasn’t addressed this default by now.

---

<div class="post-metadata">

**Author:** ![im-a-smith](https://awshq.com/letter_avatar_proxy/v4/letter/i/e47774/32.png) [@im-a-smith](https://awshq.com/u/im-a-smith)\
**Post date:** [November 3, 2022, 5:56pm UTC](https://awshq.com/t/enforce-ssl-with-s3-bucket-access/15783/4 "2022-11-03T17:56:34Z")

</div>

You are totally missing the entire point of what was asked.

The point is making it easier to secure your data.

---

<div class="post-metadata">

**Author:** ![maxmanders](https://awshq.com/letter_avatar_proxy/v4/letter/m/a587f6/32.png) [@maxmanders](https://awshq.com/u/maxmanders)\
**Post date:** [November 3, 2022, 7:15pm UTC](https://awshq.com/t/enforce-ssl-with-s3-bucket-access/15783/5 "2022-11-03T19:15:21Z")

</div>

TL;DR direct public HTTP access to S3 objects is a bit of an anti pattern.

Apologies in advance if I’m misunderstanding what you’re trying to achieve.

You could attach an ACM certificate to a CloudFront distribution with an alias domain, with your bucket being an origin, restricted to only being accessible from the distribution. That would let you enforce TLS encryption for accessing S3 objects over HTTP. If you need to access objects via API calls, then the API endpoints are secured with TLS and your API credentials. I _think_ that signed URLs are also protected with TLS.

---

<div class="post-metadata">

**Author:** ![maxmanders](https://awshq.com/letter_avatar_proxy/v4/letter/m/a587f6/32.png) [@maxmanders](https://awshq.com/u/maxmanders)\
**Post date:** [November 3, 2022, 7:16pm UTC](https://awshq.com/t/enforce-ssl-with-s3-bucket-access/15783/6 "2022-11-03T19:16:23Z")

</div>

> [@maxmanders](#):
>
> TL;DR direct public HTTP access to S3 objects is a bit of an anti pattern. Apologies in advance if I’m misunderstanding what you’re trying to achieve. You could attach an ACM certificate to a CloudFront distribution …

Yup, I’m misunderstanding! Nothing to see here!

---

<div class="post-metadata">

**Author:** ![assassinator42](https://awshq.com/letter_avatar_proxy/v4/letter/a/57b2e6/32.png) [@assassinator42](https://awshq.com/u/assassinator42)\
**Post date:** [November 3, 2022, 10:37pm UTC](https://awshq.com/t/enforce-ssl-with-s3-bucket-access/15783/7 "2022-11-03T22:37:41Z")

</div>

> [@maxmanders](#):
>
> TL;DR direct public HTTP access to S3 objects is a bit of an anti pattern. Apologies in advance if I’m misunderstanding what you’re trying to achieve. You could attach an ACM certificate to a CloudFront distribution …

Wait, does S3 accept signed URLs over HTTP?

---

<div class="post-metadata">

**Author:** ![cell-on-a-plane](https://awshq.com/letter_avatar_proxy/v4/letter/c/b487fb/32.png) [@cell-on-a-plane](https://awshq.com/u/cell-on-a-plane)\
**Post date:** [November 4, 2022, 12:40am UTC](https://awshq.com/t/enforce-ssl-with-s3-bucket-access/15783/8 "2022-11-04T00:40:22Z")

</div>

> [@im-a-smith](#):
>
> It’s truly baffling that it isn’t enabled by default as an option for newly created buckets but requires a policy.

Legacy reasons probably

---

<div class="post-metadata">

**Author:** ![fonam](https://awshq.com/letter_avatar_proxy/v4/letter/f/d6d6ee/32.png) [@fonam](https://awshq.com/u/fonam)\
**Post date:** [November 4, 2022, 4:25am UTC](https://awshq.com/t/enforce-ssl-with-s3-bucket-access/15783/9 "2022-11-04T04:25:42Z")

</div>

Yes this is correct  
I also recommend enforcing 1.2 while you are at it

[https://aws.amazon.com/premiumsupport/knowledge-center/s3-enforce-modern-tls/](https://aws.amazon.com/premiumsupport/knowledge-center/s3-enforce-modern-tls/)

The statement enforces TLS requirement in general

---

<div class="post-metadata">

**Author:** ![tech\_tuna](https://awshq.com/letter_avatar_proxy/v4/letter/t/47e85d/32.png) [@tech\_tuna](https://awshq.com/u/tech_tuna)\
**Post date:** [November 4, 2022, 1:16pm UTC](https://awshq.com/t/enforce-ssl-with-s3-bucket-access/15783/10 "2022-11-04T13:16:30Z")

</div>

> [@assassinator42](#):
>
> Wait, does S3 accept signed URLs over HTTP?

Oh jeez, if it does, then that is crazy. I don’t think it does but I haven’t checked.
