Two feature pages - what each is, read more, how to use it, how the numbers are calculated (off by default, the two-second cache, queued webhooks kept, 25 rows a page, the masking), how it works in WeKan and its commits - and the switch in the feature list, the Settings index, Features, Global Webhooks and Settings enforced on the server, with what is refused, what is not sent and what is not a webhook (ntfy, CalDAV, email to card). Thanks to xet7 !
5.3 KiB
Admin Panel / Problems / All webhooks
What it is
A table of every webhook of this WeKan: the webhooks of every board and every
global webhook, which board each belongs to, which user added it, and what it
sends. The URL is /admin/problems/webhooks. It answers the questions an
administrator has before turning webhooks off, after an incident, or when a
board's data is being sent somewhere nobody remembers setting up: which
webhooks are there, whose are they, and where do they send?
Tokens are never shown, only whether one is set.
Read more
- Webhook on Wikipedia.
- Data exfiltration on Wikipedia - why an administrator wants to know where data is sent.
- WeKan: Turn off all webhooks, Global Webhooks, the shared table page.
How to use it
- Sign in as a site administrator and open Admin Panel → Problems → All webhooks (below Rules Report).
- Pick the filter above the table: All webhooks (the default), On or Off - whether each webhook's own Disable This Webhook is unticked or ticked.
- Type part of a title, an address, a board title, a username or a full name in the search box and press Enter.
- Click a board title to open the board, and its board menu's Outgoing Webhooks to change the webhook. A global webhook is changed in Admin Panel / Settings / Global Webhooks.
While Turn off all webhooks is on, the table still lists every webhook - they are kept - and says above it that all webhooks are turned off.
The table. One row per webhook, newest first.
| Column | What it shows |
|---|---|
| Board | The board's title, as a link to the board; Global webhook for a global webhook; the board id when the board no longer exists. |
| Owner | The username of the user who added the webhook, with the full name below it. |
| Webhook Name | Its title. |
| URL | Where it sends, with a password in the address and the value of a token-like query parameter shown as ***. |
| Type | Outgoing Webhooks, Two-Way Webhooks or Bots, and Mattermost when it also sends direct messages. |
| Status | On or Off: the webhook's own Disable This Webhook. |
| Activities | Every activity, or the activities it is sent. |
| Authentication token | Set when it has a token; empty when not. The token itself is never sent to the browser. |
| Created at | When it was added. |
How the numbers are calculated
- 25 rows a page (
PER_PAGEin client/components/settings/webhooksReport.js); a request for more than 100 is cut to 100 (REPORT_MAX_LIMITin models/lib/webhooksSwitch.js). - The total is every webhook that matches the filter and the search.
- On / Off: Off is a webhook whose
enabledisfalse; everything else is On, as delivery decides it. - The search is plain text, never a pattern, at most 200 characters, and matches the title, the shown URL, the board title, the username and the full name, without regard to case.
- Masked in the URL: the password of
user:password@, and the value of a query parameter whose name containstoken,key,secret,sig,signature,password,passwd,pass,auth,codeoraccess. A chat service that keeps its secret in the path (Slack, Mattermost, Teams) shows the whole path: only site administrators read this report, and they could already read every webhook's address.
How it works in WeKan
The rows come from the Meteor method webhooksReportPage
(server/webhooksSwitch.js), which
answers only a site administrator (not-authorized for anybody else) and is
not a publication, so nothing of it reaches the browser's own copy of the
integrations. It reads the integrations with their token, and reduces each one
to a row in webhookReportRow (models/lib/webhooksSwitch.js): the token
becomes set or not there, on the server, before the answer is sent. The
board titles and owners are read for the matching webhooks only.
Every cell is text interpolation in webhooksReport.jade, so a webhook title or URL is shown as text and never as markup.
Related files.
| File | What it is |
|---|---|
models/lib/webhooksSwitch.js |
The row, the masking, the filter, the search and the bounds. |
server/webhooksSwitch.js |
webhooksReportPage. |
client/components/settings/webhooksReport.* |
This page. |
tests/webhooksSwitch.test.cjs |
Node tests: no token in a row, the masking, the bounds, the site-admin check. |
server/lib/tests/webhooksSwitch.tests.js |
Mocha test against the running server. |
tests/playwright/specs/webhooks-switch.e2e.js |
Browser test. |