ByteSync icon indicating copy to clipboard operation
ByteSync copied to clipboard

[EPIC] Relay trusted-session invitations through backend and SignalR

Open marwannettour opened this issue 6 months ago • 0 comments

Context

Once invitations are built and encrypted, the backend must deliver them to the target clients. The backend acts as a relay and must not depend on decrypted invitation contents.

Objective

Add a server-side mechanism for sending encrypted trusted-session invitations to recipient clients and tracking delivery or response status.

Expected capabilities

  • Endpoint or SignalR method to publish invitations.
  • Routing to the recipient client.
  • Real-time delivery when the recipient is connected.
  • Pending or failure handling when the recipient is offline, depending on implementation choices.
  • Recipient responses such as accepted, rejected, expired, or failed.
  • Status feedback for the initiating client.

Acceptance criteria

  • The initiating client can send an encrypted invitation to the server.
  • The server forwards the invitation to the correct recipient.
  • The server does not require decrypted invitation contents.
  • The recipient can answer accepted, rejected, expired, or failed.
  • The initiator receives status feedback.
  • Expired invitations cannot be accepted.
  • Routing and status transitions are covered by tests.

Out of scope

  • Local invitation decryption.
  • Signature verification.
  • Auto-accept policy.
  • Effective session join.

Implementation tickets

  • #324 3.1 Define the trusted-session invitation send API contract
  • #325 3.2 Add SignalR routing to the recipient client
  • #326 3.3 Add the client-side SignalR message for received invitations
  • #327 3.4 Add minimal server-side invitation status tracking
  • #328 3.5 Add recipient responses back to the initiator
  • #329 3.6 Add server-side invitation expiration handling
  • #330 3.7 Add server and SignalR tests for trusted-session invitations

marwannettour avatar May 19 '26 12:05 marwannettour