The root icons /apple-touch-icon.png and /favicon.ico answer without sign-in, but
is_static_asset_path() only knew directory prefixes, so a missing icon (or one
symlinked outside the dist) fell through to _serve_index() and returned the SPA
shell as 200 text/html to an anonymous request. Treat both exact names as static
assets so a miss is a 404.
Refs #144648
Nix (and any install that excludes web/ from the Python package) ships
no source-tree web/public, so the font fallback found nothing and the
sign-in page fell back to system faces on the Webapp surface. The
packaged dashboard dist (WEB_DIST / HERMES_WEB_DIST) carries the same
fonts; it is now searched after the served dist and before web/public,
with the same containment check.
Found by @unsupportedpastels and Greptile on #145639.
The password sign-in page (dashboard_auth/login_page.py) loads Collapse and
Rules Compressed from /fonts/. Those files ship in web/public/fonts, which the
dashboard build copies into its dist, but the Webapp serves
apps/desktop/dist-webapp, which has no fonts/ dir. The SPA catch-all then
answered every font request with index.html (200 text/html) and the page
rendered in fallback faces.
- /fonts/ and /fonts-terminal/ read the served dist's copy first, then the
web/public copy the dashboard build takes it from; both surfaces run from
the same tree, so the sign-in page gets the same files on either.
- A miss under a static asset prefix (assets/, ds-assets/, fonts/,
fonts-terminal/) is a 404 on both surfaces instead of the SPA shell.
Client-side routes keep the index.html fallback.
Found by @dokterdok on #144648.