Restore: make loading compressor commands from MANIFEST opt-in#19460
Conversation
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
MANIFEST opt-in
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
…-allow-manifest Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
|
📝 Documentation updates detected! New suggestion: Document external-decompressor-use-manifest flag for backup/restore security Tip: Tell your friends working on non-commercial open-source projects to apply for free Promptless access at promptless.ai/oss ❤️ |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #19460 +/- ##
===========================================
- Coverage 69.67% 48.74% -20.94%
===========================================
Files 1614 46 -1568
Lines 216793 6988 -209805
===========================================
- Hits 151044 3406 -147638
+ Misses 65749 3582 -62167
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: Mohamed Hamza <mhamza@fastmail.com> Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
…ST` opt-in (#19460) (#19474) Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com> Co-authored-by: Mohamed Hamza <mhamza@fastmail.com> Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
…ST` opt-in (#19460) (#19473) Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com> Co-authored-by: Tim Vaillancourt <tim@timvaillancourt.com> Co-authored-by: Mohamed Hamza <mhamza@fastmail.com>
…#19427 - Breaking change: external decompressor no longer read from backup MANIFEST by default - VTOrc: ordered recovery execution and semi-sync rollout improvements Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
…ST` opt-in (#19460) (#19474) Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com> Co-authored-by: Mohamed Hamza <mhamza@fastmail.com> Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Description
This PR addresses a security concern with external compressors at restore-time by requiring the user to opt-in to the potentially-dangerous behaviour of trusting the backup
MANIFESTfile as a source of compressor configurationTo opt-in to the pre-v24 behaviour of trusting the
MANIFEST, add the new flag to VTTablet:From v24 an on, we won't trust the
MANIFESTfor compressor configuration by default 🔒This attack vector is possible when no
--external-decompressorflag is provided to the tablet, but theMANIFESTcontains a configuration for an external compressorIn a follow-up feature request, a longer-term solution for securing external compressors will be proposed and implemented. This PR is a short term fix so that default-users are not at risk, and users aware of the risks can decide if they'd like this behaviour
Related Issue(s)
Resolves: #19459
Partially-resolves: GHSA-8g8j-r87h-p36x
Checklist
Deployment Notes
AI Disclosure
Claude Code w/Opus 4.6 wrote the unit tests 🙇