From 78dc48bb8d5bc8f253f400b843d5d7914fe61614 Mon Sep 17 00:00:00 2001 From: Mattia Verga Date: Wed, 9 Feb 2022 17:40:04 +0100 Subject: [PATCH] review-stats: switch to API key authentication Signed-off-by: Mattia Verga --- roles/openshift-apps/review-stats/templates/config.cfg | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/roles/openshift-apps/review-stats/templates/config.cfg b/roles/openshift-apps/review-stats/templates/config.cfg index 1e47755de5..d7a7f6f275 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