1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-27 11:02:16 +01:00
unleash.unleash/src/lib/middleware
Gastón Fournier 126b78896e
feat: make edge use token's cache (#6893)
## About the changes
This PR removes the feature flag `queryMissingTokens` that was fully
rolled out.
It introduces a new way of checking edgeValidTokens controlled by the
flag `checkEdgeValidTokensFromCache` that relies in the cached data but
hits the DB if needed.

The assumption is that most of the times edge will find tokens in the
cache, except for a few cases in which a new token is queried. From all
tokens we expect at most one to hit the DB and in this case querying a
single token should be better than querying all the tokens.
2024-04-19 15:40:15 +02:00
..
api-token-middleware.test.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
api-token-middleware.ts feat: make edge use token's cache (#6893) 2024-04-19 15:40:15 +02:00
audit-middleware.test.ts feat: added IAuditUser to request with middleware (#6857) 2024-04-18 10:13:40 +02:00
audit-middleware.ts feat: use audit info in events (#6872) 2024-04-18 16:32:35 +02:00
authorization-middleware.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
bearer-token-middleware.test.ts chore: fix bearer token middleware signal endpoint logic (#6767) 2024-04-03 11:29:09 +01:00
bearer-token-middleware.ts chore: fix bearer token middleware signal endpoint logic (#6767) 2024-04-03 11:29:09 +01:00
catch-all-error-handler.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
conditional-middleware.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
content_type_checker.test.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
content_type_checker.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
cors-origin-middleware.test.ts feat: use audit info in events (#6872) 2024-04-18 16:32:35 +02:00
cors-origin-middleware.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
demo-authentication.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
id-number-middleware.test.ts feat: validate that id is number or we throw our our source code (#6860) 2024-04-16 15:48:57 +03:00
id-number-middleware.ts feat: validate that id is number or we throw our our source code (#6860) 2024-04-16 15:48:57 +03:00
index.ts feat: added IAuditUser to request with middleware (#6857) 2024-04-18 10:13:40 +02:00
no-authentication.test.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
no-authentication.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
oss-authentication.test.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
oss-authentication.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
pat-middleware.test.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
pat-middleware.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
rbac-middleware.test.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
rbac-middleware.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
request-logger.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
response-time-metrics.test.ts chore: remove response time metrics fix (#6779) 2024-04-10 12:34:05 +02:00
response-time-metrics.ts chore: remove response time metrics fix (#6779) 2024-04-10 12:34:05 +02:00
secure-headers.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
session-db.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
unless-middleware.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00