Details
-
Bug
-
Resolution: Won't Fix
-
Blocker
-
None
-
None
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":
,
"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
- is related to
-
CO-2224 Privileged API user cannot add SSH key
- Closed