From 05af00305d0bb20bb104ea3dd892b1d20fcd09eb Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 17 Feb 2025 16:30:13 -0800 Subject: [PATCH] enh: warning --- .../admin/Settings/CodeExecution.svelte | 42 ++++++++++++------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/src/lib/components/admin/Settings/CodeExecution.svelte b/src/lib/components/admin/Settings/CodeExecution.svelte index 13550bdce..57240abc4 100644 --- a/src/lib/components/admin/Settings/CodeExecution.svelte +++ b/src/lib/components/admin/Settings/CodeExecution.svelte @@ -45,25 +45,35 @@
-
-
{$i18n.t('Code Execution Engine')}
-
- +
+
+
{$i18n.t('Code Execution Engine')}
+
+ +
+ + {#if config.CODE_EXECUTION_ENGINE === 'jupyter'} +
+ {$i18n.t( + 'Warning: Jupyter execution enables arbitrary code execution, posing severe security risks—proceed with extreme caution.' + )} +
+ {/if}
{#if config.CODE_EXECUTION_ENGINE === 'jupyter'} -
+
{$i18n.t('Jupyter URL')}
@@ -81,7 +91,7 @@
-
+
{$i18n.t('Jupyter Auth')}