Skip to content

[docs-infra] Rate-limit the documentation feedback endpoint - #49115

Draft
Janpot wants to merge 1 commit into
mui:masterfrom
Janpot:rate-limit-feedback-endpoint
Draft

[docs-infra] Rate-limit the documentation feedback endpoint#49115
Janpot wants to merge 1 commit into
mui:masterfrom
Janpot:rate-limit-feedback-endpoint

Conversation

@Janpot

@Janpot Janpot commented Sep 8, 2026

Copy link
Copy Markdown
Member

The docs feedback function is public and unauthenticated — any POST with callback_id: "send_feedback" makes the bot post to an internal Slack channel, with no per-client limit. This adds Netlify's built-in rate limiting via the function config (enforced by the platform before the handler runs, so throttled requests never reach Slack or spend a function invocation).

Set to 6 requests/minute per IP — enough for genuine feedback while cutting off automated spam.

@code-infra-dashboard

code-infra-dashboard Bot commented Sep 8, 2026

Copy link
Copy Markdown

Deploy preview

https://deploy-preview-49115--material-ui.netlify.app/
QR code for https://deploy-preview-49115--material-ui.netlify.app/

Bundle size

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/private-theming 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

The feedback function is public and unauthenticated: any POST with
callback_id "send_feedback" makes the bot post to an internal Slack
channel. Add Netlify's built-in rate limiting (6 requests/minute per IP)
so a single client can't flood the channel with posts. The platform
enforces it before the handler runs.
@Janpot
Janpot force-pushed the rate-limit-feedback-endpoint branch from 66ec889 to 707a35d Compare September 8, 2026 15:08
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.

1 participant