You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A few questions before I build this. Each one has a proposed default, so a quick 👍 or a correction is enough.
Payload shape. Proposed: the bot POSTs a structured-mode CloudEvent ({id, source, type, subject?, time?, data}) to /webhooks/<inbox>. Loopway validates it and stores it mostly as-is, since the bot already knows its own id, type and subject. The alternative is that bots post any JSON and loopway fills in the CloudEvent fields, which is less work for the sender but means a header or field convention for type.
Auth. Proposed: loopway generates the secret (like the GitHub source, secret.from: "loopway"), and the bot signs the raw body with HMAC-SHA256 in an X-Loopway-Signature: sha256=<hex> header. A simpler option is Authorization: Bearer <secret>. It's easier for scripts and curl, but the secret goes over the wire on every request.
Event types. Proposed: pass type through unchanged (e.g. com.example.build.finished), and apply the inbox's events filter to it, with ["*"] as the default. Or should loopway force a prefix such as dev.loopway.<type> so bot events can't pose as com.github.*?
Sending side. Is this just the receiving source type, or do you also want a CLI command such as loopway events send <inbox> --type … --data … that signs and posts? My default is source-only, with a curl example in the setup hints.
Activity
mcwhittemore commentedon Oct 8, 2026
A few questions before I build this. Each one has a proposed default, so a quick 👍 or a correction is enough.
{id, source, type, subject?, time?, data}) to/webhooks/<inbox>. Loopway validates it and stores it mostly as-is, since the bot already knows its own id, type and subject. The alternative is that bots post any JSON and loopway fills in the CloudEvent fields, which is less work for the sender but means a header or field convention fortype.secret.from: "loopway"), and the bot signs the raw body with HMAC-SHA256 in anX-Loopway-Signature: sha256=<hex>header. A simpler option isAuthorization: Bearer <secret>. It's easier for scripts and curl, but the secret goes over the wire on every request.typethrough unchanged (e.g.com.example.build.finished), and apply the inbox'seventsfilter to it, with["*"]as the default. Or should loopway force a prefix such asdev.loopway.<type>so bot events can't pose ascom.github.*?loopway events send <inbox> --type … --data …that signs and posts? My default is source-only, with a curl example in the setup hints.mcwhittemore commentedon Oct 8, 2026
let the bots use their own api tokens rather than having a signed secret since its us talking to ourselves and we can trust things.