Alert webhooks POST a raw unredacted transcript snippet to a third-party Discord channel #85
Closed
opened 2026-08-28 02:52:22 -04:00 by logan
·
1 comment
No Branch/Tag Specified
Labels
Clear labels
area/ai-pipeline
area/auth
area/billing
area/correlation
area/discord
area/frontend
area/governance
area/growth
area/infra-deploy
area/legal
area/map
area/mqtt
area/node-ota
area/osint
area/recording-audio
area/sdr-radio
area/transcription
board
board:agenda
minutes:draft
minutes:final
role:ceo
role:cfo
role:cio
role:ciso
role:cmo
role:coo
role:cto
Scene/entity extraction, summarizer, AI providers, embeddings
AuthN/Z, roles, tenancy/org scoping, API keys, credentials
Plans, entitlements, AI spend accounting and caps
Incident correlation, linking, lifecycle, severity, corr_debug
Discord bot, radio bots, voice streams, bot tokens, webhooks
Web UI: Next.js app and the edge-node local dashboard
Board process, minutes, unattended runner, agent tooling
Go-to-market, outreach, cold email, discovery conversations
CI/CD, VM, registry, Firestore rules/indexes deploy, Terraform/Caddy
ToS, retention, licences/DAAs, CAN-SPAM, E&O, name suppression
Live map: pins, paths, tiles, legend, geocoding
Node-C2 MQTT, checkins, commands, node sweeper, dynsec
Node install, enrollment, OTA updater, image skew
External feeds: cameras, 511, ADS-B, AIS, outages, and their licences
Call capture, boundaries, PulseAudio, ring buffer, trimming, attribution
OP25 decode, SDR hardware/tuning, conventional, second SDR, mesh radio
STT, transcript correction, place verification, name accuracy
Board process: minutes and board-filed items
Needs board scoping at the next sitting; CEO removes the label once scoped
One exec pre-read, closed by CEO
CEO ruling; open until enacted
Filed by the CEO
Filed by the CFO
Filed by the CIO
Filed by the CISO
Filed by the CMO
Filed by the COO
Filed by the CTO
kind
behavior-bug
Wrong product behavior; the instrument reads it correctly
kind
measurement-bug
Corrupts the recording/instrument (debug data, evals, health checks), not behavior
priority
p0
Drop everything: prod broken, live exposure, or owner-ruled P0
priority
p1
Next up: blocks a gate, a customer, or core incident quality
priority
p2
Normal: real defect or planned work, schedule in turn
priority
p3
Low: minor, cosmetic, or someday
status
blocked
Waiting on an external party, spend, or another issue
status
in-progress
Branch or PR open against it
status
needs-decision
Waiting on an owner or board ruling before work
status
needs-info
Root cause or repro unknown; needs a reading first
type
bug
Something built is wrong: code, data, or a measurement
type
chore
Maintenance, refactor, tests, pinning, cleanup: no user-visible change
type
decision
A ruling to make or record: board minutes, owner calls, legal reviews
type
docs
Docs, runbooks, CLAUDE.md, skills, SOPs
type
feature
New capability or an extension of an existing one
type
security
Security, privacy, credential or tenant-isolation exposure
type
tracking
Tracker, checklist, initiative or punch-list spanning several changes
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: logan/server-26#85
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Found during the Gate B3 scoping pass (#43), unattended run 2026-08-28. Searched open and closed first: #43 covers the redaction design and #48 covers entity-name accuracy; neither describes this surface and neither ships before 2026-09-30. This is the live leg, and it is leaving the building today.
What happens
drb-c2-core/app/internal/alerter.pywrites a raw 200-charactertranscript_snippetinto thealert_eventsdocument and POSTs the same text to the customer's own Discord webhook. No redaction of any kind is applied.Board minutes #42 ratified that person names are suppressed on every surface until E&O is bound. A webhook POST to a third-party service is the least recoverable surface we have: once it is in a Discord channel we do not control it, cannot unsend it, and cannot audit who read it.
Why this is separate from #43
#43 is a 2026-09-30 deliverable that needs a per-talkgroup flag, a new data model, and a redactor built from scratch (the extraction prompt carries no person-name field — see the scoping comment on #43). That is 6-10 engineering-days.
This one does not need any of it. The snippet is a convenience field. It can be truncated to nothing, or dropped from the webhook payload entirely, without waiting for the redactor to exist. Alerting keeps working; the alert says an incident matched and links to it.
Why it is not urgent-in-practice today, and why that will change
Today the only consumers are the owner and the comped friends-and-family tier, so the blast radius is people who already have full access. It becomes a real exposure the moment the first outside operator is given alerting — which is the sellable path, so it is on the critical line to revenue rather than off to one side.
It also interacts with the open owner ruling on #43: whether comped access to unredacted names is paused today or knowingly left in breach until 2026-09-30. If the answer is "paused", this is in scope of that pause and is the first thing that has to change.
What done looks like
alert_eventseither stores no raw snippet or stores it in a field the Firestore rules do not expose to browser reads.Refs #43, #48, #42, #45.
Fixed and pushed — commit
0635de8, unattended run 2026-08-29.Raw transcript text now requires two independent gates, both closed by default:
The operator switch is not redundant with the org flag. The frontend reads and writes Firestore directly from the browser, so consent alone would have let an org owner opt themselves into receiving person names lifted from live public-safety traffic. Capability is the operator's to grant; consent is the org's to give. Both, or nothing.
The gate fails closed on a Firestore read error and on a call with no org — a pre-tenancy node that has not been through the backfill. A less informative alert is cheap; an unrecallable disclosure to a third party is not.
Alerting itself is unchanged. The webhook still fires and still carries the rule name, the talkgroup and the matched keywords — only the transcript text is withheld. Both surfaces named in this issue are covered: the outbound POST and the
alert_eventsdocument, which the browser reads directly.Seven tests assert that a person name present in a sample transcript appears in neither the outbound payload nor the Firestore write, across every combination of the two gates, plus the two fail-closed paths. Full suite: 273 passed.
This did not wait on #43. As this issue argued, the snippet was a convenience field and needed no redactor in order to be withheld — so the live leg is closed today rather than on 2026-09-30.
Still open and unaffected: #43 (the Gate B3 redactor proper) and #48 (entity-name accuracy). The owner ruling referenced here — whether comped access to unredacted names is paused today or knowingly left in breach until 2026-09-30 — is still outstanding on #43. This change removes the third-party leg of that question but not the question.