New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix routes resolvers circular redirections - infinite loop #4079
Conversation
Signed-off-by: Federico Rodriguez <federico.rodriguez@wazuh.com>
Testing in progress |
Test OK - On Kibana 7.10.2 with Xpack Security |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review: passed
Test: passed
Note: a changelog entry is missing.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test: ✔️
CR: ✔️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR OK ✅
TEST OK ✅
Description
This PR fixes circular redirections in the router resolvers when a service failure, such as session expired or service unavailable, causes an exception and the app tries to recover itself by redirecting to health-check and/or settings to setup an API or show a blank-screen to display an error message.
This has been tested with 3 cases:
wazuh.yml
kibana.yml
to make the service unavailable once the app is already runningThis closes #4028 and #3929