system-config/playbooks/roles/matrix-gerritbot
Tristan Cacqueray 953358a485 Update the gerritbot-matrix image to fix the ssh signature failure
This change enables a new runtime which does not use the faulty
openssh crypto policy.

Change-Id: Iedf8e2668a2f9e1770ca1782b3e61983382e5df5
2021-08-03 11:42:28 +00:00
..
defaults Update the gerritbot-matrix image to fix the ssh signature failure 2021-08-03 11:42:28 +00:00
files Run matrix-gerritbot on eavesdrop 2021-07-30 09:16:42 -05:00
tasks Update the gerritbot-matrix image to fix the ssh signature failure 2021-08-03 11:42:28 +00:00
templates Update the gerritbot-matrix image to fix the ssh signature failure 2021-08-03 11:42:28 +00:00
README.rst Run matrix-gerritbot on eavesdrop 2021-07-30 09:16:42 -05:00

Run the gerritbot-matrix bot.

Create the gerritbot_matrix_access_token with this command:

HOMESERVER_URL="https://opendev.ems.host"
USER="@gerritbot:opendev.org"
PASS="supersecret"

export MATRIX_TOKEN=$(curl -XPOST ${HOMESERVER_URL}/_matrix/client/r0/login -d '{"user": "'${USER}'", "password": "'${PASS}'", "type": "m.login.password"}' | jq -r ".access_token")
echo "gerritbot_matrix_access_token: ${MATRIX_TOKEN}"

Verify the token:

curl -H "Authorization: Bearer ${MATRIX_TOKEN}" ${HOMESERVER_URL}/_matrix/client/r0/account/whoami

Delete the token:

curl -H "Authorization: Bearer ${MATRIX_TOKEN}" -X POST ${HOMESERVER_URL}/_matrix/client/r0/logout -d{}