Initial commit

This commit is contained in:
2026-11-16 20:49:40 +02:00
commit eed5a36dd4
32 changed files with 621 additions and 0 deletions
+54
View File
@@ -0,0 +1,54 @@
# EE2E Phone Calls
Self-hosted, username-based Android-to-Android encrypted voice calling project.
**Status:** development scaffold / Milestone M0-M1. This is not a working secure calling product. Cryptographic handshake, SFrame media transforms, WebRTC integration, push delivery and production hardening are intentionally not implemented yet.
## Architecture baseline
- Android: Kotlin, Jetpack Compose, Android Keystore, Core-Telecom
- Backend: Go HTTP API and WebSocket signaling
- Database: PostgreSQL
- Media: WebRTC + Opus + SFrame (endpoint-to-endpoint)
- Key agreement: audited PQXDH implementation with a compatible ML-KEM suite; do not invent a hybrid protocol
- Relay: coturn
- Deployment: self-hosted Docker Compose
## Quick start (development)
1. Copy `.env.example` to `.env` and change all secrets.
2. Start infrastructure: `docker compose --env-file .env -f infrastructure/compose/docker-compose.yml up --build -d`
3. Check API health: `curl http://localhost:8080/healthz`
4. Check signaling health: `curl http://localhost:8081/healthz`
The API currently provides only health and a placeholder registration endpoint. Signaling currently accepts WebSocket connections but does not yet implement authenticated call routing. Do not expose this scaffold to the public Internet.
## Repository layout
- `backend/`: Go services
- `android/`: native Android starter project
- `docs/`: architecture, threat model, protocols and milestones
- `infrastructure/`: Docker Compose, coturn and database initialization
- `tests/`: planned integration and security test plans
## Development commands
```bash
cd backend
go test ./...
go run ./cmd/api
```
Android build (requires Android Studio / Android SDK and a locally installed Gradle):
```bash
cd android
gradle assembleDebug
```
## Security rules
1. Never send private keys, shared secrets or plaintext audio to the backend.
2. Do not mark a call secure until peer identity and media encryption are authenticated.
3. Keep signaling and media encryption separate; TLS/DTLS-SRTP alone is not the project's E2EE guarantee.
4. Do not implement cryptographic primitives or a custom PQXDH variant.
5. Treat all cryptographic integrations as blocked until library selection, interoperability tests and review are complete.
See `docs/` before implementing protocol or production deployment work.