generated from pagopa/terraform-infrastructure-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: CHK-3498 remove recaptcha post sessions (#2540)
* remove recaptcha. Set first implementation of rate limit by key * remove recaptcha. Set first implementation of rate limit * fix rate limit params * remove recaptcha from post sessions param * fix pre-commit --------- Co-authored-by: Gianluca Ciuffa <[email protected]>
- Loading branch information
1 parent
c1c8aa2
commit 3789234
Showing
6 changed files
with
37 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
src/domains/ecommerce-app/api/ecommerce-checkout/v1/_payment_methods_policy.xml.tpl
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
src/domains/ecommerce-app/api/ecommerce-checkout/v1/_post_sessions.xml.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<policies> | ||
<inbound> | ||
<rate-limit-by-key | ||
calls="150" | ||
renewal-period="10" | ||
counter-key="@(context.Request.Headers.GetValueOrDefault("X-Forwarded-For"))" | ||
/> | ||
<base /> | ||
</inbound> | ||
<outbound> | ||
<base /> | ||
</outbound> | ||
<backend> | ||
<base /> | ||
</backend> | ||
<on-error> | ||
<base /> | ||
</on-error> | ||
</policies> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters