Safety fix :Add explicit safety warnings for pickle-based recording workflows#181
Safety fix :Add explicit safety warnings for pickle-based recording workflows#181
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Just curious, removing a feature entirely, is it a viable option? I understand The alternate export feature requires a separate discussioon, since other options like safetensors or parquet need some extra logics and dependency. Happy to hear your views. |
I see what you are saying about choice. But as of now we provide The issue is if this module is being used in a confidential system one can infiltrate the system by somehow deserializing their malicious So all I wanna say is we should keep pickle as an advanced choice rather than being first in the row . We can work on this version rather than removing I think it would be a better choice . Thankyou @IlamaranMagesh for your views. Would be happy to hear your views !! |
|
@IlamaranMagesh I have tried to implement a |
|
Thanks @apfine. @colinfrisch, thoughts? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #181 +/- ##
==========================================
+ Coverage 90.64% 90.66% +0.01%
==========================================
Files 19 19
Lines 1540 1543 +3
==========================================
+ Hits 1396 1399 +3
Misses 144 144 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@BhoomiAgrawal12 @wang-boyu @EwoutH |
IlamaranMagesh
left a comment
There was a problem hiding this comment.
I have reviewed the changes and shared my thoughts in the main conversation thread above. Overall, it looks good. I'll let the maintainers take the call.
Thankyou , I request maintainers to give some feedback @EwoutH @BhoomiAgrawal12 @khushiiagrawal Thankyou for your valuable time !! |
I propose the following changes to use of
.pklin order to ensure the safety of the user's system.Summary
This PR keeps pickle support in the recording workflow, but makes its security implications explicit by warning users when pickle-based recordings are loaded or saved.
Changes
UserWarningwhen loading.pklrecordings inAgentViewerUserWarningwhen saving recordings withformat="pickle"inSimulationRecorder.save()Why
Pickle deserialization can execute arbitrary code when loading untrusted files. While pickle may still be useful for trusted local workflows and backward compatibility, it should not appear to be a risk-free default path.
This change keeps user choice while making the security tradeoff explicit at the point of use.
Validation