Enforce tenant module entitlements beyond requests
This commit is contained in:
@@ -198,6 +198,18 @@ class Settings(BaseSettings):
|
||||
le=100_000,
|
||||
alias="AUTH_PRINCIPAL_CACHE_MAX_ENTRIES",
|
||||
)
|
||||
tenant_module_entitlement_cache_ttl_seconds: int = Field(
|
||||
default=5,
|
||||
ge=0,
|
||||
le=300,
|
||||
alias="TENANT_MODULE_ENTITLEMENT_CACHE_TTL_SECONDS",
|
||||
)
|
||||
tenant_module_entitlement_cache_max_entries: int = Field(
|
||||
default=2048,
|
||||
ge=1,
|
||||
le=100_000,
|
||||
alias="TENANT_MODULE_ENTITLEMENT_CACHE_MAX_ENTRIES",
|
||||
)
|
||||
auth_login_throttle_enabled: bool = Field(default=True, alias="AUTH_LOGIN_THROTTLE_ENABLED")
|
||||
auth_login_throttle_identity_limit: int = Field(
|
||||
default=10,
|
||||
|
||||
Reference in New Issue
Block a user