Description
This issue tracks the creation of an example (using an existing API or introducing a new one) to validate and demonstrate the changes introduced in the PR that replaces Python’s unsafe eval() with [RestrictedPython](https://restrictedpython.readthedocs.io/).
Goal
Provide a practical example that exercises the new secure code evaluation flow, ensuring the improvements are correctly integrated and easy to test.
Acceptance Criteria
Why this matters:
The PR makes a major security improvement by removing direct calls to eval() and using RestrictedPython with a controlled environment. Having a runnable example ensures contributors can easily test and verify the behavior locally, while the E2E test in CI guarantees ongoing validation of these security constraints.
Description
This issue tracks the creation of an example (using an existing API or introducing a new one) to validate and demonstrate the changes introduced in the PR that replaces Python’s unsafe
eval()with [RestrictedPython](https://restrictedpython.readthedocs.io/).Goal
Provide a practical example that exercises the new secure code evaluation flow, ensuring the improvements are correctly integrated and easy to test.
Acceptance Criteria
datetime,math).open,exec, system calls) are correctly blocked.Why this matters:
The PR makes a major security improvement by removing direct calls to
eval()and using RestrictedPython with a controlled environment. Having a runnable example ensures contributors can easily test and verify the behavior locally, while the E2E test in CI guarantees ongoing validation of these security constraints.