-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
No response
Describe the bug
Hey guys,
we are using hydra in our embedded devices as an oauth2-server for machine client access. So far everything worked like a charm and we didn't have any issues.
After updating to version 2.3.0 we are facing issues with high cpu und ram loads. This only happens as soon as the time of the system is increased to a date in the future. For example I set the timestamp to the 10.10.2027. And resource consumption increases.
When I set the timestamp even more in the future, the resources are exhausted for a longer time, so that the kernel kills the process. It seems like some cleanup is happening during that time.
Could this be related to these lines?
Line 828 in ee8c339
| fosite.AccessToken: time.Now().Add(time.Hour), |
Is this a known issue? In 2.2.0 this issue didn't happen.
My tests could not pinpoint the cause.
Reproducing the bug
Steps to reproduce.
- Start hydra on arm32 arm64 architecture
- increase the timestamp to a date in the future
- see cpu and ram sky rocket
Relevant log output
Unfortunately no logs from hydraRelevant configuration
Version
2.3.0
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Binary
Additional Context
No response