Learn
How the local report explorer keeps your report private
The local report explorer lets you open a report.json file the CLI already produced and explore it in your browser. Here is exactly what happens when you select a file, with nothing simplified or omitted:
- You select a file using an ordinary
<input type="file">control. - The browser's
File.text()method reads the file's contents as a string, entirely within the browser — this is not the olderFileReaderAPI, though it serves the same purpose. - That string is parsed with
JSON.parse(). - The parsed data is validated against the same report schema the demonstration pages use, and normalized into the explorer's internal representation.
- The resulting, normalized report is held only in React's in-memory component state.
- The page renders that in-memory state — nothing further happens to the file.
What never happens
- The file is never uploaded to any server.
- No network request is initiated during import or while you interact with the explorer.
- No
localStorage,sessionStorage, cookie, IndexedDB database, or service-worker cache is used to store the file or the parsed report. - The report is never encoded into the page's URL, as a query string, fragment, or otherwise.
- No browsing history entry is created for an imported report.
- Reloading or closing the browser tab clears whatever was imported.
- The explorer never requests a kubeconfig file, a GitLab access token, or any other credential.
A browser-enforced backstop
In addition to the application code above never issuing a network request, the explorer route is served with a restrictive Content-Security-Policy that includes connect-src 'none'. This instructs the browser itself to block any network request the page's code might issue, so the no-network guarantee does not rest on application code alone.