From 78dc48bb8d5bc8f253f400b843d5d7914fe61614 Mon Sep 17 00:00:00 2001 From: Mattia Verga Date: Feb 23 2022 19:44:52 +0000 Subject: review-stats: switch to API key authentication Signed-off-by: Mattia Verga --- diff --git a/roles/openshift-apps/review-stats/templates/config.cfg b/roles/openshift-apps/review-stats/templates/config.cfg index 1e47755..d7a7f6f 100644 --- a/roles/openshift-apps/review-stats/templates/config.cfg +++ b/roles/openshift-apps/review-stats/templates/config.cfg @@ -4,8 +4,13 @@ url = https://bugzilla.stage.redhat.com/xmlrpc.cgi {% else %} url = https://bugzilla.redhat.com/xmlrpc.cgi {% endif %} -username = package-review@lists.fedoraproject.org -password = {{ packagereviewbugzilla }} +# username = package-review@lists.fedoraproject.org +# password = {{ packagereviewbugzilla }} +{% if env == "staging" %} +bugzilla_api_key = {{ reviewstatsbzapikey.stg }} +{% else %} +bugzilla_api_key = {{ reviewstatsbzapikey }} +{% endif %} [review-stats-worker] needinfo_waiting_days = 30