Last updated: 2026-12-03
This document is written for IT / information-security teams evaluating whether the Keyguard Designer web app is safe for clinicians to use on managed workstations. It describes what the app is, how it handles data, the network and permission footprint, the threat model, and recommended hosting hardening.
The app is open source and released to the public domain (CC0), so everything below can be independently verified in the source: https://github.com/Volksswitch/keyguard-web
- The app is a 100% client-side, static web page. It runs entirely inside the clinician's browser (Chrome or Edge). There is no application server, no database, and no user accounts.
- No clinician data ever leaves the device. Designs are created, rendered, and exported locally. There is no analytics, no telemetry, no cloud storage, and no external API the app sends anything to. Nothing a clinician opens, edits, or exports is ever uploaded.
- No third-party contact at all. The app talks only to the address you host it on — the one address you would allowlist to let it load in the first place. It asks that same address whether a newer version of the keyguard designer file exists, and downloads it from there if a clinician accepts. From that same address it also takes the starter files a project folder is missing — the designer file for a brand-new empty folder, on acceptance, and the blank openings-and-additions template, which is simply supplied. The requests carry no data about the clinician or their work. There is no second hostname to review; §4 describes the whole footprint.
- Problem reports leave only by the clinician's own hand. The app can write a report of a problem for Volksswitch. The clinician sees all of it on screen first; it carries no folder, file or design names, and any text engraved on the keyguard is replaced with X's. The app sends nothing itself: the clinician copies the report, opens it in their own email program, or saves it as a file (§3).
- The heavy lifting (the OpenSCAD CAD engine) runs inside the browser's WebAssembly sandbox, which has no access to the host filesystem or network.
- It needs no installation and no administrator rights; it runs on locked-down workstations where installing desktop software is not permitted.
- The project is open source (CC0) and auditable.
If your main question is "can this app exfiltrate patient data or reach into the machine?" — the architecture is designed so that it structurally cannot: there is no server to send designs to, and design content is never part of any request the app makes. The only requests it makes (§4) go to the address you host it on, asking for the app's own files and for the current copy of the keyguard designer document; they carry nothing but the request itself.
- A single static web page (
app.html) plus bundled assets, served as plain files over HTTPS. The public deployment is https://keyguard.volksswitch.org/; you may equally serve it from an internal static host or a USB/offline copy. - It loads two bundled, local libraries — no third-party CDNs:
- OpenSCAD compiled to WebAssembly — the parametric CAD engine that turns a keyguard design into a 3D model.
- Three.js — renders the 3D preview in the browser.
- It is a Progressive Web App (PWA): after the first load, a service worker caches the app's own files so it can run offline. The service worker only ever caches the app's own same-origin files.
Clinician picks a project folder ──► browser reads the design files
│ │
▼ ▼
3D preview (Three.js) ◄── OpenSCAD-WASM renders the model in-browser
│
▼
Clinician clicks Export ──► browser "Save As" dialog ──► file saved locally
Nothing in this loop touches a network or a server.
- No collection. The app does not collect, transmit, or log any personal, health, or usage data. There is no telemetry or analytics of any kind.
- No uploads. Design files the clinician opens (
.scad,.json,openings_and_additions.txt, optional.pngor.jpgscreenshots) are read and processed in-browser only. They are never sent anywhere. - Local browser storage is used only for convenience and stays on the device:
- a reference to the last-opened folder (a browser "file handle") and its name, so the clinician can reopen it without re-browsing;
- UI preferences (e.g. theme);
- the keyguard designer's recent change notes, as last received with the update check, so Settings → About can list them offline. No design content and no personal data are stored in this way, and none of it is transmitted.
- Problem reports (Settings → Troubleshooting) are put together in the browser from the app's release, the keyguard designer file's version, the browser and screen size, the results of the setup check, recent error messages, and the design's settings. Names are left out — of the folder, the files and the saved designs — because they often name a student, and engraved or Braille text is replaced with X's of the same length. The clinician reads the whole report before doing anything with it. Nothing is sent: a report leaves the browser only if the clinician copies it, saves it as a file, or opens it in their own email program, which is handed a new message addressed to Volksswitch for them to send or discard.
- Clearing site data in the browser removes the above completely.
The app contacts exactly one address — the origin you host it on — and nothing
else. No CDNs, ad networks, font services, trackers, or analytics endpoints are
contacted at any time, and no second hostname needs reviewing or allowlisting. On the
public deployment that origin is keyguard.volksswitch.org.
Everything the app fetches comes from there:
- The app's own static files (HTML/JS/WASM/icons) and its own version manifest. Once the PWA has cached these, the app runs with no network at all.
- The keyguard designer file update check. The keyguard designer itself
(
keyguard.scad) is a document the clinician keeps in their own project folder, and it is revised over time. When a project is opened, the app requests one small JSON file, served from the same origin, stating the current designer version. The request sends no data — no identifiers, no design content, no usage information. The same file also carries the last few months of designer change notes, which the app keeps for Settings → About; opening that tab requests nothing. - The designer file itself, only on acceptance. If a newer version exists and the clinician explicitly accepts the offer, the app downloads the replacement from that same origin into the folder they chose. This never happens without a click, and it can be deferred.
- Setting up an empty project folder, only on acceptance. A clinician may start by creating an empty folder rather than by obtaining the designer file first. When the folder they choose contains no designer file, the app offers to put the current one into it, together with a starter openings-and-additions file if that is absent too; both come from the same origin, and both are written only after an explicit click. Files already in the folder are never replaced.
- A missing openings-and-additions file, supplied without asking. Every project folder needs this plain-text file; it is where openings written by hand are listed. When the folder a clinician opens has none, the app fetches the blank starter copy from the same origin and writes it into that folder, with no prompt. What is written is an empty template — placeholder rows that cut nothing, plus the documentation for the columns — so it alters no keyguard, and a clinician who has never heard of the file has no basis on which to answer a question about it. A file already in the folder is never read over or replaced.
- Check my setup, only on a click. Settings → Troubleshooting can check that the app still reaches its own address. It requests the same two small version files described above — the app's and the keyguard designer's — from the same origin, and nothing else.
- Any failure is harmless. If a check or a download cannot complete — offline, say, or a folder that turns out not to be writable — the app says so in its Console and carries on. The clinician keeps working with the file they already have; nothing retries or degrades.
The Help menu and the Troubleshooting tab link to pages on volksswitch.org — the
web app guide, the keyguard how-to pages, the how-to videos page, the documents page,
the Custom Openings page and the Known Issues page — and the
About tab links to its home page. Each opens in a new browser tab, and only when the
clinician clicks it. The app itself requests nothing from that site, and its help
text is built in, so a network that blocks volksswitch.org leaves the app working
fully; only those links fail. Contact Volksswitch and Email report hand a new
message to the computer's own email program; the app makes no request for them.
- Allowlisting the app's origin is the whole configuration. There is nothing else to permit. If the app loads for your clinicians, every feature described here works, including designer updates.
- This changed in release 102, and the change was made for schools. Previously the
designer update check asked
raw.githubusercontent.com. Networks that block that hostname — a common and reasonable policy, as it is widely used to stage files — left clinicians able to open the app but never able to receive a newer designer file, silently. Serving the file from the app's own origin removes that hostname from the app entirely.
You can confirm all of the above in the browser's DevTools Network tab or via a proxy/firewall log: beyond the app's own files you will see, at most, the version check described above and the designer or openings-and-additions file it brings down from that same address. Every one of them is a plain request for a file, and all of them are to the single origin you allowlisted.
- File System Access API (Chrome/Edge): when the clinician clicks Open Project and picks a folder, the app gets read and write access to only that folder, and only for that session (the browser re-prompts on later visits). The app does not and cannot silently scan the filesystem or read files outside the chosen folder. It writes into that folder only the project's own files: the saved designs, when a design is saved; the openings-and-additions file, when openings are edited in the app; a copy of the clinician's settings, when they ask for one; a resized copy of a screenshot already in the folder, when they ask for one (made in the browser and saved under a new name, with the original unchanged); and the designer file and starter files described in §4.
- Standard file names. The designer file is always named
keyguard.scadand the saved designskeyguard.json. Releases before 116 put the designer's version in both names (keyguard_v92.scad), so the first time the app opens a folder that still has such names, it renames the two files, with no prompt, and tells the clinician in the Console and, once, on screen. Nothing inside either file changes. Each file is copied to its new name and the original removed only once the copy is complete, so an interruption leaves at worst a spare copy. A folder holding two files of saved designs, or more than one designer file, is left exactly as it is. - Saving exports uses the browser's native "Save As" dialog. Write access is granted only to the specific file the clinician chooses in that dialog — there is no blanket write permission.
- Copying to the clipboard happens only when the clinician clicks a Copy button (the Console's, or a problem report's). The app writes text there and never reads the clipboard.
- The app requests no other permissions (no camera, microphone, location, notifications, clipboard-read, etc.).
Because there is no server, classic server-side risks (SQL injection, SSRF, authentication bypass, server data breach) do not apply. The relevant risks for a client-side app are browser-level (cross-site scripting) and the handling of design files from untrusted sources. These have been reviewed and hardened:
| Area | Risk | Mitigation in place |
|---|---|---|
| Console output | A malicious design file printing <script> via OpenSCAD echo |
Console is rendered as plain text (textContent), never as HTML. |
| Customizer / labels | Section names, file names, or folder names containing HTML | All such values are rendered with textContent/DOM construction, never innerHTML. |
| Deep-link loader | A crafted link making the app fetch & render a project from a foreign server | The internal test "fixture" loader is restricted to same-origin paths; cross-origin loads are refused. |
| CAD engine | A malicious design file abusing the OpenSCAD/import() parsers |
OpenSCAD runs in the WebAssembly sandbox — no host filesystem, no network. Worst case is a crashed/hung render tab (which is cancellable), not machine access. |
| Plugin / base-tag injection | Defense-in-depth | A Content-Security-Policy is set (object-src 'none'; base-uri 'self'). A stricter HTTP-header CSP is recommended in §8. |
| Supply chain | Compromised third-party CDN/library | Dependencies are bundled and served from the app's own origin — no runtime CDN. Source is public for audit. |
- Treat shared design files like any document. As with opening an email attachment or an Office file, opening a deliberately malicious keyguard project from an untrusted source is the main residual risk. The mitigations above (text-only rendering + WASM sandbox) are designed so that even a malicious design file cannot script the page or reach the machine — at worst it fails to render. Clinicians should still only open keyguard projects from sources they trust.
- Denial of service: a pathological design could make a render slow or hang the tab. Renders run in a background worker and can be cancelled; closing the tab fully recovers.
- Releases are deliberate and manual. Development happens on the maintainer's
own machine and is never published as it goes; a release is a separate, explicit
act of publishing (see
RELEASING.md), so clinicians are never served work in progress. The PWA cache is versioned, so a release is picked up cleanly rather than leaving a browser on a half-updated copy. - Because the app is static files, you may also self-host a pinned copy (or an offline copy) if you prefer to control exactly which version clinicians run.
The app is safe as static files, but if you host it you can add defense-in-depth at the web-server / CDN level. Suggested HTTP response headers:
Content-Security-Policy: default-src 'self'; object-src 'none'; base-uri 'self';
frame-ancestors 'none';
connect-src 'self';
img-src 'self' blob: data:;
script-src 'self' 'wasm-unsafe-eval' <hash-of-inline-script>; style-src 'self' 'unsafe-inline'
Strict-Transport-Security: max-age=63072000; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
Referrer-Policy: no-referrer
Notes:
frame-ancestors/X-Frame-Optionsprevent clickjacking (these only work as HTTP headers, not via the in-page<meta>tag).connect-src 'self'is sufficient — every request the app makes, including the designer update check and download (§4), goes to its own origin. No third-party hostname needs listing. (Before release 102 this had to includehttps://raw.githubusercontent.com; it no longer does, and leaving it out no longer switches update notices off.)- The full
script-srcrequires a hash or nonce for the app's inline script; the in-page<meta>CSP shipped with the app intentionally omitsscript-srcso it cannot break the app — the stricter policy belongs at the header level, validated in a browser before rollout. - Serve over HTTPS (also required for the File System Access API and service worker).
- Source code: https://github.com/Volksswitch/keyguard-web (CC0).
- Network behavior: open the app, then in DevTools → Network, confirm that the only traffic is the app's own files plus — at project open — the designer version check described in §4 and any starter or updated file it fetches from that same origin (and, if the clinician runs Check my setup, the same version files again); or observe firewall/proxy logs. There is no request to any other host.
- Storage: DevTools → Application → Storage shows the local IndexedDB/handle and preferences described in §3.
If you believe you have found a security issue, please report it via the project's GitHub repository (open an issue, or contact the maintainer listed there: Volksswitch — https://www.volksswitch.org). The project is volunteer-maintained and public-domain; please include enough detail to reproduce.