Skip to content

add a loopway web hook type #52

Closed

Description

@mcwhittemore

this type lets bots send messages to inboxes so that they can automate across each other.

Activity

  1. mcwhittemore commented on Oct 8, 2026

    @mcwhittemore
    CollaboratorAuthor

    A few questions before I build this. Each one has a proposed default, so a quick 👍 or a correction is enough.

    1. 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.
    2. 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.
    3. 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.*?
    4. 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.
  2. mcwhittemore commented on Oct 8, 2026

    @mcwhittemore
    CollaboratorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions