Skip to content

docs: note that script edit access is code execution on the host - #1472

Open
wangsijie wants to merge 1 commit into
masterfrom
wangsijie-log-13960-write-docs-note-on-the-oss-trust-model
Open

docs: note that script edit access is code execution on the host#1472
wangsijie wants to merge 1 commit into
masterfrom
wangsijie-log-13960-write-docs-note-on-the-oss-trust-model

Conversation

@wangsijie

@wangsijie wangsijie commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes LOG-13960.

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. This is stated in the existing security warnings on the two feature pages, where readers already are when the question comes up.

Changes

  • Custom access token: the warning now says script edit/test access equals code execution on the host, and adds that the Admin Console should not be shared with untrusted users.
  • Actions: same, plus a correction — the warning described scripts as running "in a virtual machine inside the Logto process", which is the node:vm path being removed in this project. Scripts now run on a worker thread whose wall-clock and memory bounds contain runaway scripts but are explicitly not a security boundary.

Testing

npx eslint and a full npx docusaurus build both pass.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 12, 2026

Copy link
Copy Markdown

Deploying logto-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: d73d38b
Status: ✅  Deploy successful!
Preview URL: https://6e3d27bd.logto-docs.pages.dev
Branch Preview URL: https://wangsijie-log-13960-write-do.logto-docs.pages.dev

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 12, 2026

Copy link
Copy Markdown

Deploying logto-docs-tutorials with  Cloudflare Pages  Cloudflare Pages

Latest commit: d73d38b
Status: ✅  Deploy successful!
Preview URL: https://0e5c49b4.logto-docs-tutorials.pages.dev
Branch Preview URL: https://wangsijie-log-13960-write-do.logto-docs-tutorials.pages.dev

View logs

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.
@wangsijie
wangsijie force-pushed the wangsijie-log-13960-write-docs-note-on-the-oss-trust-model branch from 2f2263f to d73d38b Compare August 12, 2026 11:20
@wangsijie wangsijie changed the title docs: add a note on the OSS trust model docs: note that script edit access is code execution on the host Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants