pangolin/server
vaibhavdabas16 3bea14c2b6 fix(log-streaming): allow single data fields in HTTP body templates
Event-streaming body templates only expanded {{data}} as a raw JSON
object, so a single field could not be put inside a quoted string.
Endpoints such as Discord webhooks need plain strings in places like
embed field values, and quoting {{data}} produced invalid JSON that was
then sent as one JSON string, which Discord rejects.

Templates now also accept {{<field>}} for any top-level field of the
event's data (for example {{orgId}} or {{path}}), as alert-rule
webhooks already do. Values are JSON-escaped so they are safe inside
quotes; null renders as empty text. {{event}}, {{timestamp}} and {{data}}
keep their meaning, including for request logs, whose rows have their
own timestamp column. Placeholders are expanded in one pass so values
are never expanded again, and unknown placeholders are left as-is.

The destination form explains the placeholders.

Fixes #4129
2026-11-30 10:32:09 +05:30
..
auth Merge branch '1-27' into dev 2026-11-17 17:47:01 -05:00
db Update to bigserial 2026-11-26 23:47:08 -05:00
emails Handle support messages for self hosted licenses 2026-11-13 14:43:14 -05:00
lib Leave local sites on remote exit nodes alone 2026-11-25 21:17:58 -05:00
license License machines 2026-10-20 15:29:37 -04:00
middlewares Only trust cached org membership that belongs to the caller 2026-11-25 18:38:16 -05:00
private fix(log-streaming): allow single data fields in HTTP body templates 2026-11-30 10:32:09 +05:30
routers Stop local sites attaching to another org's remote exit node 2026-11-25 21:20:03 -05:00
setup Leave local sites on remote exit nodes alone 2026-11-25 21:17:58 -05:00
types
aiGatewayServer.ts Only trust cached org membership that belongs to the caller 2026-11-25 18:38:16 -05:00
apiServer.ts Only trust cached org membership that belongs to the caller 2026-11-25 18:38:16 -05:00
certificates.ts
cleanup.ts
dns.ts
extendZod.ts
index.ts add redirect routes to integration api 2026-10-02 17:11:06 -04:00
integrationApiServer.ts Only trust cached org membership that belongs to the caller 2026-11-25 18:38:16 -05:00
internalServer.ts Only trust cached org membership that belongs to the caller 2026-11-25 18:38:16 -05:00
logger.ts
nextServer.ts Fix #4002 2026-10-26 10:13:50 -04:00
openApi.ts Add resource session tracking page 2026-11-02 14:59:01 -05:00
startSchedulers.ts