-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix/startup sh linefeed issue #1483
Closed
draktheas
wants to merge
10
commits into
Sinaptik-AI:release/v3
from
draktheas:fix/startup_sh_linefeed_issue
Closed
Fix/startup sh linefeed issue #1483
draktheas
wants to merge
10
commits into
Sinaptik-AI:release/v3
from
draktheas:fix/startup_sh_linefeed_issue
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add 's' in the end of keyword "clarification_question" agent.clarification_question('What is the GDP of the United States?')
…#1417) * Add /app to PYTHONPATH * fix for issue Sinaptik-AI#1415 --------- Co-authored-by: Giuseppe Coco <[email protected]>
Co-authored-by: Giuseppe Coco <[email protected]>
Add documentation of how to use pandasai.json file
Sinaptik-AI#1432) * fix[output_format]: accept dataframe dict as output and secure sql query execution * fix: ruff errors
…aptik-AI#1429) * chore[Security]: restrict libs to allow specific functionalities * remove: extra lib handling * fix: ruff errors * fix: error message for bad import * fix: add io library in the blacklist
dosubot
bot
added
the
size:XXL
This PR changes 1000+ lines, ignoring generated files.
label
Dec 17, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to b809841 in 1 minute and 52 seconds
More details
- Looked at
1560
lines of code in28
files - Skipped
1
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. pandasai/connectors/sql.py:442
- Draft comment:
The error message "Malicious query is generated in code" is not clear. Consider rephrasing it to something like:
raise MaliciousQueryError("The generated SQL query is potentially malicious and has been blocked.")
- Reason this comment was not posted:
Comment was on unchanged code.
Workflow ID: wflow_EAXiGSgluR2UOlmv
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Important
Enhances security by introducing restricted modules, updates library management, and fixes a linefeed issue in the startup script.
restricted_base64
,restricted_datetime
,restricted_json
,restricted_matplotlib
,restricted_numpy
,restricted_pandas
,restricted_seaborn
) to prevent unauthorized access and execution of potentially harmful code._is_malicious_code()
incode_cleaning.py
to check for restricted library access and private attribute usage.test_code_cleaning.py
to ensure restricted access and imports are handled correctly.WHITELISTED_LIBRARIES
andRESTRICTED_LIBS
inconstants.py
to reflect new security measures.get_environment()
inoptional.py
to use restricted modules.custom-whitelisted-dependencies.mdx
andlibrary.mdx
to reflect changes in library management and security practices.startup.sh
inDockerfile
.response_parser.py
to handle DataFrame conversion.This description was created by for b809841. It will automatically update as commits are pushed.