Skip to content

fix(core): allow colons in DOCKER_AUTH_CONFIG passwords - #1155

Open
bardrop wants to merge 1 commit into
testcontainers:mainfrom
bardrop-oss:fix-auth-password-colon
Open

bardrop wants to merge 1 commit into
testcontainers:mainfrom
bardrop-oss:fix-auth-password-colon

Conversation

@bardrop

@bardrop bardrop commented Nov 23, 2026

Copy link
Copy Markdown

process_docker_auth_config_encoded splits the decoded auth on every :, so any password with a colon fails:

ValueError: too many values to unpack (expected 2)
ValueError: Could not parse docker auth config

That includes Google registries, where the user is _json_key and the password is a JSON service account key. The username can't contain a colon, so it now splits at the first one only.

The new test has two cases (a plain password and a _json_key one). Both fail without the change. tests/core/test_auth.py passes (9 tests), ruff is clean on both files. I didn't run the tests that need Docker.

This branch has not been deployed

No deployments
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.

1 participant