-
Notifications
You must be signed in to change notification settings - Fork 3
feat: Make S3 endpoint domain configurable #282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: Make S3 endpoint domain configurable #282
Conversation
Hi @tworcester thanks for your contribution. After taking a look at this i think we'll probably want to take a slightly different approach that is more configurable and still maintains backwards compatibility. I'm thinking it will look something like:
The You're welcome to take a stab at this if you like, otherwise we'll try to prioritize this for the next release after the update to 17.9.2 that is currently in progress. |
04f0f04
to
fd01ac0
Compare
Took a crack at it! Let me know what you think. @zachariahmiller |
@tworcester At first glance i think this looks good, but I'm also realizing now it might not be enough for your use case without additional changes. As it is today, for AWS we do not have to specify the endpoint in any of the sections besides backups. However, for your scenario where the s3 endpoint is mapped to a different DNS entry i don't think it will "just work" as it does right now for the connection and registry sections. I'm thinking that If that is in fact the case it should be pretty easy to adapt this PR to support that as well. Do you have an environment provisioned or easily provisioned with the alternate DNS scenario where you could test this easily? I do not, so it might be a little bit more involved for us to validate exactly what config will work. Would the setup happen to be or be analogous to the endpoint specific DNS setup when using privatelink and the vpc interface endpoints for private s3 access? If so i can inquire with our infra team on the feasibility on getting an account provisioned with a similar setup, so i can do some validation. |
Ah, good point! I will verify the changes in my environment and update the PR tomorrow. Yes, the Private link and custom VPC Endpoints is a viable test case for what I am trying to achieve! |
@tworcester Just following up to see if you had the opportunity to test this in your environment. No rush on our end, just wanted to make sure to reach out and see how it was going. |
Apologies for the slow follow up, here is explicitly what I have deployed and working:
|
No worries whatsoever! I'm assuming the ###ZARF_VAR_CLUSTER_NAME### is specific to your env and the existing way the buckets are named would still work. Have you actually tested the registry functions? I would think an endpoint would be required there too and I thought the upstream chart had been updated so registry deployment failed when it couldnt make the s3 connection, but if you could verify you can push something to the container registry i would feel much more confident in this working config. If so, we can look at updating the secret template to allow for this config setup. |
Confirmed, the above works in three separate deployments right now and I have verified that |
Description
Make S3 Endpoint configurable. Also add defensive pattern check to make sure no extra period is added at the start of the string.
...
Related Issue
Fixes #280
Type of change
Checklist before merging