From 1e14a00754c851cd0bfbd75d262f898b58ca9022 Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Mon, 21 Jul 2025 10:21:07 +0800 Subject: [PATCH] refactor: add banned keyword. --- installer/Dockerfile-base | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/Dockerfile-base b/installer/Dockerfile-base index 762dfdbc2..fc46ef3dc 100644 --- a/installer/Dockerfile-base +++ b/installer/Dockerfile-base @@ -40,7 +40,7 @@ ENV PGDATA=/opt/maxkb/data/postgresql/pgdata \ LANG=en_US.UTF-8 \ MAXKB_LOG_LEVEL=INFO \ MAXKB_SANDBOX_PYTHON_PACKAGE_PATHS="/opt/py3/lib/python3.11/site-packages,/opt/maxkb-app/sandbox/python-packages,/opt/maxkb/python-packages" \ - MAXKB_SANDBOX_PYTHON_BANNED_KEYWORDS="subprocess.,system(,exec(,pty.,eval(,compile(,shutil.,input(" \ + MAXKB_SANDBOX_PYTHON_BANNED_KEYWORDS="subprocess.,system(,exec(,pty.,eval(,compile(,shutil.,input(,__import__" \ MAXKB_ADMIN_PATH=/admin EXPOSE 6379 \ No newline at end of file