-
Notifications
You must be signed in to change notification settings - Fork 32
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
S3 backup #77
S3 backup #77
Conversation
store/router.go
Outdated
|
||
r.log.Debug("Retrieving data from eigenda") | ||
return r.eigenda.Get(ctx, key) | ||
if r.s3 != nil && r.s3.cfg.Backup { |
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.
what's the reasoning for first reading from S3 before eigenda? Shouldn't the idea be that we rollover to S3 if and only if we get an error when trying to read from the network?
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.
yeah thinking about this - since the blob retrieved from S3 can be verified (certified) would this elevate blob reads from the public node? Might be a good feature if it's not sacrificing security.
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.
if not mistaken this feature is provided to ensure resiliency for blob reads in the event that it can't be read from DA.
CC - @bxue-l2
Co-authored-by: Ethen <ethenpo@gmail.com>
Co-authored-by: Ethen <ethenpo@gmail.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!
Pull Request Template
Fixes Issue
Fixes #
Changes proposed
This add the ability to sync blobs to S3 at the same time as Eigenda disbursement is enabled.
On retrieval the blob is fetched from S3, certificate extracted from the KEY and the blob gets verified against the cert.
Screenshots (Optional)
Note to reviewers