feat: add durable auth principal cache revisions
This commit is contained in:
@@ -88,6 +88,28 @@ class Settings(BaseSettings):
|
||||
ge=0,
|
||||
alias="AUTH_ACTIVITY_TOUCH_INTERVAL_SECONDS",
|
||||
)
|
||||
auth_principal_cache_enabled: bool = Field(
|
||||
default=True,
|
||||
alias="AUTH_PRINCIPAL_CACHE_ENABLED",
|
||||
)
|
||||
auth_principal_cache_session_ttl_seconds: int = Field(
|
||||
default=30,
|
||||
ge=0,
|
||||
le=300,
|
||||
alias="AUTH_PRINCIPAL_CACHE_SESSION_TTL_SECONDS",
|
||||
)
|
||||
auth_principal_cache_api_key_ttl_seconds: int = Field(
|
||||
default=10,
|
||||
ge=0,
|
||||
le=300,
|
||||
alias="AUTH_PRINCIPAL_CACHE_API_KEY_TTL_SECONDS",
|
||||
)
|
||||
auth_principal_cache_max_entries: int = Field(
|
||||
default=2048,
|
||||
ge=1,
|
||||
le=100_000,
|
||||
alias="AUTH_PRINCIPAL_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