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

fix: Using Sandboxed Environment in handler rendering Jinja template #456

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Abhishek-TAMU
Copy link
Collaborator

@Abhishek-TAMU Abhishek-TAMU commented Feb 5, 2025

Description of the change

Modification as a part of this PR: #438
Includes usage of Sandboxed Environment instead of normal Environment in rendering Jinja template which is more safer to use as it evaluates untrusted templates and restricts access to unsafe attributes/methods inside the template.

Related issue number

Issue: https://github.ibm.com/ai-foundation/watson-fm-stack-tracker/issues/1470

How to verify the PR

Check relevant test case.

Was the PR tested

  • I have added >=1 unit test(s) for every new method I have added.
  • I have ensured all unit tests pass

Copy link

github-actions bot commented Feb 5, 2025

Thanks for making a pull request! 😃
One of the maintainers will review and advise on the next steps.

@github-actions github-actions bot added the fix label Feb 5, 2025
Copy link

github-actions bot commented Feb 5, 2025

Thanks for making a pull request! 😃
One of the maintainers will review and advise on the next steps.

@dushyantbehl
Copy link
Contributor

LGTM. Thanks for noticing this @Abhishek-TAMU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants