Skip to content
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

Auth: Catch all exceptions while waiting for token validation and reject it instead of crashing #1032

Conversation

wku12
Copy link
Contributor

@wku12 wku12 commented Jan 29, 2025

Describe your changes

Now instead of letting exceptions crash whole EVerest, we catch it and reject the token if any exception was raised by token_validator and/or everest

Issue ticket number and link

#1024

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

Signed-off-by: Wojciech Kula <[email protected]>
@wku12 wku12 force-pushed the fix/auth_module_crash_when_token_validator_timesout branch from 59765d2 to 5311cf6 Compare January 29, 2025 15:28
try {
const auto result = token_validator->call_validate_token(provided_token);
validation_results.push_back(result);
// TODO: This is very broad catch, make it more narrow when the everest-framework error handling will be
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the record, this refers to EVerest/everest-framework#210

@hikinggrass hikinggrass merged commit be31e96 into EVerest:main Jan 29, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants