AttestedCertificateResolver should backoff when re-trying to create a new attested certificate

Open
#21 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust
Domain
security

Research direction

Start with attested_tls::AttestedCertifcateResolver and trace the certificate-renewal retry path. Implement an exponential retry delay with a defined maximum, then verify that repeated renewal failures increase the wait and that the delay stops growing at the cap. The payload names no specific files or tests, so locate the relevant retry logic and existing renewal tests first.

Written by the indexing model from the issue text.

Description

attested_tls::AttestedCertifcateResolver periodically generates a new attested certificate - that is, a new attestation and a TLS certificate with the attestation embedded as an extension.

If the renewal fails for whatever reason, it will wait and then re-try periodically. This is currently configured to 30 seconds wait before retrying.

We could introduce an exponential backoff on the retry delay, truncated to some maximum duration.

For context, the most likely thing to fail during certificate renewal is the attestation generation. The other error paths are related to signing or processing the certificate and keypair, and unlikely to fail unless something is very wrong.

Dominant language
Rust
Stars
6
Forks
3
Avg merge
4d 5h
Merged PRs (30d)
7

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flashbots/attested-tls

All issues in flashbots/attested-tls

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.