Closed schreddies closed 3 years ago
I've found strange that in the mutator_hydrator_test.go file there is no test for cache as well: https://github.com/ory/oathkeeper/blob/master/pipeline/mutate/mutator_hydrator_test.go
I think that the enabled:true
in config makes all of the difference - will close if test will prove it!
Describe the bug
The bug is that, with properly setup for cache in hydrator, the amount of calls is the same as without caching. I.e. Caching with value of ttl of 60 sek, should be able to cache hydrator response to same user/request for this time. Introduction of this feature: https://github.com/ory/oathkeeper/issues/417
Reproducing the bug
Steps to reproduce the behavior:
Oathkeeper config:
Oathkeeper rules:
Using
wkr
software for performance testingas result, the logs in hydrator is the same number as the number of calls (around 10k) from client (wkr) - the responses are the same (static response) Expected behavior
Cached hydrator responses should be cached as ttl.
Environment
-version: v0.38.10-beta.2 -environment: docker
Additional context
Add any other context about the problem here.