Skip to main content

2 posts tagged with "stof"

View All Tags

Running Logic You Didn't Write: Stof's Security Model in 0.11

CJ Cummings
Creator and maintainer of Stof, co-founder & CEO of Limitr

Stof is for running logic you didn't write: a rule a model drafted, a customer's settings, a workflow another service sent over. Your app runs it in-process, with no deploy, and stays in charge of what it can do.

Stof 0.11 adds the pieces that make that easy to rely on: sealing the logic you trust, confining code from somewhere else to what you give it, keys and signatures to check who wrote something, a memory limit on every call, network access that stays off your private network, and stricter HTML. This post walks through the whole model, with examples you can run in the playground. (Some of this first shipped in 0.10.10; 0.11 completes it.)

Stof 0.10: Safe by Default, Errors You Can Read, and a Language Server

CJ Cummings
Creator and maintainer of Stof, co-founder & CEO of Limitr

Stof 0.10 is out. It's the biggest release since Stof started, and almost all of it serves one goal: making it safe and easy to run logic you didn't write, whether it came from a model, a customer, or another team.

That meant tightening the sandbox, making every error something a person or a model can read and fix, closing off behaviors that quietly produced wrong answers, and giving you better tools to write Stof yourself. This post covers 0.10.0 through 0.10.9, along with stof-cli 0.13 and version 0.3 of the VS Code extension. It was updated on October 20 for 0.10.7 and 0.10.8, and on November 3 for 0.10.9.