Skip to content

Allow custom domain to be used with public S3 bucket - #2597

Merged
ObadaS merged 1 commit into
developfrom
cjh1_s3-custom-domain
Oct 20, 2026
Merged

ObadaS merged 1 commit into
developfrom
cjh1_s3-custom-domain

Conversation

@ObadaS

@ObadaS ObadaS commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

Original PR : #2213

This allows a S3 bucket to be put behind CloudFront which is considered best practice.

@ihsaan-ullah

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • CircleCi tests are passing
  • Ready to merge

@ObadaS
ObadaS marked this pull request as ready for review October 1, 2026 09:28
@ihsaan-ullah

Copy link
Copy Markdown
Collaborator

I see my name on this PR but I don't know how to test it

@ObadaS

ObadaS commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator Author

Hello @cjh1 I have merged this PR into our repo, but we are not sure how we can test it without having CloudFront.
The automated tests are passing so at least that's a good start.

Also, why do we need these additions, can't you add the CloudFront URL as the AWS_S3_ENDPOINT_URL which already exists ? Or do you need both ?

@cjh1

cjh1 commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Hello @cjh1 I have merged this PR into our repo, but we are not sure how we can test it without having CloudFront. The automated tests are passing so at least that's a good start.

You would need CloudFront to test this I am afraid.

Also, why do we need these additions, can't you add the CloudFront URL as the AWS_S3_ENDPOINT_URL which already exists ? Or do you need both ?

CloudFront is a CDN, it can be used to serve the contents of S3 buckets. In general its not best practice to make a S3 bucket publicly visible without the protection of a CDN. So this change adds that support. The S3 URL and the CloudFront URL are different. So yes we need both.

This allows a S3 bucket to be put behind CloudFront which
is considered best practice.
@ObadaS
ObadaS force-pushed the cjh1_s3-custom-domain branch from 96836ec to 40fb385 Compare October 20, 2026 12:40
@ObadaS
ObadaS merged commit 43bd1c1 into develop Oct 20, 2026
4 checks passed
@ObadaS
ObadaS deleted the cjh1_s3-custom-domain branch October 20, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants