Skip to content

Commit

Permalink
Revised error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-tiloca-sics committed Jul 8, 2024
1 parent bfa27d1 commit 4cb368f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions draft-ietf-core-oscore-id-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,15 @@ A peer terminates an ongoing OSCORE ID update procedure with another peer as suc

A peer MUST NOT initiate an OSCORE ID update procedure with another peer, if it has another such procedure ongoing with that other peer.

Upon receiving a valid ID update message, a responder that supports the ID update procedure MUST send the second ID update message, except in the following cases.
Upon receiving a valid, first ID update message, a responder that supports the ID update procedure MUST send the second ID update message, except in the following case where the responder aborts the ID update procedure:

* The received ID update message is not a KUDOS message (i.e., the OSCORE ID update procedure is being performed stand-alone) and the responder has no eligible Recipient ID to offer to the initiator (see {{id-update-additional-actions}}).

* The received ID update message contains a Recipient-ID option with a length that exceeds the maximum length of OSCORE Sender/Recipient IDs for the AEAD algorithm in use for the OSCORE Security Context shared between the peers. Specifically, the length of the Recipient-ID option may not exceed the length of the AEAD nonce minus 6 (see {{Section 3.3 of RFC8613}}).
Upon receiving a valid ID update message, a peer MUST abort the ID update procedure, in the following case:

In both cases, if the responder is a server, the responder MUST also reply to the received ID update request message with a protected 5.03 (Service Unavailable) error response. The error response MUST NOT include the Recipient-ID Option, and its diagnostic payload MAY provide additional information. When receiving the error response, the initiator terminates the OSCORE IDs procedure as failed.
* The received ID update message contains a Recipient-ID option with a length that exceeds the maximum length of OSCORE Sender/Recipient IDs for the AEAD algorithm in use for the OSCORE Security Context shared between the peers. This is the case when the length of the Recipient-ID option exceeds the length of the AEAD nonce minus 6 (see {{Section 3.3 of RFC8613}}).

If, after receiving an ID update message as CoAP request, a peer aborts the ID update procedure, the peer MUST also reply to the received ID update request message with a protected 5.03 (Service Unavailable) error response. The error response MUST NOT include the Recipient-ID Option, and its diagnostic payload MAY provide additional information. When receiving the error response, the initiator terminates the OSCORE IDs procedure as failed.

When the OSCORE ID update procedure is integrated into the execution of the KUDOS procedure, it is possible for the KUDOS procedure to succeed while the OSCORE ID update procedure fails (e.g., because the responder has no eligible Recipient ID to offer to the initiator). In such case, the peers should continue communication using the newly derived OSCORE Security Context CTX\_NEW obtained from the KUDOS procedure. This CTX\_NEW should use the peers' old Sender and Recipient IDs, meaning the desired Recipient IDs conveyed in the Recipient-ID options should not be considered.

Expand Down Expand Up @@ -688,12 +690,14 @@ Verify with CTX_NEW | } |

## Version -00 to -01 ## {#sec-00-01}

* Clarifications and editorial improvements.
* Revised and extended error handling.

* Specify that the Recipient-ID option may need to be empty.

* Failure cases when running the ID update procedure integrated with KUDOS.

* Clarifications and editorial improvements.

## Version -00 ## {#sec-00}

* Split out material from Key Update for OSCORE draft into this new document.
Expand Down

0 comments on commit 4cb368f

Please sign in to comment.