niaid / image_portal_workflows

Workflows related to project previously referred to as "Hedwig"
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

Authentication in Prefect server #389

Closed annshress closed 9 months ago

annshress commented 9 months ago

Prefect server is currently available for everyone within NIH vpn. We need to add some form of authentication (Bearer token for api without refresh for now, and Basic auth with username and password).

annshress commented 9 months ago

Closed by https://github.com/niaid/tf-hedwig-workflow-api/commit/4b782675f0130bc295fc82ce63a42872f3ed2715

Requirement: Need to export env var: PREFECT_API_KEY on the worker server (hpc in our case) which matches the API_KEY in the server.py in prefect server.