SUSE / Portus

Authorization service and frontend for Docker registry (v2)
http://port.us.org/
Apache License 2.0
3k stars 471 forks source link

Unexpected 401 error after getting Portus information #2260

Closed leandrorusso closed 4 years ago

leandrorusso commented 4 years ago

Description

While using Portus, if you will execute into Portus frontend container the command below: "docker exec -it portusctl exec rake portus:info"

The current users logged will be redirected to the login page. Portus container logs show: Processing by TeamsController#index as HTML Completed 401 Unauthorized in 6ms (ActiveRecord: 0.9ms)

Portus version:2.5.0

stale[bot] commented 4 years ago

Thanks for all your contributions! This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Jean-Baptiste-Lasselle commented 4 years ago

HI @leandrorusso , If there is anything (I mean, any, thing), you would like to do with rake inside portus container, you can also do it using Portus API and curl. Or portusctl, but I don't recommend portusctl, because :

see https://github.com/SUSE/Portus/issues/2244#issuecomment-585557198