Druid Patching Checklist
When applying security patches to Druid, ensure you cover all affected areas:
- Grep for Patterns: Search for all instances of the vulnerable pattern (e.g.,
@JacksonInject JavaScriptConfig). - Apply Consistent Fixes: Use the same robust fix across all occurrences.
- Import Management:
- Ensure all required classes (like
OptBoolean) are imported. - Be careful not to accidentally remove existing imports (like
com.google.common.base.Function).
- Ensure all required classes (like
- Parameter Name Accuracy: Verify the parameter names in the
@JsonCreatorconstructors. Some usefnwhile others usefunction. - Verify Project Structure: Ensure patches are applied to the correct modules (core, processing, server, indexing-service).
- Build Verification: Run a full build of the affected modules to catch compilation errors.
- Patch Generation: Generate a clean
git diffand save it to thepatches/directory.