Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Merge branch 'feat/adilsitos/eng-4966-stack-2' into feat/adilsitos/eng-4966-stack-3

adilson4ebde9403207
diff --cc backend/src/server/config/rateLimiter.ts
index c7adf4a48b,9115aa105d..9ed79324d6
--- a/backend/src/server/config/rateLimiter.ts
+++ b/backend/src/server/config/rateLimiter.ts
@@@ -75,18 -75,18 +75,28 @@@ export const ocspLimit: RateLimitOption
hook: "preValidation",
max: 600,
keyGenerator: (req) => req.realIp
+};
+
+// For callbacks an external system sends us without an Infisical identity (delegated approvals), so
+// the IP is all there is to key on. Each resource accepts a bounded number of callbacks before it is
+// closed, so one integration never needs more than this per address.
+export const externalInboundCallbackLimit: RateLimitOptions = {
+ timeWindow: 60 * 1000,
+ hook: "preValidation",
+ max: 60,
+ keyGenerator: (req) => req.realIp
};
+ // Cloud providers fetch the OIDC issuer's discovery document and JWKS from egress addresses shared by all of
+ // their tenants, so readLimit would let one org's token exchanges throttle another's. Responses are small and
+ // cacheable; this only has to stop one address flooding us.
+ export const oidcIssuerLimit: RateLimitOptions = {
+ timeWindow: 60 * 1000,
+ hook: "preValidation",
+ max: 600,
+ keyGenerator: (req) => req.realIp
+ };
+
// Gateways report load every 10s (6/min each), so 10 leaves room for tick drift and a restart
// landing in the same window without leaving headroom for a flood. Keyed by the reporting gateway
// rather than by IP, because the write limiter's IP key is shared: ~100 gateways behind one NAT