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

Allow insecure localhost connections #1289

Merged
merged 1 commit into from
Jul 2, 2024
Merged

Conversation

Kern--
Copy link
Contributor

@Kern-- Kern-- commented Jun 25, 2024

Issue #, if available:
fixes #1282

Description of changes:
Before this change, the docker.MatchLocalhost function was applied to hosts retrieved from labels on snapshots, but not in the artifact fetcher. This meant that data could be lazily loaded from an insecure localhost, but we couldn't fetch the SOCI index/ztocs from an insecure localhost. This change adds the matcher to the artifact fetcher so that images can be lazily loaded from an insecure localhost.

Testing performed:
make test && make integration

I also did a manual test against a local registry:2

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Kern-- Kern-- requested a review from a team as a code owner June 25, 2024 22:15
@github-actions github-actions bot added go Pull requests that update Go code testing Unit and/or integration tests labels Jun 25, 2024
Before this change, the `docker.MatchLocalhost` function was applied to
hosts retrieved from labels on snapshots, but not in the artifact
fetcher. This meant that data could be lazily loaded from an insecure
localhost, but we couldn't fetch the SOCI index/ztocs from an insecure
localhost. This change adds the matcher to the artifact fetcher so that
images can be lazily loaded from an insecure localhost.

Signed-off-by: Kern Walster <[email protected]>
@Kern-- Kern-- force-pushed the insecure-localhost branch from 5d34cb8 to 075affe Compare June 25, 2024 22:19
Copy link
Contributor

@austinvazquez austinvazquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM.

@Kern-- Kern-- merged commit 2f82461 into awslabs:main Jul 2, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code testing Unit and/or integration tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] SOCI snapshotter not working insecure container registry
3 participants