mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 12:18:43 +09:00
Enhance API rate limiting, validation, and subscription features (#3459)
* Validate redirect paths and targets * Sanitize guest client data and misc cleanups * Implement API rate limiting and pruning * Bump `last_patch` setting to 54 * Add tests for `shouldUseTokenLogin` logic Add tests to cover logic added in #3451. * Add order/renewal line config for domain pricing Resolves #2793. * Add PayPalEmail adapter subscription test * Add width/height styling for textarea fields Resolves #2448. * Send invoice-created email on approve Resolves #3012. * Enforce cumulative cart stock and stockSale Resolves #3130. * Centralize subscription period retrieval Resolves #1035. * Support wildcard staff permissions (default.all) Resolves #2376. * Enable quantity selection and enforce stock max Resolves #2573. * Extend order expiry on first paid invoice Resolves #2864. * Rate-limit request prefix; invoice & promo fixes * Update src/modules/Redirect/templates/admin/mod_redirect_settings.html.twig Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/modules/Api/Service.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/modules/Client/Controller/Client.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/modules/Cron/Service.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Fix quantity not passed to getOrderLineConfig in createOrder Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/669f845c-50c4-4f7e-95cd-f44de162ad72 Co-authored-by: admdly <2807620+admdly@users.noreply.github.com> * Simplify quantity injection into getOrderLineConfig call Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/669f845c-50c4-4f7e-95cd-f44de162ad72 Co-authored-by: admdly <2807620+admdly@users.noreply.github.com> * Fix rate limit prefix isolation, whitelist headers, and staff controller prefix Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/11f3fd58-bb44-46a5-a6cf-0992b038f4a7 Co-authored-by: admdly <2807620+admdly@users.noreply.github.com> * Enforce promo usage limit and add test --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
This commit is contained in:
47 files changed
+1940
-291
No files matched your search
@@ -159,7 +159,8 @@ CREATE TABLE `api_request` (
|
||||
`ip` varchar(45) DEFAULT NULL,
|
||||
`request` text,
|
||||
`created_at` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `api_request_ip_created` (`ip`, `created_at`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
||||
Reference in new issue
Block a user