code wiki / _hdl_build / nx_status_daemon_gate.nx
nx_status_daemon_gate.nx
buildroot/runtime/_hdl_build/nx_status_daemon_gate.nx
about
nx_status_daemon_gate.nx -- SOVEREIGN in-process referee for the modern-auth status daemon. NO socket,
NO curl, NO shell -- it arms a realm + registers an admin via the real Modern Auth, then feeds crafted
HTTP request BYTES straight into the pure router sd_handle and asserts the response bytes. The whole
login -> token -> gated-content -> deny flow, proven inside one Nishi organ.
T1 GET /status -> 200 + SPA shell (public)
T2 POST /status/login ok -> 200 + {"token":...} (mint a real no-cookie token)
T3 GET /content WITH tok -> 200 + the gated body marker
T4 GET /content NO tok -> 401 (default-deny)
T5 POST /login WRONG pw -> 401 (and same shape as unknown-handle)
T6 GET /content BAD tok -> 401 (forged token rejected)
GREEN iff T1..T6 hold. Sovereign: nx_status_daemon + nx_modern_auth_flow + nx_syscalls. license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_status_daemon.nxnx_modern_auth_flow.nxnx_syscalls.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
| none |
functions
| 16 | func g_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 17 | func g_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 18 | func g_row(name: *u8, ok: i64) -> i64 |
| 25 | func g_cat(d: *u8, o: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { d[o + i] = s[i]; i = i + 1 } return o + i } called by 1: main |
| 26 | func g_cat_n(d: *u8, o: i64, s: *u8, n: i64) -> i64 { var i: i64 = 0; while i < n { d[o + i] = s[i]; i = i + 1 } return o + n } called by 1: main |
| 27 | func g_trunc(path: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 0x180); if fd >= 0 { sys_close(fd) } return 0 } |
| 30 | func g_starts(buf: *u8, n: i64, s: *u8) -> i64 |
| 38 | func g_contains(hay: *u8, n: i64, needle: *u8) -> i64 |
| 51 | func g_extract_token(resp: *u8, n: i64, out: *u8) -> i64 called by 1: main |
| 75 | func main() -> i64 |