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

Backends: fix corner case error in public key retrieval #1068

Conversation

Annopaolo
Copy link
Collaborator

What this PR does / why we need it:

When connection to the database is sometimes unstable, it was possible that failure to retrieve the public key made
users unable to use APIs - as backend services crashed while checking authorization.
This seemed to be a problem with CQEx, so replace it with the Xandra driver.

This change applies to AppEngine, Realm Management and Pairing.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?
  • Yes
  • No

Additional documentation e.g. usage docs, diagrams, etc.:


When connection to the database is sometimes unstable, it
was possible that failure to retrieve the public key made
users unable to use Pairing API - as Pairing crashed while
checking authorization. This seemed to be a problem with CQEx.
Replace it with the Xandra driver.

Signed-off-by: Arnaldo Cesco <arnaldo.cesco@secomind.com>
Copy link

codecov bot commented Feb 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.38%. Comparing base (b39e088) to head (7386077).
Report is 4 commits behind head on release-1.2.

Additional details and impacted files
@@               Coverage Diff               @@
##           release-1.2    #1068      +/-   ##
===============================================
- Coverage        68.43%   68.38%   -0.06%     
===============================================
  Files              282      282              
  Lines             7448     7483      +35     
===============================================
+ Hits              5097     5117      +20     
- Misses            2351     2366      +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Same as previous commit, but in Realm Management.

Signed-off-by: Arnaldo Cesco <arnaldo.cesco@secomind.com>
Same as the two previous commit, but in AppEngine.

Signed-off-by: Arnaldo Cesco <arnaldo.cesco@secomind.com>
@Annopaolo Annopaolo force-pushed the reliable-public-key-retrieval branch from bf1feed to 7386077 Compare February 6, 2025 16:56
@Annopaolo Annopaolo added database This issue or pull request is about database (e.g. schema change, queries, support, etc...) app:appengine_api This issue or pull request is about astarte_appengine_api application app:pairing This issue or pull request is about astarte_pairing application app:realm_management This issue or pull request is about astarte_realm_management application internals This issue or pull request is about implementation details labels Feb 6, 2025
@Annopaolo Annopaolo marked this pull request as ready for review February 6, 2025 17:08
@matt-mazzucato matt-mazzucato merged commit fd67c54 into astarte-platform:release-1.2 Feb 6, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app:appengine_api This issue or pull request is about astarte_appengine_api application app:pairing This issue or pull request is about astarte_pairing application app:realm_management This issue or pull request is about astarte_realm_management application database This issue or pull request is about database (e.g. schema change, queries, support, etc...) internals This issue or pull request is about implementation details
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants