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 v0.0.26
Showing
- swh/lister/core/lister_transports.py 18 additions, 3 deletionsswh/lister/core/lister_transports.py
- swh/lister/phabricator/lister.py 41 additions, 6 deletionsswh/lister/phabricator/lister.py
- swh/lister/phabricator/tasks.py 4 additions, 4 deletionsswh/lister/phabricator/tasks.py
- swh/lister/phabricator/tests/test_tasks.py 1 addition, 1 deletionswh/lister/phabricator/tests/test_tasks.py
-
Some references in the commit message have been migrated:
- T1809 is now #1809 (closed)
Please register or sign in to comment