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

chore[Security]: restrict libs to allow specific functionalities #1429

Merged
merged 5 commits into from
Nov 20, 2024

Conversation

ArslanSaleem
Copy link
Collaborator

No description provided.

@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Nov 12, 2024
Copy link

codecov bot commented Nov 12, 2024

Codecov Report

Attention: Patch coverage is 71.25000% with 46 lines in your changes missing coverage. Please review.

Project coverage is 78.57%. Comparing base (719043c) to head (e7eb9e3).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
pandasai/safe_libs/restricted_base64.py 41.66% 7 Missing ⚠️
pandasai/safe_libs/restricted_datetime.py 41.66% 7 Missing ⚠️
pandasai/safe_libs/restricted_json.py 41.66% 7 Missing ⚠️
pandasai/safe_libs/restricted_seaborn.py 41.66% 7 Missing ⚠️
pandasai/helpers/optional.py 80.95% 4 Missing ⚠️
pandasai/safe_libs/base_restricted_module.py 81.25% 3 Missing ⚠️
pandasai/safe_libs/restricted_matplotlib.py 81.25% 3 Missing ⚠️
pandasai/safe_libs/restricted_numpy.py 75.00% 3 Missing ⚠️
pandasai/safe_libs/restricted_pandas.py 78.57% 3 Missing ⚠️
pandasai/pipelines/chat/code_cleaning.py 93.75% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1429      +/-   ##
==========================================
- Coverage   78.87%   78.57%   -0.31%     
==========================================
  Files         150      158       +8     
  Lines        6160     6323     +163     
==========================================
+ Hits         4859     4968     +109     
- Misses       1301     1355      +54     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

"ssl", # SSL socket connections
"pickle", # Unsafe object serialization
"ctypes", # C-level interaction with memory
"psutil", # System and process utilities
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about io?

@gventuri gventuri merged commit 27cb449 into main Nov 20, 2024
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants