Skip to content
This repository was archived by the owner on Sep 2, 2026. It is now read-only.
This repository was archived by the owner on Sep 2, 2026. It is now read-only.

Sync relay worker & E2E crypto envelope #34

Closed

Description

@64ix

Parent

#29

What to build

A self-hosted Cloudflare Worker + D1 relay that stores only opaque E2E-encrypted rows it cannot read. Per-row encryption reuses Orca's existing crypto (NaCl box + HKDF key schedule) with AAD bound to table/row/version/keyId. Transport is WS/long-poll with a capability-negotiated protocol per the remote-wire-compatibility rules. The user deploys the worker manually; no upstream cloud involvement.

Acceptance criteria

  • The relay stores only ciphertext; nothing plaintext ever lands in D1
  • Wrong-key decode fails cleanly (AAD binding verified)
  • Push/pull round-trip works against a deployed worker
  • Protocol is capability-negotiated so mixed client versions coexist
  • Deployment is manual and documented (emdash pattern)

Blocked by

None — can start immediately.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions