Administrator & Security Governance Guide
Operational guidance for building, verifying, configuring, and governing Veko 1.0 workloads across local 64-bit VKO VM deployments (oro_vm.vk), vvm WebAssembly 3.0 zero-trust sandboxes (codegen.vk), and standalone native executables (native_emit.vk & arm64_emit.vk across win-x64, win-arm64, linux-x64, linux-arm64, and macos-arm64).
Defense-in-Depth Capability Gates, .secret Firewall & Supply-Chain Trust
Compile-time allow-caps enforcement, cryptographic taint tracking, zero-trust Wasm sandboxes, and signed VKP1 packages.
1. Build & Verification Pipeline
Veko ships with a pure-.vk build orchestrator (build.vk) that enforces static checks, multi-suite verification, documentation hygiene, and S1 == S2 self-hosting convergence:
| Command / Target | Action | Purpose |
|---|---|---|
check (veko run build.vk -- check) |
Static DAG check | Validates all 76 compiler/runtime modules (src/main.vk) and strict-typed examples |
test (veko run tests/run_tests.vk) |
Runs 18 test suites | Validates lexer, Pratt parser, types/secrets, 64-bit VKO, stdlib, PQC, TLS 1.3, reactor, durable workflows, UI/X11/clipboard/FFI, flamegraphs, veko.lock, and 3-track parity |
docs (veko docs) |
Compiles dist/docs/ |
Renders isolated End-User and Technical HTML suites + interactive SVG diagrams + hygiene checks |
build (veko run build.vk -- build) |
Builds binary + docs | Refreshes HTML docs and compiles a 2-stage S1 == S2 native veko binary into dist/bin/ |
fixed-point |
Fixed-point gate | Verifies byte-for-byte S1 == S2 convergence for native machine code and 64-bit VKO |
all (veko run build.vk -- all) |
Full release gate | Runs check, test, docs, and build sequentially |
2. Three-Backend Operational Profiles
Operators select among Veko's three execution tracks depending on trust boundary, portability, and deployment target:
- Track A — 64-Bit
VKOBytecode VM (oro_vm.vk/--vm/.vko): Fast local tooling, interactiveveko repl, doctests, dynamiceval, and precompiled 64-bitVKOexecution with runtime--allow-*capability flags. - Track B — WebAssembly 3.0 Sandbox (
codegen.vk/--wasm/vvm): Zero-trust execution for untrusted plugins and multi-tenant workloads insidevvm'sHostSandbox, enforcing--fuel,--mem-pages,--allow-fs=<dir>,--allow-hosts, SSRF blocking, and strict.ffiprohibition. - Track C — Native x86_64 & AArch64 (
native_emit.vk+arm64_emit.vk/--native): Standalone Windows PE32+ (--target=win-x64&--target=win-arm640xAA64, optional--gui), static zero-libcLinux ELF64 (--target=linux-x64&--target=linux-arm64), and ad-hoc SHA-256 signed 16 KiB Apple Silicon Mach-O (--target=macos-arm64) binaries with CPUIDAVX2/SSE2/AES-NI, OS-native readiness reactors (epoll/kqueue/IOCP), and opt-in.ffishared library trampolines.
| Operational Dimension | Track A: 64-Bit VKO VM (--vm) |
Track B: vvm Wasm 3.0 (--wasm) |
Track C: Native x86_64 & ARM64 (--native) |
|---|---|---|---|
| Trust Boundary | Trusted local CLI scripts, tools, and interactive REPL | Untrusted plugins, multi-tenant edge rules, and sandboxed tasks | Trusted standalone OS executables (zero external compiler, JVM, or GC) |
| Host Interface | Guarded VmPolicy OS PAL (fs, net, reactor, offscreen ui) |
WASI 0.3 + explicit HostSandbox capability allowlists (.ffi forbidden) |
Win32 IAT (win-x64/win-arm64), direct Linux syscalls (linux-x64/linux-arm64), or libSystem (macos-arm64) |
| Resource Metering | --fuel=<n> instruction quota + VmPolicy sleep/output caps + deterministic ORO cleanup |
vvm --fuel budget + --mem-pages ceiling + --check-slabs leak gate |
Thread-local 12-bucket ORO slab free-lists + deterministic .secret zero-wipe |
| Supply Chain | Verifies veko.vk trust-keys on .vkp bundles |
Verifies veko.vk trust-keys on .vkp bundles |
Verifies veko.vk trust-keys + emits SHA-256 LC_CODE_SIGNATURE on macos-arm64 |
3. Security, Capability & Secret Governance
Project Manifest Confinement (veko.vk)
Across all three backends, operators enforce static build-time confinement via veko.vk:
- Canonical Path Confinement: Project
rootand every resolved.vk/.vkomodule path are verified via canonicalreal-pathcontainment so symlink and../escapes are rejected before parsing. - Least-Privilege Capability Allowlisting (
allow-caps):.fs— Filesystem access (os/read-*,os/write-*,os/open,os/pread,os/pwrite,os/stat, etc.).clocks— Wall/monotonic clocks and sleeps (time/*).env— Environment variables and CLI args (os/getenv,os/args).net— TCP/UDP sockets, DNS, HTTP, and readiness reactor (net/*,http/*).exec— Child process execution (os/exec).ui— Native window surfaces (ui/*; Win32user32.dll/gdi32.dllimported only when used).ffi— Foreign C-ABI shared libraries (ffi/*; denied by default unlessallow-caps = [.ffi]or--allow-ffiis set; strictly forbidden on--wasm)
- Signed
'VKP1'Package Pinning (trust-keys): Pinningtrust-keys = ['ed25519:<hex>', 'mldsa65:<hex>']insideveko.vkensures every.vkpdependency is Merkle-verified against trusted publisher keys before loading.
Sensitive Buffer Zeroization & .secret Firewall
Unlike garbage-collected runtimes where keys linger in uncollected heap pages:
- No SSO Escape + Volatile Zero-Wipe: Values from
os/getenv/secretandbytes/with-secretalways allocateflag_secretheap slabs whose full capacity is overwritten with zeroes before returning to any free-list. - Automatic Redaction:
print,println,mold, andlog/*redact.secretvalues to<secret>. - Compile-Time & Runtime Sink Blocking: Deep taint checks block
.secretvalues from crossingnet/*,http/*,spawn,chan/send,json/encode,os/write-file,ui/present, andffi/*.
4. Troubleshooting & Diagnostics
| Symptom | Likely Cause | Operator Resolution |
|---|---|---|
unknown word 'n-1' |
Missing spaces around subtraction operator - |
Add spaces (n - 1); Veko treats n-1 as a kebab-case word |
capability error: ... requires .ffi |
Foreign library call without explicit FFI opt-in | Pass --allow-ffi or declare allow-caps = [.ffi] in veko.vk (native/VM only) |
docgen hygiene: decorative Unicode emoji |
Emoji character introduced into Markdown or HTML docs | Replace with plain text or inline vector SVG icon |
docgen hygiene: forbidden source ext |
Non-Veko source filename leaked into docs | Refer to pure-Veko modules (lexer.vk, parser.vk, oro_vm.vk, codegen.vk, native_emit.vk) |
veko inspect unexpected precedence |
Missing (...) around compound math passed to prefix word |
Wrap compound inline expressions as (offset + 4) |