JOLT docs v0.1.0 Apps Install

Security and privacy

JOLT code runs with the add-in's access to the document. It can read and change everything Office.js can reach. The rules below keep a document from running code its user hasn't approved.

Every app is approved for its exact code

JET runs an app only after you approve it, whether it comes from JAM, a website (a URL or a launch URL) or a document someone sent you. Every app goes through the same approval screen (see Approving an app):

  • The approval is a fingerprint, a SHA-256 hash of all the app's files. JET checks it every time the app runs, and asks again if any file changed: a new JAM version, a website that was updated, or a document whose app was edited.
  • Approvals are kept per user, on this computer, never in the document. A document can't approve an app for whoever opens it, even one it starts by itself.
  • Approved apps are listed under ☰ → Apps approved on this computer, where you can remove an approval.
  • Not sure? Review with your AI on the approval screen copies a prompt for your AI assistant (see Review an app with your AI).

Code in the document

A project embedded in a document can run without anyone choosing to run it: JET opens by itself in a document with auto-open, and Excel runs a workbook's Excel functions (=JOLT.RUN) whenever it recalculates. So, like macros behind Excel's "Enable Content", a document's project runs only after the user approves it in JET. One approval covers the app and its functions.

  • Changing any file of the project asks again.
  • Projects you save yourself, in JADE or with JUICE, are approved automatically, on this computer and in every Office app. They aren't added to the list of approved apps.

JADE never runs a project by itself: it shows the code, and runs it only when you click ▶ Run or Preview in JET.

Code an app loads from other sites

An approved app may load code from other sites while it runs: an esm.sh package, a URL import, a <script src>, or a call to jolt.import or jolt.loadScript. JET doesn't ask about it separately, because the approval screen lists it:

  • Only https:// URLs are allowed.
  • The approval screen lists every library the app loads from another site, and says when the app works out addresses to load while it runs, which can't be reviewed in advance.
  • That code isn't covered by the fingerprint. It's downloaded each time the app runs, so a library that isn't pinned to an exact version, or a CDN that is compromised, can change it after you approve the app.
  • The AI review prompt asks your assistant about each library: what it is, how popular and well maintained it is, whether it's pinned, and the risks of relying on code from a CDN.

Code from the web while you build

Code you are still building isn't approved as an app: code you run from JADE, a project open in VS Code, and a module that an =JOLT.RUN formula names by URL. For these:

  • Only https:// URLs are allowed.
  • The first time a site (an origin, such as https://esm.sh) is used, JOLT asks: Run code from … ? Code from this site will be able to read and change this document.
  • The answer is remembered per user, on this computer, never in the document. So a document can't pre-approve its own sources.
  • The list of trusted sites is in JADE's ☰ → Project → Settings → Trusted sites. Remove a site there and JOLT asks again next time.

Apps from JAM

Apps installed from JAM are approved for one exact version:

  • JET downloads the app on every run and refuses to run it if the fingerprint differs from the one you approved.
  • Its jolt.storage is kept per user and app on this computer, not in the document.
  • The registry is append-only. Every version is rebuilt from a public GitHub commit, and only the owner of a GitHub account or organization can publish apps under its name.
  • A gold seal means a JOLT maintainer reviewed that exact version. It doesn't skip your approval, and an update has no seal until it's reviewed too.
  • An app run from a JOLT team site (any https://<name>.jolt-relay.workers.dev/ address) also gets the gold seal, labelled Published by the JOLT team. That says who serves it, not that anyone reviewed this code. It doesn't skip your approval either, and JET asks again whenever its code changes.
  • A workbook can be set to run a JAM app automatically. It stores only the app's name, so each person still sees the approval screen until they approve the app.
  • Not yet enforced: an app's declared network origins. The review page lists every network call the scan finds.

Review before you run

For any app, from JAM, a website or a document, you can have your own AI assistant read the code and give a verdict before you run it. JET's approval screen, and its trust prompt for code you're building, each have a button that copies a ready-made prompt. See Review an app with your AI.

The VS Code and CLI connection

  • The relay is a small Cloudflare Worker with a Durable Object that JUICE or jolt setup deploys into your own Cloudflare account. JET, VS Code and jolt CLI commands all connect out to it over WebSockets.
  • Messages are encrypted end to end with AES-GCM. The key is part of the connection code, so the relay only ever sees ciphertext.
  • Treat the connection code like a password. Anyone who has it can send code to your connected Office pane. JUICE: New Connection Code or jolt pair --new replaces it.
  • The Cloudflare token and the connection key are kept in ~/.jolt/config.json, which JUICE and the jolt CLI share. Only your user account can read it (the folder is mode 0700 and the file 0600 on macOS and Linux; on Windows it lives in your profile). They're never stored in Office or in your project. JUICE: Remove Cloudflare Settings or jolt forget removes them.
  • The connection code alone is enough to use the app in your document with the CLI (jolt connect <code>), from any computer. That's how an AI agent in the cloud can work with Office on your machine without your Cloudflare token. Share it only for as long as you trust that agent, and make a new one afterwards.
  • Passwords stay in Office. When the CLI shows the app, a password field and other secret fields (one-time codes and card numbers, by their autocomplete hint) show ******** whatever they hold, or "" when they're empty. Their real values never leave the pane. Typing one with jolt fill still sends it, and leaves it in your shell history.
  • Anything that can run commands as you can use the CLI, including an AI agent you give a terminal. It can do whatever the connected app can do in the open document. To stop that, close JET's connection (☰ → Disconnect VS Code) or make a new connection code.
  • The relay and your published apps are ordinary Workers in your account. You can see or delete them in the Cloudflare dashboard.

Where data lives

DataStored in
Project files and jolt.storageThe document (custom XML part)
JADE preferences and trusted sitesThe add-in's local storage on this computer
Apps installed from JAM, their approvals and their jolt.storageThe add-in's local storage on this computer
The Cloudflare token and connection key~/.jolt/config.json on this computer
The last-sync snapshot and the CLI's output position.jolt/sync.json and .jolt/cli.json in the project folder
Published apps and the relayYour Cloudflare account

The add-in itself (JET, with JADE inside it) is served from https://jolt.technologylearningcompany.com. JOLT has no server of its own that receives your project. Project files leave the document only when you export or publish them, or when JUICE or the CLI sends them, encrypted, through your relay.