I have a registry with a long password and i always get UNAUTHORIZED Error. Here are my finding :
Using caveman debuging, I modify the file lib/helper.rb
def generateHeaders(config, session, headers={}, login={})
username = login[:username] || session[:username] || config.registry_username
password = login[:password] || session[:password] || config.registry_password
if username
headers['Authorization'] = "Basic #{base64_docker_auth(username, password)}"
print base64_docker_auth(username, password) # printing the base64 encoded
end
return headers
end
When restart the app, I find in the logs a line break in th bas64 encoded. The line feed is exactly a 60 char
Hi,
I have a registry with a long password and i always get UNAUTHORIZED Error. Here are my finding : Using caveman debuging, I modify the file lib/helper.rb
When restart the app, I find in the logs a line break in th bas64 encoded. The line feed is exactly a 60 char
I don't know ruby but it looks like
strict_encode64(bin)
does not do what it's supposed to, by including line feed. Any idea ?