Hi Tyk Community,
I need configure Tyk as service gateway. But without redis or any other DS. Most of question already closed. On the botom you can find my test API config file.
But still have some open question. I hope that you will be able provide me some advices.
- JWKS Caching. Does Tyk cache JWKS without redis by default. if not, is it possible to configure this caching without redis? At this moment looks like I got the following error every time when call Tyk
time="Dec 13 11:22:01" level=error msg="cannot set key in pollerCacheKey" error="storage: Redis is either down or was not configured"
- Rate limiting: I read about DRL and Redis rate limiter: Rate Limiting in Tyk
Also found how to configure it on API level:Rate Limiting in Tyk
it looks like enough add in the API config like:
"global_rate_limit": {
"rate": 5,
"per": 60
}
but again: I got errors like:
time="Dec 13 13:08:53" level=error msg="Can't update session" api_id=1 api_name=bm-admin error="storage: Redis is either down or was not configured" org_id=1
does it try to use Redis rate limiter or DRL required Redis? Is it possible to configure without redis
api json config:
{
"name": "test-app",
"api_id": "1",
"org_id": "1",
"definition": {
"location": "header",
"key": "version"
},
"version_data": {
"not_versioned": true,
"versions": {
"Default": {
"name": "Default",
"expires": "3000-01-02 15:04",
"use_extended_paths": true,
"extended_paths": {
"ignored": [],
"white_list": [],
"black_list": [],
"circuit_breakers": [
{
"path": "/services",
"method": "POST",
"threshold_percent": 0.5,
"samples": 5,
"return_to_service_after": 60,
"disable_half_open_state": false
}
]
},
"global_headers": {
"x-user": "$tyk_context.jwt_claims_sub"
}
}
}
},
"enable_jwt": true,
"jwt_signing_method": "rsa",
"jwt_source": "https://dev-*******.us.auth0.com/.well-known/jwks.json",
"jwt_identity_base_field": "sub",
"jwt_client_base_field": "",
"jwt_policy_field_name": "pol",
"jwt_default_policies": [
"2"
],
"proxy": {
"listen_path": "/gateway/",
"target_url": "env://TARGETURL",
"strip_listen_path": true
},
"enable_batch_request_support": true,
"active": true,
"enable_context_vars": true,
"disable_rate_limit": false,
"global_rate_limit": {
"rate": 5,
"per": 60
}
}