usnistgov / dioptra

Test Software for the Characterization of AI Technologies
https://pages.nist.gov/dioptra/
Other
229 stars 34 forks source link

[BUG] Worker Containers cannot automatically authenticate via Endpoint api/v1/auth/login | rest-api doesn't recognize worker name and password #665

Open Cachet23 opened 1 month ago

Cachet23 commented 1 month ago

Describe the bug The TF and Pytorch Worker Container could not automatically authenticate at the rest api via the endpoint ...api/v1/auth/login. Curling the /health endpoint showed "healthy" though. I figured it was due to the following: the worker couldn't auth with his 'username' and 'password' found in .env. So it seemed like the worker.usrname and worker.pw was not deposited at the rest api or db.

The Idea came when I create a User via WebUI and specify the name as "dioptra-worker" and pw as "{pw found in .env}" the worker container could suddenly reach every endpoint and authenticate.

Since i already continued working on enqueuing Jobs I have no screenshot or accurate error message. If needed I can reproduce the error and provide more detailed Information.

Expected behavior An 404 error url not found!