Skip to content

Commit 21adfd9

Browse files
authored
docs: note that script edit access is code execution on the host (#1472)
Custom JWT and Actions scripts run inside the self-hosted Logto server process with its privileges, so granting script edit or test access is equivalent to code execution on the Logto host and the Admin Console should not be shared with untrusted users. The Actions warning also described the old `node:vm` runtime; scripts now run on a worker thread whose time and memory bounds contain runaway scripts but are not a security boundary.
1 parent 6d4e12f commit 21adfd9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/developers/actions/README.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Actions are available in Logto Cloud Enterprise plans.
1919
:::warning
2020
Action scripts can affect authentication and modify user data. Only trusted administrators should be allowed to view, create, edit, test, enable, or delete them.
2121

22-
In self-hosted deployments, action scripts run in a virtual machine inside the Logto process. Treat them as trusted server-side code, not as a security boundary for untrusted code.
22+
In self-hosted deployments, action scripts run inside the Logto server process with its privileges. Granting script edit or test access is equivalent to granting code execution on the Logto host, so the Admin Console should not be shared with untrusted users. Treat scripts as trusted server-side code; the runtime bounds a script's time and memory, but it is not a security boundary for untrusted code.
2323
:::
2424

2525
## How Actions fit into sign-in \{#how-actions-fit-into-sign-in}

docs/developers/custom-token-claims/README.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Logto built-in token claims cannot be overridden or modified. Custom claims will
5252
:::
5353

5454
:::warning
55-
Security note: In self-hosted deployments, custom JWT scripts are executed with the same privileges as the Logto server process. This feature is intended for trusted administrators only. Do not allow untrusted or lower-privilege users to create, modify, or test these scripts.
55+
Security note: In self-hosted deployments, custom JWT scripts are executed with the same privileges as the Logto server process, so granting script edit or test access is equivalent to granting code execution on the Logto host. This feature is intended for trusted administrators only: do not allow untrusted or lower-privilege users to create, modify, or test these scripts, and do not share the Admin Console with them.
5656
:::
5757

5858
## Related resources \{#related-resources}

0 commit comments

Comments
 (0)