Spaces:
Sleeping
Sleeping
Commit History
-
Harden public feedback form against abuse + roster leakβ
Piers Lyon +1: Claude Opus 4.7 (1M context)Tightens the unauth /?form=feedback page so the only thing it can do is accept signed-attribution feedback from people who already received a digest. Changes: - HMAC-sign the recipient name in digest URLs. The footer link is now /?form=feedback&from=Stu&sig=<16-hex>. Form only honours ?from= when the signature verifies AND the name is in team_emails. Forged or forwarded links can no longer pose as a colleague or enumerate the team roster. - When no valid signature is present, the form shows a generic "Your name (optional)" text field instead of a dropdown β no internal team names exposed to outsiders. - Per-session rate limit: max 5 submissions, 20s cooldown between submits. Stops accidental spam + caps LLM-cost amplification from a misbehaving client. - Input limits: 8 < body β€ 4000 chars (hard-truncate above). - LLM parser system prompt now explicitly treats reply text as untrusted; "ignore previous instructions" patterns in user input no longer have grammatical β¦bd531ac -
Add unauth web feedback form β primary capture pathβ
Piers Lyon +1: Claude Opus 4.7 (1M context)Email replies are messy: the tenant Application Access Policy blocked Mail.Read on the digest mailbox, and recipients reading from a personal inbox would never have their replies routed back to us anyway. A web form sidesteps all of it. What ships: - New feedback_form.py renders a single-purpose Streamlit page (name dropdown pre-filled from ?from= query param, free-text body, one submit button, tight thank-you). No login required. - app.py recognises ?form=feedback BEFORE the auth gate and routes to the public form, st.stop()'s before anything else loads. No other page is affected. - Form submissions flow through the SAME parser + storage path as mailbox replies (feedback_ingest.parse_reply_to_signals β _store_message). A new recipient_override kwarg lets web-form submissions tag the colleague directly, since the synthetic web-form sender address wouldn't match team_emails. - Digest footer now leads with a prominent "Open feedback form β" button (URL pre-filled with β¦b28e767