fix: key auth rate limiting on the socket address only and clear sent drafts after unmount

- auth: drop the AUTH_TRUSTED_PROXY_HEADERS opt-in. Configured headers were
  trusted from any peer, so direct access to the published port could still
  rotate them. Better Auth now reads only the Manager-set socket address
  header; the env, compose forwarding, docs and tests are removed.
- composer: a send that completes after the composer unmounted (session
  switched mid-send) left the submitted text in the per-session draft store.
  Sends now complete through mutateAsync and clear the stored draft only if
  it still matches what was submitted, so newer edits are kept.
This commit is contained in:
ioplex committed 2026-10-23 12:49:53 -04:00
1 parent 4ec62cd4e7
commit dabe750920
17 files changed
+268 -233

No files matched your search

-8
View File
@@ -114,14 +114,6 @@ DEBUG=false
# so set true explicitly for HTTPS.
# AUTH_SECURE_COOKIES=true
# Trusted proxy headers for the client IP used by auth rate limiting and session records
# (comma-separated header names, for example x-forwarded-for or cf-connecting-ip).
# Unset by default: the Manager uses the real TCP socket address and ignores any
# client-supplied forwarding header, so a header cannot be rotated to bypass the
# login rate limit. Set this only when the Manager sits behind a reverse proxy or
# tunnel that overwrites the header, and list only headers that proxy sets.
# AUTH_TRUSTED_PROXY_HEADERS=x-forwarded-for
# OAuth Providers (optional - enable by providing client ID and secret)
# GITHUB_CLIENT_ID=
# GITHUB_CLIENT_SECRET=