When authenticating Docker with AWS, the recommend practice from AWS is this:
aws ecr get-login-password | docker login --username AWS --password-stdin <registry>
When AWS SSO is enabled, the value returned from get-login-password is greater than 2,500 characters in length, which causes the credential helper to fail. I've tested with both the desktop helper and wincred helper, both of which fail with this message:
Error saving credentials: error storing credentials - err: exit status 1, out: 'The stub received bad data.'
This is a fairly blocking issue for Windows developers, as they cannot log into the Docker registry if the authentication secret is large enough.
When authenticating Docker with AWS, the recommend practice from AWS is this:
aws ecr get-login-password | docker login --username AWS --password-stdin <registry>When AWS SSO is enabled, the value returned from
get-login-passwordis greater than 2,500 characters in length, which causes the credential helper to fail. I've tested with both thedesktophelper andwincredhelper, both of which fail with this message:Error saving credentials: error storing credentials - err: exit status 1, out: 'The stub received bad data.'This is a fairly blocking issue for Windows developers, as they cannot log into the Docker registry if the authentication secret is large enough.