code wiki / _hdl_build / nx_office_daemon.nx
nx_office_daemon.nx
buildroot/runtime/_hdl_build/nx_office_daemon.nx
about
nx_office_daemon.nx -- the DEPLOYABLE Nishi Office daemon (ops shell around the gated pure core nx_office_serve).
Binds 0.0.0.0:8030 (LAN-reachable on the NAS); files live under CWD "office/". Route /office -> this port on the
sovereign edge. R-AUTHZ: resolves the OPAQUE session (X-Nishi-Session header, or the `sess` form field on a
zero-JS POST) -> handle, and passes it to of_handle_auth so OWNED docs are ReBAC-gated while unowned docs stay
PUBLIC (non-breaking). FAIL-SAFE: if the auth ctx can't init, serve PUBLIC-only (owned docs lock, public work).
Build with --build-only; run deliberately. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_office_serve.nxnx_opaque_login.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
| 10 | const OD_PORT: i64 = 0x1f5e // 8030 |
| 11 | const OD_KEYS: *u8 = "opaque_keys.bin" |
| 12 | const OD_ASTORE: *u8 = "opaque_store.log" |
| 13 | const OD_IDX: *u8 = "nishi_uid_handle.tsv" // the login daemon's uid(hex)->handle index (authz keys off handle) |
functions
| 15 | func d_addr(out: *u8, port: i64) -> i64 called by 1: main |
| 24 | func main() -> i64 |