You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to collaborate the ecr + credential-helper and aws SSO authentication. Here is what i did and how it fails:
First, i set up the sso-authentication with
aws configure sso-session
and
aws configure sso
the automatically generated ~/.aws/config looks like this:
Then i installed amazon-ecr-credential-helper under Ubuntu 20.04.6 LTS through go install. I also updated the ~/.docker/config.json according to the readme.md as follows:
{
"credHelpers": {
/*helper settings for other IaaS providers like GCP*/
"<aws-user-id>.dkr.ecr.<aws-cli-region>.amazonaws.com/<ecr-registry-name>": "ecr-login"
},
"credsStore": "ecr-login"
}
But now after logging in using the sso, i can't push nor pull the image to/from the ECR. The error message says that i have "no basic auth credentials"
I could acually use the trick suggested here to get the password and re-direct it to the --password-stdin argument of docker login using the pipeline operator "|". But this command has the following side-effects:
It removes my ~/.docker/config.json file and create a new one with only the auth passwords.
It stores the password in ~/.docker/config.json file in (base64-encoded) plain text
I don't like either of these side-effects so could you please help me by telling me the most practical way of using the tool chain?
After searching on the internet and within the issues of this repo, i found this issue mentioned an influent ochestration of sso and credential helper. @austinvazquez suggested to update the credential-helper. But for me updating this doesn't resolve the problem.
Edit on 20.07.2023:
I re-install the newest version of credential-helper using go install, the error by the login changes to
, i can finally login using the command with the pipeline operator "|". And my old docker config is not flushed. But the authentication token is still stored in plain text...
The text was updated successfully, but these errors were encountered:
I have been trying to collaborate the ecr + credential-helper and aws SSO authentication. Here is what i did and how it fails:
First, i set up the sso-authentication with
and
the automatically generated ~/.aws/config looks like this:
I can now login using
Then i installed amazon-ecr-credential-helper under Ubuntu 20.04.6 LTS through go install. I also updated the ~/.docker/config.json according to the readme.md as follows:
But now after logging in using the sso, i can't push nor pull the image to/from the ECR. The error message says that i have "no basic auth credentials"
I could acually use the trick suggested here to get the password and re-direct it to the
--password-stdin
argument ofdocker login
using the pipeline operator "|". But this command has the following side-effects:I don't like either of these side-effects so could you please help me by telling me the most practical way of using the tool chain?
After searching on the internet and within the issues of this repo, i found this issue mentioned an influent ochestration of sso and credential helper. @austinvazquez suggested to update the credential-helper. But for me updating this doesn't resolve the problem.
Edit on 20.07.2023:
I re-install the newest version of credential-helper using go install, the error by the login changes to
But the good news is, by removing the two configuration entries:
and
, i can finally login using the command with the pipeline operator "|". And my old docker config is not flushed. But the authentication token is still stored in plain text...
The text was updated successfully, but these errors were encountered: