code wiki / _hdl_build / nx_deploy_secure.nx
nx_deploy_secure.nx
buildroot/runtime/_hdl_build/nx_deploy_secure.nx
about
nx_deploy_secure.nx -- ZERO-PERSISTENT-PLAINTEXT unattended deploy (vault backlog #5). One
sovereign orchestrator: derive the machine-bound key -> open the encrypted vault -> hand the
credential to the team's SSH deployer -> SHRED every ephemeral (overwrite + unlink). The operator
runs ONE command, never types or stages the password, and no plaintext credential survives on
disk past the deploy. Chains the gated modules via fork/execve/wait4 (NishiLang orchestration).
Pre-staged by the caller: /tmp/nxput.payload (the page) + /tmp/nxput.dst (remote write cmd).
Requires: /tmp/nx_machine_key.elf, _offc/nx_vault.elf, /tmp/nx_ssh_putpage.elf (bootstrap-built).
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_lib.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 12 | const AT_MAGIC_4096: i64 = 4096 |
| 14 | const AT_FDCWD: i64 = 0 - 100 |
functions
| 16 | func _p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 21 | func _pn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 24 | func ds_run1(path: *u8, arg1: *u8, arg2: *u8) -> i64 |
| 46 | func ds_shred(path: *u8) -> i64 |
| 59 | func ds_cleanup() -> i64 |
| 65 | func main() -> i64 |