• Stefy Lanza (nextime / spora )'s avatar
    api: the orchestrator image now serves its own admin GUI (v0.2.83) · e23fbb72
    Stefy Lanza (nextime / spora ) authored
    Bug 3 from the Digesta report: no published image was both a GPU-less
    RunPod orchestrator and an admin GUI.
    
    The cause was a split nobody had noticed: admin_router is the admin API
    (POST /login, /admin/api/*), while the GUI PAGES — GET /admin, /login,
    /admin/models … — live in frontproxy/ui_pages.py and were registered only
    on the front app. An install running `uvicorn codai.api.app:app` as a pure
    orchestrator therefore shipped the entire admin API with no way to reach
    it: GET /admin answered 404 and GET /login 405, because only POST /login
    existed. Reproduced both exactly before changing anything.
    
    codai/api/app.py now registers those pages itself, against the same config
    dir the admin API writes, so one image is orchestrator + GUI. Guarded: a
    missing templates or config dir logs and leaves the API untouched, the
    same contract the front has.
    
    Verified: /admin 404->302 /login, GET /login 405->200, /admin/models and
    /admin/runpod redirect to login, and under X-Forwarded-Prefix=/coderai the
    redirect goes to /coderai/login. /healthz and /v1/models unaffected.
    
    Bug 4 (the light app 500ing under X-Forwarded-Prefix) did NOT reproduce:
    _ForwardedPrefixMiddleware is installed in this app and /coderai/healthz,
    /coderai/v1/models and the GUI all answer correctly with the header set,
    stripped or un-stripped. The reported 500 was most likely /admin itself
    (404 before this fix) surfacing through their proxy.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    e23fbb72
Name
Last commit
Last update
..
test_admin_auth.py Loading commit data...
test_admin_remote_ui.py Loading commit data...
test_audio_ml_backends.py Loading commit data...
test_audio_ml_endpoints.py Loading commit data...
test_broker_config.py Loading commit data...
test_broker_dispatch.py Loading commit data...
test_broker_protocol.py Loading commit data...
test_broker_streaming.py Loading commit data...
test_burst_placement.py Loading commit data...
test_character_studio_fetch.py Loading commit data...
test_compose.py Loading commit data...
test_front_ocr_swap_gate.py Loading commit data...
test_image_has_c_compiler.py Loading commit data...
test_longcat_avatar_layout.py Loading commit data...
test_longcat_bsa.py Loading commit data...
test_longcat_cancellable.py Loading commit data...
test_longcat_checkpoint_resolve.py Loading commit data...
test_longcat_component_quant.py Loading commit data...
test_longcat_config_ui.py Loading commit data...
test_longcat_external_training.py Loading commit data...
test_longcat_int8_load.py Loading commit data...
test_longcat_lora.py Loading commit data...
test_longcat_orchestration.py Loading commit data...
test_longcat_packaging.py Loading commit data...
test_longcat_placement.py Loading commit data...
test_longcat_prompt_cache.py Loading commit data...
test_longcat_quantize.py Loading commit data...
test_longcat_scale.py Loading commit data...
test_longcat_tasks.py Loading commit data...
test_longcat_variants.py Loading commit data...
test_longcat_vendored_source.py Loading commit data...
test_longcat_venv_env.py Loading commit data...
test_longcat_vram_estimate.py Loading commit data...
test_longcat_worker.py Loading commit data...
test_manual_multimodal_test_client.py Loading commit data...
test_model_scan_cache.py Loading commit data...
test_ocr_olmocr.py Loading commit data...
test_ocr_vram_share_and_fallback.py Loading commit data...
test_remote_execution.py Loading commit data...
test_runpod_ocr_remotization.py Loading commit data...
test_runpod_schedule_region_spend.py Loading commit data...
test_studio_composed_surfaces.py Loading commit data...
test_surya_runpod_fixes.py Loading commit data...
test_township_api_key.py Loading commit data...
test_township_longcat.py Loading commit data...
test_township_page_js.py Loading commit data...
test_township_templates.py Loading commit data...
test_township_video_dataset.py Loading commit data...
test_upgrade_launcher.py Loading commit data...
test_video_as_b64_scope.py Loading commit data...
test_vllm_share_self_tuning.py Loading commit data...
test_vram_releasers.py Loading commit data...
test_weight_stores.py Loading commit data...
test_whisper_server_local_models.py Loading commit data...