about summary refs log tree commit diff
path: root/test/python/test_envelope.py
diff options
context:
space:
mode:
authorPjotr <wrk@bosa.lan>2026-11-07 15:06:54 +0000
committerPjotr <wrk@bosa.lan>2026-11-07 15:06:54 +0000
commit4831e5aebb81e7280d017bc57145aa1a7453e661 (patch)
tree7db66a392a3c0ca78b30f3c8fb1a7db6070684c4 /test/python/test_envelope.py
parentbd14783d3f32abecf8d50bfd352e3695363ea5e2 (diff)
downloadgenenetwork4-4831e5aebb81e7280d017bc57145aa1a7453e661.tar.gz
compute: proxy /compute/* for any valid token
R/qtl and GEMMA are part of the service now, so the blanket 403 goes:
the handlers already require an AuthToken, which is the whole gate
("token_only", not resource-checked). What that buys and costs is now
written down rather than implied -- any token holder can name
server-side paths for R and gemma to read, and the public-data-only
restriction on traits/datasets does not apply here at all.

The box also has to be able to run them: PATH must carry Rscript,
gemma-wrapper and gemma, *and* R_LIBS_SITE must point at the profile's
site-library or scripts/rqtl_wrapper.R dies on `there is no package
called 'optparse'` -- which reads like a token or proxy fault and is
neither.

Verified through nginx with a token: POST /gn4/compute/rqtl 200 in 0.4s
with the fixture's marker rows, POST /gn4/compute/gemma 200 in 2.1s with
7 320 marker rows (identical to the documented run's first row),
GET /gn4/compute/gemma/status/<id> ending in "GN4: computation
complete", /compute/correlation 200; all four 401 without a token.

* etc/nginx-vesuvio.pu.ac.ke.conf: drop the /compute 403 locations, keep
them commented as the way back; timeouts/body-size comments now apply.
* docs/www/ai-instruction.md: new ยง4a, "Running QTL mapping (compute)" --
shapes, server-side paths, ?id= + status polling, what to do with a 504.
* docs/www/operator-checklist.md: compute moves from "must be off" to
"proxied, know what it grants", plus what the box needs (PATH,
R_LIBS_SITE, ravanan) and the measured results.
* docs/nginx.md: same, in the deployment and checking sections.
Diffstat (limited to 'test/python/test_envelope.py')
0 files changed, 0 insertions, 0 deletions