Repository navigation
fix(engine): harden fs OCap, VFS tombstones, asymmetric crypto, and WinterTC hot path - #71
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Deny-by-Default Filesystem OCap & CoW VFS Tombstone Isolation:
CapabilityToken::pure_compute(),Slice.evalSandbox,slice eval,slice serve, andslice mcpunless explicit--allow-read/--allow-writeflags orslice.tomlcapabilities are configured (slice testretains isolated/tmpand/vfsscratch access).BOA_VFS_TOMBSTONES) sounlinkSync,rmSync,rmdirSync, andrenameSyncmask paths in memory without deleting underlying host files, withO(1)rollback onSlice.restore().Multi-Frame Source-Mapped Stack Traces & Class Method Spans (
#60)://#[SLICE_SMAP_V1]source mapping inslice-casand stack trace formatting inslice-engineto map multi-frame uncaught call stacks and class/object methods back to original TypeScript files and line numbers.SLICEBC\x01prelude shards forSlice.evalSandboxand source execution.WinterTC
fetchHot-Path Latency Optimization (#62):SliceIsolate::dispatch_http_requestwith lazy header materialization, direct synchronousResponseextraction, and conditional event-loop draining (154,737 req/sTier-1 WinterTC HTTP/1.1 keep-alive throughput;6.46 us/reqaverage latency).Asymmetric Cryptography Hardening (
RSA 2048..8192& RFC 7748X25519):ERR_CRYPTO_UNSUPPORTED_OPERATION/NotSupportedError/ERR_INVALID_ARG_VALUE).2048to8192-bit ASN.1 DER (PKCS#8,PKCS#1,SPKI) andJWKRSA import/export plusring-backedRSASSA-PKCS1-v1_5andRSA-PSS(SHA-256,SHA-384,SHA-512) signing and verification acrossnode:cryptoandcrypto.subtle.X25519key generation,PKCS#8v1/v2 +SPKI+JWK+rawcodecs,crypto.diffieHellman, andcrypto.subtleX25519(deriveBits,deriveKey) viax25519-dalekwith constant-time low-order public point rejection.COMPATIBILITY.mdanddocs/with exact runtime behavior.Full 33-Workload Benchmark Suite Refresh:
tests/reports/latest.md(bench_v0.10.12_20261112_020639Z_4c5089a.md) and synchronized benchmark tables acrossREADME.md,tests/README.md, anddocs/general/09_benchmarks_testing_and_docker_suite.md.Closes #60
Closes #62
Verification
cargo clippy --workspace --all-targets -- -D warnings: 0 warningscargo test --workspace: 208/208 passedslice verify-security: 5/5 attack vectors deterministically containedx86_64Docker benchmark suite:0.94 us/1.24 us/2.10 us1.50 ms(4.0 KBper-tenant compartment)slice serveTier-1 WinterTC Throughput:154,737 req/s(1.60xvsBun.serve,2.71xvs Node.js)--warmwins vs Bun