code wiki / _hdl_build / nx_deploy_secure.nx

nx_deploy_secure.nx

buildroot/runtime/_hdl_build/nx_deploy_secure.nx

4822 B92 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic deploy
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_itoa_lib.nx nx_deploy_secure.nx

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

main _p sys_write ds_run1 sys_fork sys_mmap sys_execve sys_exit sys_wait4 ds_cleanup ds_shred sys_openat_wr sys_mmap ↻ sys_write ↻ sys_close sys_exit ↻ sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻ sys_openat_wr ↻ sys_write ↻ sys_close ↻ _pn nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap

structs

none

consts

12const AT_MAGIC_4096: i64 = 4096
14const AT_FDCWD: i64 = 0 - 100

functions

16func _p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
21func _pn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
24func ds_run1(path: *u8, arg1: *u8, arg2: *u8) -> i64
46func ds_shred(path: *u8) -> i64
59func ds_cleanup() -> i64
called by 1: main calls 1: ds_shred
65func main() -> i64