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

check s3 object exists before generating signed url #3105

Merged
merged 2 commits into from Apr 7, 2022
Merged

Conversation

shreddedbacon
Copy link
Member

Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated
  • PR title is ready for changelog and subsystem label(s) applied

As described in #3096, if a bucket has a retention period on it, there is a possibility that a file could be removed from the restore bucket before the backup is purged, resulting in an unavailable file when attempting to download it.

What will happen now is when a download is attempted, it will first check that the file exists in s3 before returning the signed url, it will generate an error if the file no longer exists and remove the restore reference from the database allowing the user to trigger a fresh retrieval

Closing issues

closes #3096

@shreddedbacon shreddedbacon added the on-hold on-hold pending other tasks label Apr 6, 2022
@shreddedbacon shreddedbacon changed the title checked s3 object exists before generating signed url check s3 object exists before generating signed url Apr 6, 2022
@shreddedbacon shreddedbacon removed the on-hold on-hold pending other tasks label Apr 6, 2022
@tobybellwood tobybellwood merged commit 7c9d12c into main Apr 7, 2022
@tobybellwood tobybellwood deleted the check-restore branch April 7, 2022 07:01
@shreddedbacon shreddedbacon mentioned this pull request Apr 13, 2022
3 tasks
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.

Retention period on restored files
2 participants