Skip to main content

Security Modes

FastGateway offers two mutually exclusive security modes for protecting routes: General and Client mode.

The Security tab of the route builder — pick General or Client-Based mode, then configure CORS, IP allowlisting, API keys, JWT, OIDC, and external authorization

Mode Comparison​

FeatureGeneral ModeClient Mode
IP FilteringRoute-level allowlistPer-client IPs
API KeysRoute-level keysPer-client keys
JWT ValidationRoute-levelPer-client (via attachments)
mTLSNot supportedPer-client (via attachments)
OIDC AuthenticationSupportedNot supported
GranularityAll consumers same rulesPer-consumer rules

General Mode​

Applies security policies at the route level:

Best for: Public APIs, internal services with uniform access requirements.

Client Mode​

Applies security policies per client attachment:

Best for: Partner APIs, multi-tenant platforms, differentiated access.

Important Notes​

  • Modes are mutually exclusive per route
  • Cannot mix General and Client security on the same route
  • Route-level JWT is only available in General mode; in Client mode, JWT and mTLS are configured per client via client attachments
  • OIDC is only available in General mode