-
Notifications
You must be signed in to change notification settings - Fork 71
Add resilient_client for exponential backoff #1048
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
Add resilient_client for exponential backoff #1048
Conversation
be3aa9a to
8c12871
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
8c12871 to
82ed57d
Compare
Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
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.
LGTM! I just put a single note.
Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
To get a complete predictable way of working, jitter will be disabled by default Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
This pull request introduces a resilient HTTP client with an exponential backoff strategy to enhance the robustness of the Keylime push model agent. This new client is then integrated into the push-model agent's attestation process, making it more tolerant of transient network failures and temporary server-side errors.
The first commit adds a new, reusable module named resilient_client.
https://src.fedoraproject.org/rpms/rust-retry-policies
https://src.fedoraproject.org/rpms/rust-reqwest-middleware
https://src.fedoraproject.org/rpms/rust-reqwest-retry
The second commit applies the new ResilientClient to the agent's attestation workflow.