Skip to content

Commit fee507d

Browse files
committed
Make recipientPublicKey plural
I order for server-to-server interactions to work over ssh, the recipient OCM server needs to have a private key, that can be used for access, and an implementation may ask the user to upload a key pair for this purpose, or generate one on behalf of the user. However a user may also want to access the share directly using other means, or an enterprise may want to enable third-party-copy and for this reason it will be useful to be able to reply with multiple public keys, used for different purposes.
1 parent 8cf8da1 commit fee507d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

IETF-RFC.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ A 201 response status means the Share Creation Notification Request was
905905
successful. In this case, the response body MUST contain a JSON
906906
document representing an object with the following string fields:
907907
- REQUIRED: `recipientDisplayName` - the Recipient's display name.
908-
- OPTIONAL: `recipientPublicKey` - the Recipient's public key.
908+
- OPTIONAL: `recipientPublicKeys` - the Recipient's public key(s).
909909
This property MUST be returned when the protocol of the incoming
910910
share was `ssh`.
911911
A 400 response status means some parameters were invalid or missing.

spec.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,12 @@ paths:
7575
description: >
7676
Display name of the recipient
7777
example: John Doe
78-
recipientPublicKey:
79-
type: string
78+
recipientPublicKeys:
79+
type: array
80+
items:
81+
type: string
8082
description: >
81-
The public key of the recipient. This value MUST be provided
83+
The public key(s) of the recipient. This value MUST be provided
8284
in case the Share Creation Notification includes the `ssh` protocol.
8385
"400":
8486
description: >

0 commit comments

Comments
 (0)