Uploaded image for project: 'RDO Project'
  1. RDO Project
  2. RDO-102 Improvement during Antelope release preparation
  3. RDO-113

Upload the new DLRN user SSH pubkey to the Gerrit account rdo-trunk

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • RDO Bobcat
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • 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

            jcapitao1@redhat.com Joel Capitao
            jcapitao1@redhat.com Joel Capitao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: