[SLOP(gpt-5)] fix(frontend): serve engine UI assets under ui base#5235
[SLOP(gpt-5)] fix(frontend): serve engine UI assets under ui base#5235NathanFlurry wants to merge 1 commit into
Conversation
|
Stack for rivet-dev/rivet
Get stack: |
|
🚅 Deployed to the rivet-pr-5235 environment in rivet-frontend
|
ReviewThis PR fixes a real issue with Vite-built frontends: the build output places JS/CSS under A few things to address: Path traversal (minor)
let file_path = format!("assets/{}", path.trim_start_matches('/'));A crafted request like if path.contains("../") || path.contains("..%2F") {
return StatusCode::BAD_REQUEST.into_response();
}Auth bypass scope The middleware exempts all paths starting with Inconsistent tracing instrumentation
Missing MIME types The content-type table is missing a few types that modern Vite builds produce:
These will fall through to Nit
Overall the approach is correct and the duplication removal is welcome. Addressing the WASM MIME type and path traversal guard before merge would be the highest-priority items. |
No description provided.