code wiki / _hdl_build / nx_stage_secret.nx

nx_stage_secret.nx

buildroot/runtime/_hdl_build/nx_stage_secret.nx

988 B19 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic stage
docsdependenciesstructsconstsfunctions

about

nx_stage_secret.nx -- sovereign helper: write a value to a file (0600), no trailing newline. Used to stage a plaintext secret into /tmp/nxsecret.in for `nx_vault seal` (the documented vault ingest path), without a shell. argv: [1]=path [2]=value. (For real secrets the operator stages out-of-band; this exists so the seal->open->arm round-trip can be proven end-to-end with sovereign organs only.) license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_stage_secret.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_write sys_openat_wr ss_len sys_close

structs

none

consts

none

functions

7func ss_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
9func main(argc: i64, argv: *i64) -> i64