Files
zoom-sched-poc/docs/adr/0001-transient-credentials-and-gated-host-url.md
T
kiskaadee 091b9a031a docs: reconcile README, add ARCHITECTURE.md, and record ADR-0001
- README.md: document gated zoom_start_url, payment_processing guard, 64 KiB cap, single-worker Docker note, and doc links
- ARCHITECTURE.md: document component responsibilities, SQLite appointment state machine, and trust boundaries
- docs/adr/0001-transient-credentials-and-gated-host-url.md: record decision for browser-memory-only credentials and gated host URL
2026-11-21 18:45:10 -05:00

14 lines
1.4 KiB
Markdown

# ADR-0001: Transient Zoom Credentials and Gated Host URL
- **Status:** Accepted
- **Date:** 2026-11-21
- **Context:** `zoom-sched-poc` is a public-facing proof-of-concept demo allowing Azu to test end-to-end Zoom scheduling with her own Server-to-Server OAuth app without deploying an authentication gateway (Authelia) or persisting third-party secrets on the homelab server.
## Decision
1. **Transient browser-memory credentials:** Zoom `account_id`, `client_id`, and `client_secret` are entered in Screen 1, held solely in browser tab memory, and transmitted per request over HTTPS (`SecretStr` in Pydantic). They are never stored in SQLite, session cookies, or server environment files.
2. **Gated `zoom_start_url`:** Unauthenticated `GET /api/appointments/<lookup_id>` omits `zoom_start_url` (which embeds a Zoom host ZAK token) and returns only client-safe metadata (`zoom_join_url`, `zoom_meeting_id`). `zoom_start_url` is returned only from `POST /api/appointments/<lookup_id>/pay` after verifying the caller's Zoom credentials via `zoom.get_access_token`.
## Consequences
- **Positive:** Eliminates server-side secret storage and prevents anyone holding a `session_id`/`payment_id` from hijacking host controls via unauthenticated `GET` lookup.
- **Negative / Trade-off:** Refreshing the browser tab requires re-entering Zoom credentials in Screen 1, and Screen 3 `BUSCAR` lookup alone does not display the host link unless payment is confirmed in the same flow.