docker-credential-gcr produces Username incompatible with GCR when used by other libraries #2251
Labels
area/behavior
all bugs related to kaniko behavior like running in as root
area/released-image
dependencies
Pull requests that update a dependency file
kind/bug
Something isn't working
priority/p2
High impact feature/bug. Will get a lot of users happy
Milestone
Actual behavior
echo https://gcr.io | docker-credential-gcr get
produces output like this:When using this helper with other libraries like Jib, they fail to successfully authenticate against GCR because GCR would not accept the username in the format
_dcgcr__token
(note the 2_
s betweendcgcr
andtoken
).But when
docker-credential-gcr
is build from the latest source, it producesUsername
in the format_dcgcr_2_0_4_token
,which is accepted by GCR when using basic auth.
Expected behavior
docker-credential-gcr get
should produceUsername
that has version betweendcgcr
andtoken
, which works with GCR.To Reproduce
Please see the commands above.
Additional Information
N/A
N/A
gcr.io/kaniko-project/executor@sha256:a3f8c85c6a0fa490b9a619bdb503c8cb98fb2fd17f96d0e4356a0bd65c1e5056
(:debug
)gcr.io/kaniko-project/executor@sha256:1f982af0b54be748221d9a35dcfa608660ab3d51229aa56bde5416f75aff7561
(:latest
)I believe this issue is due to the version information somehow not being bundled with the build used (even though it shows up as
v1.5.1-0.20210909233216-4cdd60d0f2d8
onversion
command).I would suggest to update the binary to the latest version and make sure it outputs
Username
in the right format.Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: