ALPQ

Application-Layer Protection over TLS

PLANNING2026-10-27no spec yet

HTTPS protects data between the browser and the first server that ends the TLS connection. That's often a CDN or a proxy, not the app itself. This project plans an extra layer inside the app, so the data stays protected past that point and is harder to scrape, tamper with or replay.

Status: planning. There's no spec and no code yet. This page sets the scope so reviewers can push back early.

1Why

2Three parts, kept apart

PartWhat it doesBuilds on
EncryptionRequest and response bodies encrypted between the browser and the app's own keys, so hops in between see only ciphertextHPKE (RFC 9180); the model of Oblivious HTTP (RFC 9458); JWE (RFC 7516)
SigningEvery request signed by a key bound to the device; replays refusedHTTP Message Signatures (RFC 9421); DPoP (RFC 9449)
Encoding and obfuscationOpaque endpoint names, compact encoded payloads, rotating keys and names, scrambled client codeCommon practice; no standard
Obfuscation is a speed bump, not security. A design must stay safe if an attacker knows everything except the keys (Kerckhoffs's principle). Obfuscation only raises the cost of casual scraping and automation.

3Not in scope

4Plan

  1. Threat model: who is in the middle (CDN, proxy, browser extension, scraper) and what each can see and change.
  2. Survey: what OHTTP, HPKE, Message Signatures and DPoP already cover, and what's left.
  3. Proof of concept on hackthis.alpq.us, reusing the QR login's device keys.
  4. Measure: added latency, payload size, and how much harder scraping really gets.
  5. Draft 0.1 for review, then a trial on a GOVW app that needs it most.

5Questions we'd like help with