Skip to content

Conversation

@samhotep
Copy link
Member

@samhotep samhotep commented Apr 24, 2025

Done

  • Added rate limiting config for the /marketo/submit endpoint.
    • Limited to 1req/s
    • Allow a queue of 20 requests before returning 429

QA

  • Open the demo
  • Attempt to hit the rate limit using the handy hey tool by running
./hey_linux_amd64 -m POST -H "Content-Type: application/x-www-form-urlencoded" -d "formid=testratelimit&email=email@example.com&company=canonical" https://ubuntu-com-15035.demos.haus/marketo/submit
  • Once QA is done, I'll add the same limit to staging and production nginx configs as well

Issue / Card

Fixes WD-15861

Help

QA steps - Commit guidelines

@webteam-app
Copy link

@petesfrench petesfrench self-requested a review May 26, 2025 11:09
@Onibenjo
Copy link
Contributor

Hey @samhotep @petesfrench

What's the status on this?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants