Skip to content
Snippets Groups Projects
Verified Commit 6d117059 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

phabricator.lister: Use credentials setup from configuration file

Prior to this commit, this expected the api.token to be provided at task
initialization. That behavior has been kept for cli purposes. It's no good for
production purposes though (as this leaks the credentials in the scheduler db).

So now, the credentials is fetched from the lister's configuration file as the
other listers do.

Another change is the authentication mechanism which is slighly different. It's
not using a basic `auth` mechanism. It's expecting an `api.token` query
parameter so the `request_params` is overriden to provide that.

Related T1809
parent ecdce4b0
No related branches found
Tags swh-web-20230420.1
1 merge request!68phabricator.lister: Use credentials setup from config file
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment