Skip to content
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

[kots] S3 Endpoint value isn't required for actual AWS S3 endpoints for in-cluster registry support #10790

Closed
2 tasks done
mrzarquon opened this issue Jun 21, 2022 · 7 comments
Labels
meta: stale This issue/PR is stale and will be closed soon self-hosted type: bug Something isn't working

Comments

@mrzarquon
Copy link
Contributor

mrzarquon commented Jun 21, 2022

Bug description

Currently the Gitpod configuration screen requires one to provide an S3 endpoint to use if using the in-cluster registry. This works fine for users who aren't using an actual AWS provided S3 bucket, but for users who are, they should not provide one.

The result is that if a user uses the default regionendpoint of s3.amazonaws.com the Registry container crashes if the bucket is not in us-east-1 with a bucket not found error.

The documentation for the provider specifically calls out not setting this value if using an AWS provided S3 bucket.

To work around this at the moment, a user has to customize the S3 endpoint to point to their region specific endpoint: so in eu-west-1 it changes to s3.eu-west-1.amazonaws.com, etc.

Steps to reproduce

Install gitpod to use an in-cluster registry and an S3 bucket not in us-east-1, do not change the default value from s3.amazonaws.com

Workspace affected

No response

Expected behavior

When using an AWS S3 bucket one should just have to provide the AWS region and the storage provider will determine the specific hostname to use for the endpoint.

The option S3 storage should be something like:

Endpoint:
Use AWS provided S3 ✅

And then unchecked it asks for hostname:

Use AWS provided S3 🔲
Hostname:______

And if check box is checked, then REGISTRY_STORAGE_S3_REGION should not be populated or set in the installation.

Example repository

No response

Anything else?

No response

@lucasvaltl
Copy link
Contributor

  • Potentially related to example 3 here
  • Likely best stop gap here is to document this by adding a note in the Kots UI
  • We should still fix this proper.

@mrsimonemms
Copy link
Contributor

This looks like it's a required field in the underlying Helm chart

@lucasvaltl
Copy link
Contributor

lucasvaltl commented Jul 6, 2022

@mrsimonemms could you take a look at this and see what the next steps should be? We did try to get to the bottom of this in this internal thread, but did not really get a good answer.

@lucasvaltl lucasvaltl moved this from 📓Scheduled to 🧊Backlog in 🚚 Security, Infrastructure, and Delivery Team (SID) Jul 6, 2022
@mrsimonemms
Copy link
Contributor

I'd like to have a sync on this with @mrzarquon because I'm not understanding this issue. I know we've recently updated the config on the in-cluster S3 section - hopefully this has solved it, but the sync should establish that

image

@mrzarquon
Copy link
Contributor Author

Talking with @mrsimonemms it looks like this is hard to detect because it only manifests by how the Registry service talks to S3, other services seem to handle it ok. We can't do things like force an S3 endpoint name based on region since that could block other S3-like endpoints. An analyzer that detects that the registry service is rebooting / falling over (which would then also create the workspace headless task failures when trying to create your first workspace) and tell the user that they need to check their S3 settings for registry would be the other half of the solution.

@stale
Copy link

stale bot commented Oct 12, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

1 similar comment
@stale
Copy link

stale bot commented Jan 16, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label Jan 16, 2023
@stale stale bot closed this as completed Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta: stale This issue/PR is stale and will be closed soon self-hosted type: bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

3 participants