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

Process pending verifications when the services gets restarted or redeployed #10

Open
xmonader opened this issue Nov 7, 2024 · 1 comment
Milestone

Comments

@xmonader
Copy link
Contributor

xmonader commented Nov 7, 2024

The service must handle potential downtimes and be capable of recovering pending verifications once it is back online.

@xmonader xmonader added this to the 0.2.x milestone Nov 7, 2024
@sameh-farouk
Copy link
Member

sameh-farouk commented Nov 11, 2024

This will be handled in two ways:

  1. iDenfy Backend Retries: We’re setting up retries at intervals from the iDenfy dashboard in case our webhook receiver doesn’t return a 200 OK response. This should be sufficient for handling short downtimes (the max retry count is 10, and the max interval is 10 sec, so 100 sec max).

  2. Handling Extended Downtime: For extended downtimes that go beyond the retry window, we’ll likely need an alternative approach. One option is to parse a specific email account (configured in the iDenfy dashboard) as a backup when the webhook fails. While the data is available via email, it’s important to note that the email lacks iDenfy's signature, so we would need to retrieve the verification data from the backend to ensure authenticity. This raises the question of whether there’s an alternative way to verify the email sender without directly accessing iDenfy’s servers.

With that said, a more resilient setup (specifically for production environments) should be considered to minimize the chance of any downtime or single point of failure. see here https://github.com/threefoldtech/tf_operations/issues/2897#issuecomment-2462598241

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

No branches or pull requests

2 participants