Skip to content

feat(ops): verify restorable database backups - #1256

Open
Doctorofsend wants to merge 1 commit into
accesslayerorg:mainfrom
Doctorofsend:fix/issue-1227-backup-verify
Open

Doctorofsend wants to merge 1 commit into
accesslayerorg:mainfrom
Doctorofsend:fix/issue-1227-backup-verify

Conversation

@Doctorofsend

Copy link
Copy Markdown

Summary

  • add a provider-neutral backup verifier that selects the newest S3 dump, restores it into a timestamped scratch database, and always drops the scratch database
  • compare key, trade, and holder row counts and reject stale trade data
  • add weekly/manual GitHub Actions execution with credentials supplied only through secrets
  • post failed check names to ALERT_WEBHOOK_URL

Closes #1227

Validation

  • TypeScript transpile/import check: passed
  • Prettier and ESLint for the new script/workflow: passed
  • diff and PolinRider-pattern scan: clean
  • repository-wide TypeScript build remains blocked by existing outboxEvent Prisma-client errors on current main

@drips-wave

drips-wave Bot commented Nov 20, 2026

Copy link
Copy Markdown

@Doctorofsend Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093

Copy link
Copy Markdown
Member

✅ PR Ready for Review

Due to a recent malware incident affecting our repositories, all PRs are required to pass automated security checks before being reviewed for merging.

This PR has passed all automated checks:

  • ✅ Security scan — no malicious code detected
  • ✅ No merge conflicts
  • ✅ CI checks passed

Next step: Please share this PR link in our Telegram group so a maintainer can review and merge it: https://t.me/c/accesslayerorg/8514

@Doctorofsend

Copy link
Copy Markdown
Author

@Chucks1093 Thanks for confirming this PR passed the security scan, has no merge conflicts, and has passing CI. Following up here with the PR link for review: #1256

@Doctorofsend
Doctorofsend force-pushed the fix/issue-1227-backup-verify branch from 96690e3 to 9de1588 Compare November 23, 2026 22:07
@drips-wave

drips-wave Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Possible malicious code: please review before merging.

An automated security scan flagged files in this pull request that appear to contain malicious code. Code like this can run automatically when a project is opened in an editor or its dependencies are installed, so it could compromise the machine of anyone who checks out this branch.

Automated scans can be wrong, so this may be a false positive. Maintainers: please review the flagged files carefully before merging, on GitHub in your browser rather than by checking out the branch. The malicious part is often hidden far off to the right of an ordinary-looking line, so scroll sideways through each file.

@Doctorofsend: this pull request adds or changes these files, possibly without your knowledge. Malware like this spreads by adding itself to repositories on machines it has infected, so your machine and / or GitHub account may be compromised. Please review your machine for a possible malware infection, and rotate your GitHub credentials / SSH keys as needed.

Flagged files at commit 9de1588:

Only merge once you're confident these files are safe.

ℹ️ Posted automatically by Drips Wave. Questions? Contact support@drips.network.

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.

Add database backup verification job restoring snapshots into a scratch instance

2 participants