-
Sub-task
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
False
-
-
False
-
-
When creating a new DLRN builder, we create the user "centos9-<release>" and its associated SSH keypair.
This keypair is used to authenticate against trunk.r.o to sync the repos, and also to authenticate against Gerrit instance review.rdoproject.org to send patches.
Currently, we add manually the pubkey to the account 'rdo-trunk' linked to the email "amoralej+rdo-trunk@redhat.com".
We would like to take advantage of the Gerrit REST API, in order to upload the new pubkey to the account:
curl -v -X POST --user "${GERRIT_USER_NAME}:${GERRIT_USER_PASSWORD}" --data-binary @.ssh/id_rsa.pub --header "Content-Type: text/plain; charset=UTF-8" https://review.rdoproject.org/r/accounts/self/sshkeys
Currently I'm hitting issue with authentication while testing with my Gerrit account. I need to double check, maybe HTTP basic authentication is not allowed