Repository navigation
Description
Symptom
Rackscope is designed for production deployments in physical infrastructure (datacenters, HPC clusters), which frequently include air-gapped or partially isolated networks. Several components silently rely on external runtime dependencies (CDNs, public icon registries, font services, tile servers) which break or degrade the UX in these environments.
We need a full inventory of every external runtime dependency and a migration plan to make Rackscope fully self-contained.
Already Known External Dependencies
| Component | External resource | Status |
|---|---|---|
| Swagger UI | cdn.jsdelivr.net/npm/swagger-ui-dist |
Tracked in companion issue: self-host Swagger UI + ReDoc |
| ReDoc | cdn.jsdelivr.net/npm/redoc |
Same issue |
| FastAPI Swagger favicon | fastapi.tiangolo.com/img/favicon.png |
Same issue |
| ReDoc logo | cdn.redoc.ly/... |
Same issue |
Components to Audit
Frontend
- Leaflet tile servers — world map (
/views/worldmap). Default OSM tiles or alternative tile providers? Configurable viaapp.yaml? - Fonts — Inter, JetBrains Mono, or any font loaded from Google Fonts / Bunny Fonts / Adobe Fonts
- ApexCharts — bundled or runtime CDN?
- Monaco Editor — bundled or partial CDN load (workers, locale files)?
- React, Vite, runtime deps — confirmed bundled at build time, sanity check
- Icons (Lucide, Heroicons, etc.) — bundled SVGs or runtime fetch?
- External logos / brand assets — any
<img src="https://...">in JSX or hardcoded SVG URLs? - Telemetry / analytics SDKs — Sentry, PostHog, Plausible? None expected, must confirm.
Backend
- Outbound HTTP at runtime — confirm only Prometheus (
prometheus_url) is contacted - Build-time downloads — pip dependencies, npm dependencies, Docker base images (must be mirrorable)
- Hardware DB lookups — any vendor catalog fetched from the internet (PCI IDs, SMBIOS, IPMI vendor strings)?
Documentation
- Docusaurus site (
/docs/) — does the dev/prod doc build pull theme assets from a CDN? - Algolia DocSearch — if enabled, requires public DNS resolution and a public endpoint.
Plugins
- Simulator plugin — fully self-contained?
- Slurm plugin — any external dependency on a Slurm REST gateway, Munge, or external schema?
Expected Deliverable
A markdown report (e.g., website/docs/development/offline-readiness.md) containing:
- Full inventory table: component → resource URL → required (yes/no) → bundle path / mitigation
- Per-component migration plan:
- Bundle locally (preferred)
- Configurable URL (
app.yamlsetting) for cases where bundling is impractical (e.g., tile servers behind a corporate mirror) - Graceful degradation when no external resource is available
- CI check (optional, follow-up): a build-time scan that fails the build if a new external URL appears in shipped HTML/JS/CSS.
Acceptance Criteria
- Inventory is exhaustive (every external URL accounted for)
- Each entry has a documented mitigation path
- At least one user-facing setting in
app.yamlfor any unavoidable external resource (e.g., custom tile server URL) - Two reference deployment modes documented:
- Default: assets bundled, no external dependency required
- Custom: documented escape hatch for organizations that prefer internal mirrors
Impact and Severity
- Audience affected: any on-prem, air-gapped, HPC, or restricted-network deployment — i.e., the primary target audience.
- Severity: low individually, high cumulatively — current state silently degrades UX in restricted environments, which contradicts the project's stated positioning.
- Priority: this is an audit task. The mitigations themselves can be split into smaller follow-up issues, one per component.
Breaking Changes
None expected — the goal is to remove external dependencies, not to change observable behavior. If a setting changes from "hidden default" to "configurable in app.yaml", documentation must call out the new key as additive (non-breaking).
Related
- Companion issue: self-host Swagger UI + ReDoc assets.
Activity