Skip to content

fix: parse image auth config correctly#103

Merged
sreya merged 7 commits intomainfrom
jon/fixpull
Oct 21, 2024
Merged

fix: parse image auth config correctly#103
sreya merged 7 commits intomainfrom
jon/fixpull

Conversation

@sreya
Copy link
Copy Markdown
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
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