ByteSync icon indicating copy to clipboard operation
ByteSync copied to clipboard

[EPIC] Start trusted sessions from an initiating client

Open marwannettour opened this issue 6 months ago • 0 comments

Context

ByteSync already supports creating and joining cloud sessions, and it already has persistent RSA public keys for trusted clients. This epic adds the first protocol step: an authenticated and configured client can create a session and select trusted clients to invite automatically.

Objective

Allow a ByteSync client to initialize a cloud session for one or more trusted clients without requiring the user to manually copy a session ID or password.

Expected capabilities

  • UI entry point from the trusted clients view.
  • Multi-selection of trusted clients.
  • A create-session action for the selected clients.
  • Standard ByteSync cloud session creation.
  • Preparation of per-recipient invitation context.
  • CLI command to start a trusted session from client IDs.

Acceptance criteria

  • The user can select one or more trusted clients from the UI and create a session.
  • The CLI can trigger the same flow.
  • Non-trusted clients are rejected.
  • Session creation remains compatible with the current ByteSync flow.
  • No sensitive invitation data is sent in clear text at this stage.
  • The main success and error cases are covered by tests.

Out of scope

  • Remote client auto-acceptance.
  • Detailed invitation encryption and signing.
  • SignalR relay.
  • Automatic inventory or synchronization startup on remote clients.

Implementation tickets

  • #312 1.1 Add an application service to start trusted sessions
  • #313 1.2 Add command models for starting trusted sessions
  • #314 1.3 Add the trusted-clients UI action to create a session
  • #315 1.4 Add the CLI command to start a trusted session
  • #316 1.5 Define CLI exit codes for trusted-session start
  • #317 1.6 Add unit tests for trusted-session creation

marwannettour avatar May 19 '26 12:05 marwannettour