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

S3 backup #77

Merged
merged 5 commits into from
Aug 12, 2024
Merged

S3 backup #77

merged 5 commits into from
Aug 12, 2024

Conversation

InoMurko
Copy link
Contributor

@InoMurko InoMurko commented Aug 4, 2024

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

@InoMurko InoMurko changed the title backup S3 backup Aug 4, 2024
@InoMurko InoMurko marked this pull request as ready for review August 4, 2024 22:30
README.md Outdated Show resolved Hide resolved
store/router.go Outdated Show resolved Hide resolved
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 {
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

Copy link
Collaborator

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

store/router.go Show resolved Hide resolved
store/router.go Outdated Show resolved Hide resolved
store/router.go Outdated Show resolved Hide resolved
InoMurko and others added 4 commits August 5, 2024 11:17
Co-authored-by: Ethen <ethenpo@gmail.com>
Co-authored-by: Ethen <ethenpo@gmail.com>
Copy link
Collaborator

@epociask epociask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@epociask epociask merged commit 7539f3b into Layr-Labs:main Aug 12, 2024
4 of 5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants