Skip to content

security: add Flow 1.0 toolchain threat model and invariants - #661

Merged
godofecht merged 4 commits into
mainfrom
stabilize/security-regression-guards
Aug 21, 2026
Merged

godofecht merged 4 commits into
mainfrom
stabilize/security-regression-guards

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Advances #650 with an explicit Stable 1.0 security boundary and executable regression guards rather than policy prose alone.

The threat model distinguishes compiler safety from native program execution: flow run and FFI are trusted-code/native execution boundaries, not sandboxes. It records current controls and remaining release requirements for subprocesses, imports, temporary state, compiler fuzzing, release artifacts, package extraction, FFI and experimental backends.

The new unit tests enforce three easy-to-regress Stable-toolchain properties under src/flow: no shell=True, no os.system/os.popen, and no tempfile.mktemp. They also pin rejection of absolute, home-relative and parent-traversing legacy import paths.

This does not close #650. Long fuzzing, dependency/static scan review, release artifact provenance and any package-extraction path promoted to Stable still need final qualification.

Related: #646 #649 #650 #652 #653.

@godofecht
godofecht marked this pull request as ready for review August 21, 2026 20:06
@godofecht
godofecht merged commit 74e6e72 into main Aug 21, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[1.0] Complete a compiler/runtime security review and define the 1.x support lifecycle

1 participant