Skip to content

Add option to omit the hook payload data from matrix events from generic hooks#1004

Merged
Half-Shot merged 11 commits intomainfrom
hs/skip-data-in-generic-message
Jun 6, 2025
Merged

Add option to omit the hook payload data from matrix events from generic hooks#1004
Half-Shot merged 11 commits intomainfrom
hs/skip-data-in-generic-message

Conversation

@Half-Shot
Copy link
Copy Markdown
Contributor

Fixes #1003

For the moment the present behavior is on by default, and only configurable either in the global config or as a state option. I don't think there is a sane way to present this in the webhooks UI without putting it in an advanced tab of some kind, which requires design work.

@Half-Shot Half-Shot requested a review from a team as a code owner December 23, 2024 17:17
@Half-Shot Half-Shot enabled auto-merge June 6, 2025 14:20
@Half-Shot Half-Shot added this pull request to the merge queue Jun 6, 2025
Merged via the queue into main with commit 9da75d9 Jun 6, 2025
19 checks passed
@Half-Shot Half-Shot deleted the hs/skip-data-in-generic-message branch June 6, 2025 14:41
Hakim-Lakrout pushed a commit to madjidDer/matrix-hookshot that referenced this pull request Jun 7, 2025
…ric hooks (matrix-org#1004)

* Add an option at the config and state level to disable hook bodies.

* add a test

* changelog

* no fake requried

* default to state, then config for data inclusion

* default to including webhook state

* allow undefined

* update new config

* update tests

* document
spantaleev added a commit to spantaleev/matrix-docker-ansible-deploy that referenced this pull request Aug 16, 2025
alexlebens pushed a commit to alexlebens/infrastructure that referenced this pull request Aug 17, 2025
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [halfshot/matrix-hookshot](https://github.com/matrix-org/matrix-hookshot) | minor | `7.0.0` -> `7.1.0` |

---

### Release Notes

<details>
<summary>matrix-org/matrix-hookshot (halfshot/matrix-hookshot)</summary>

### [`v7.1.0`](https://github.com/matrix-org/matrix-hookshot/blob/HEAD/CHANGELOG.md#710-2025-08-15)

[Compare Source](matrix-org/matrix-hookshot@7.0.0...7.1.0)

\==================

## Features

- Add an option in the config to disable hook bodies in Matrix messages. ([#&#8203;1004](matrix-org/matrix-hookshot#1004))
- Hookshot will now ping the homeserver on startup to ensure it can be reached. ([#&#8203;1062](matrix-org/matrix-hookshot#1062))
- Multiple config files (merged in order) may now be specified on the command line. ([#&#8203;1065](matrix-org/matrix-hookshot#1065))
- Support Matrix v12 rooms. ([#&#8203;1077](matrix-org/matrix-hookshot#1077))
- Add support for following room upgrades. Hookshot will now carry across all connections from the predecessor room to the next room. ([#&#8203;1079](matrix-org/matrix-hookshot#1079))

## Bugfixes

- Fix bugs in handling server names that includes colons. ([#&#8203;1068](matrix-org/matrix-hookshot#1068))

## Improved Documentation

- Instructions for how to setup a developer enviroment [are now included](https://matrix-org.github.io/matrix-hookshot/latest/dev/setup.html). This includes
  a new `docker-compose.yml` file for development. The previous unmaintained docker-compose setup for multiple workers has been removed. ([#&#8203;1065](matrix-org/matrix-hookshot#1065))

## Internal Changes

- Support Node 24, and drop support for Node 23. ([#&#8203;1059](matrix-org/matrix-hookshot#1059))
- GitHub and GitLab webhook requests should now be directed to /github and /gitlab respectively. `/` and `/oauth` is now deprecated and will be removed in a future release. ([#&#8203;1063](matrix-org/matrix-hookshot#1063))
- Log encrypted device identities for consumption by third party tooling. ([#&#8203;1066](matrix-org/matrix-hookshot#1066))
- Update matrix-appservice-bridge to 11.0.0. ([#&#8203;1083](matrix-org/matrix-hookshot#1083))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4zNS4wIiwidXBkYXRlZEluVmVyIjoiNDEuMzUuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW1hZ2UiXX0=-->

Reviewed-on: https://gitea.alexlebens.dev/alexlebens/infrastructure/pulls/1237
Co-authored-by: Renovate Bot <renovate-bot@alexlebens.net>
Co-committed-by: Renovate Bot <renovate-bot@alexlebens.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to not include webhook_data to reduce message size

1 participant