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

fix: parse image auth config correctly #103

Merged
merged 7 commits into from
Oct 21, 2024
Merged

fix: parse image auth config correctly #103

merged 7 commits into from
Oct 21, 2024

Conversation

sreya
Copy link
Collaborator

@sreya sreya commented Oct 20, 2024

This PR fixes authentication not working if Username, Password fields are omitted in favor of an Auth field. The Auth field can be a base64 encoded concatenation of the two. This PR also adds logic to existing integration tests to ensure authenticated pulls work as expected.

fixes #102

Add `//nolint:gosec` comment to disable linter for the `docker
push` command in integration tests. This is necessary to bypass
false positives related to the handling of the `exec.Command`
which are considered secure in this test context.
@sreya sreya requested a review from johnstcn October 21, 2024 01:13
dockerutil/client_test.go Outdated Show resolved Hide resolved
cli/docker.go Show resolved Hide resolved
@sreya sreya merged commit e557d25 into main Oct 21, 2024
9 checks passed
@sreya sreya deleted the jon/fixpull branch October 21, 2024 15:53
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.

envbox "CODER_IMAGE_PULL_SECRET" should allow the "auth" field on it's own
2 participants