Uploaded image for project: 'COmanage'
  1. COmanage
  2. CO-2222

Platform admin cannot upload SSH key via REST

    XMLWordPrintable

Details

    Description

      curl \
      --verbose \
      -u 'co_1.platform_rest_user_01:XXXXXXXX' \
      -X POST \
      -d @ssh_key_add.json \
      'https://registry-dev.skoranda.scgvm.net/registry/ssh_key_authenticator/ssh_keys.json'

      The file ssh_key_add.json is

      {
      "RequestType":"SshKeys",
      "Version":"1.0",
      "SshKeys":
      [
      {
      "Version":"1.0",
      "Person":

      { "Type":"CO", "Id":"2" }

      ,
      "Comment":"Uploaded via REST call",
      "Type":"ssh-rsa",
      "Skey":"AAAAB3NzaC1yc2EAAAABIwAAAQEAr9amUAycDrDj2f2kLkK6b5X5DYr+4kmRcYfjcOQG9capsUDh44E8C1KKKRtVZNCM4QAXjHHuIQhb7/YysH6XpjUypzHciDNyJ6f3H0Phrcu9X5HSXlPNuyHlq1rtxtuXnd/UPmrZlSuy1Kt4bjjk5EYI6XMXQjlZMet9mT8y0kB1NALGqfLm1LesjShEmKCqP97fj//jRakm661TDdphjKR7e/O6wB80BHZAUznd+4XqYoQ8wPMWFKk21ZtwNWEpgooPhwC956BmsGRXHzySct/LISNAwbQdNaxTKeWdLGvsD6uivBsbBe2egrkCB0UKzcyXTuQv3W4cElAzDFROEQ==",
      "SshKeyAuthenticatorId":"1"
      }
      ]
      }

      The server returns a 400.

      The CO does have an Authenticator of type SshKeyAuthenticator with ID of 1.

      The CO 2 does have a CO Person record with ID 2.

      The platform admin is able to add an SSH key to the CO Person record with ID 2 using the UI, but not with a REST API call.

      Attachments

        Issue Links

          Activity

            People

              benn.oshrin@at.internet2.edu Benn Oshrin (internet2.edu)
              scott.koranda@at.internet2.edu Scott Koranda (uwm.edu/illinois.edu)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: