recast-hep / recast-atlas

CLI for ATLAS RECAST contributors
https://recast.docs.cern.ch/
Apache License 2.0
6 stars 5 forks source link

Minor update to usage of auth input arguments #19

Closed danikam closed 4 years ago

danikam commented 4 years ago

The command eval "$(recast auth setup -a $RECAST_USER -a $RECAST_PASS -a $RECAST_TOKEN -a default)" was failing with the following error:

Error response from daemon: Get https://gitlab-registry.cern.ch/v2/: unauthorized: HTTP Basic: Access denied

This authorization error seems to be resolved by assigning the user-input $RECAST_PASS password - rather than the user-input $RECAST_TOKEN - to the variable registry_pass in auth.py.

The eval command above now succeeds with:

Login Succeeded
lukasheinrich commented 4 years ago

thanks @danikam do you know if something changed on the CERN GitLab to trigger this?

danikam commented 4 years ago

Hi @lukasheinrich, not sure. It looks like the monosbb ci jobs first started failing the recast auth command with that error message 5 months ago: https://gitlab.cern.ch/recast-monosbb/workflow/-/jobs/4801397. Before that, the auth login was succeeding (eg. https://gitlab.cern.ch/recast-monosbb/workflow/-/jobs/4658329). The tag of the recast/recastatlas image (v0.0.16) is the same for the two pipelines. I'm not sure how the docker registry login using registry_pass==token was succeeding in the past without setting the RECAST_TOKEN the same as the RECAST_PASS (that's my current workaround), but it obviously was working, so I don't know what changed to make it start failing.

danikam commented 4 years ago

Issue resolved. Was due to misunderstanding on my end regarding the use of gitlab access tokens.