Files
mattermost/api/v4/source
Scott BishelandMattermost Build a6060f5d05 MM-68754: Add silent post delivery for bots and integrations (#36771)
* MM-68754: Add silent post delivery for bots and integrations

  Bot, OAuth, incoming webhook, and plugin posts can request silent
  delivery via ?silent=true (REST), silent:true (webhook payload), or
  silent_notification:true (plugin Props). Silent posts are visible in
  the channel but produce no notifications, unread, or New Messages
  line. force_notification overrides silent. Non-integration senders
  requesting silent receive HTTP 403.

  Also tightens SanitizeProps to strip from_webhook, from_bot,
  from_oauth_app, from_plugin, force_notification, and
  silent_notification from client input. These props are now set
  server-side based on session and entry-point flags, preventing
  identity spoofing. Legitimate callers see no behavior change since
  the server already controlled these props at the response shape;
  the hardening only affects callers attempting to forge them.

* Drop redundant prop-bag silent_notification path from webhooks

* Address CodeRabbit feedback + rebase test fixup

* Update tests to use CreatePostFlags.FromIncomingWebhook instead of forging from_webhook prop

* update api documentation

* test fixes

* added additional tests

* review fixes, update comments

* code review changes, fix test

* fix formatting issues

* fix lint errors

* avoid backward compatibility issues, by no longer stripping the  Post properties.
will add them back in v12 when breaking changes are allowed

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2026-07-09 17:02:22 -06:00
..
2026-01-26 17:05:34 -05:00
2026-05-11 12:29:25 +02:00
2023-08-03 12:45:10 -03:00
2026-05-11 12:29:25 +02:00
2026-05-11 12:29:25 +02:00
2023-06-27 11:10:13 -03:00
2023-06-27 11:10:13 -03:00
2026-05-11 12:29:25 +02:00
2026-05-11 12:29:25 +02:00
2026-05-11 12:29:25 +02:00
2026-05-11 12:29:25 +02:00
2024-04-18 11:50:30 +05:30
2026-05-11 12:29:25 +02:00
2023-06-27 11:10:13 -03:00
2026-05-11 12:29:25 +02:00
2023-06-27 11:10:13 -03:00
2024-12-12 12:19:09 +01:00
2023-06-27 11:10:13 -03:00
2026-05-11 12:29:25 +02:00
2023-06-27 11:10:13 -03:00
2026-05-11 12:29:25 +02:00
2026-05-11 12:29:25 +02:00