code wiki / _hdl_build / nx_wiki_login_live_gate.nx

nx_wiki_login_live_gate.nx

buildroot/runtime/_hdl_build/nx_wiki_login_live_gate.nx

13340 B293 linesdepth 16pulls 46 transitivereach 0 importersview sourcekind gate/prooftopic wiki
docsdependenciesstructsconstsfunctions

about

nx_wiki_login_live_gate.nx -- ENGINEER gate: the wiki accessibility gate over REAL HTTP bytes. Drives nx_wiki_admin_handle (the exact function the multi-vhost daemon dispatches to) with synthetic-but-real HTTP requests, against an ARMED auth context (persistent key bundle + account store + argon2id KSF) -- the full production path minus the TLS socket. 12 rows: 1 ops provisioning: register stores the admin record + issues 24-word mnemonic 2 POST /wiki/admin/login (urlencoded body, %20 + '+' both exercised) -> 200 {"token":...} 3 GET /wiki/admin/x with X-Nishi-Session: <base64 token from row 2> -> 200 4 POST login wrong passphrase -> 401 5 GET without session header -> 401 6 GET with garbage session header -> 401 7 POST login on UNARMED ctx -> honest 503 8 POST login unknown handle -> 401 (same body as row 4: enumeration defense) 9 POST /wiki/admin/recover w/ mnemonic -> 200 {"mnemonic": NEW} + login w/ new pw -> 200 10 POST recover with a WRONG (valid-checksum) mnemonic -> 401 11 POST /wiki/admin/refresh w/ valid token -> 200 fresh token that passes GET 12 POST refresh with garbage session -> 401 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_wiki_admin_wiring.nx nx_syscalls.nx nx_wiki_login_live_gate.nx

imports: nx_wiki_admin_wiring.nxnx_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_openat_wr sys_close sys_mmap nx_uas_server_keys_load_or sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻ _uas_hex_dec _uas_nib nx_csprng_fill sys_mmap ↻ nx_csprng_urandom_path sys_openat_rd ↻ sys_read ↻ sys_close ↻ nx_opq_derive_keypair sys_mmap ↻ _voprf_load_context_string u256_alloc nx_scratch nx_scratch_init sys_mmap ↻ nx_scratch_oom sys_write sys_exit sys_mmap ↻ nx_opq_hash_to_scalar sys_mmap ↻ nx_h2c_expand_message_xmd_ sys_mmap ↻ _h2c_i2osp_1 _h2c_i2osp_2 u256_alloc ↻ _opq_reduce_48be_mod_n u256_alloc ↻

structs

none

consts

none

functions

23func wg_w(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 2: wg_rowmain calls 1: sys_write
24func wg_z(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: wg_build_post_login
25func wg_row(idx: i64, ok: i64, name: *u8) -> i64
called by 1: main calls 3: wg_wsys_mmapsys_write
40func wg_app(buf: *u8, off: i64, s: *u8) -> i64
48func wg_build_post_login(req: *u8, body: *u8) -> i64
called by 1: main calls 2: wg_zwg_app
63func wg_build_get(req: *u8, session_b64: *u8, session_n: i64) -> i64
called by 1: main calls 1: wg_app
78func wg_status(resp: *u8) -> i64
called by 1: main
83func wg_extract_token(resp: *u8, resp_n: i64, out: *u8) -> i64
called by 1: main
109func main() -> i64