Scan your whole stack
From OX Research Newsroom
Latest version: vgit:fc60071879d300cb057ce7950e7ccf5329344f2f
reliant-labs/forge/telemetry was last scanned on 26 Nov 2026 at commit fc600718. Risk score 10 of 100 (low). No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| fc600718 | No rules fired |
Findings for commit fc600718. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes fc600718; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Forge scaffolds, injects and initialises the HyperDX browser SDK in Next.js
and Vite frontends: @hyperdx/otel-web, which @reliantlabs/forge-web-runtime
drives itself, with session replay recorded by the runtime's own rrweb
recorder. Both are the runtime's exact optional peers (from 0.14.0), so the app
declares them at the runtime's versions: every web scaffold does, and
forge generate adds them to any frontend whose sources import
@reliantlabs/forge-web-runtime/telemetry. A consumer that never imports it
(Expo, an Electron main process on /node) installs neither. It captures
uncaught errors and unhandled rejections, console.*, fetch/XHR spans, document
load, long tasks and web vitals, and ships them as OTLP to ClickStack. There is
no Sentry SDK and no Sentry-protocol adapter. React Native frontends get
nothing yet: there is no DOM to instrument and the browser SDK does not resolve
there.
You write none of the wiring. src/lib/otel_gen.ts (regenerated every
forge generate; do not edit) reads the env and calls
initBrowserTelemetry from @reliantlabs/forge-web-runtime/telemetry, and
providers.tsx (Next.js) / main.tsx (Vite) call its initTelemetry() once.
It is idempotent, a no-op without a DOM or while telemetry is off, and never
throws.
The frontend reports service.name <project>-<frontend> (e.g. shop-web),
exported from the same file as SERVICE_NAME. The generated frontend dashboard
and frontend alert defaults filter on exactly that value. Code that starts the
SDK itself instead of calling initTelemetry() must pass SERVICE_NAME as
serviceName: any other name is invisible to the generated observability. The SDK is the page's only tracer provider: it replaces the old
OTel web wiring rather than joining it, because two providers cannot both
register globally.
/_otel, and no secret in the bundleThe browser POSTs OTLP/HTTP to <basePath>/_otel/v1/{traces,logs} on its own
origin. Something in front of the page forwards that to a collector's OTLP/HTTP
port, and that hop owns any credential. The SDK insists on an apiKey, so it is
sent the public placeholder forge-browser-public; a collector that enforces
ingestion auth (ClickStack collectorAuthenticationEnforced) must have the proxy
strip that header or replace it with the real key. Same-origin also means a CSP
of connect-src 'self', no CORS preflight, and no third-party host for an
ad-blocker to list.
| Where | Who routes /_otel |
Upstream |
|---|---|---|
next dev |
a dev-only rewrites() in next.config.ts to the runtime's loopback relay (startOtelRelay) |
OTEL_EXPORTER_OTLP_ENDPOINT, default http://127.0.0.1:4318 |
vite |
the runtime's forgeOtelProxy() plugin in vite.config.ts |
same; the /_otel prefix is stripped |
deployed on forge.OnHosted |
the platform, on the site's own origin; forge writes OTEL_ENDPOINT = "/_otel" into its runtime config unless you declare one |
the platform's ingest |
| deployed anywhere else | your ingress | a collector's OTLP/HTTP port |
Both dev proxies come from @reliantlabs/forge-web-runtime and forward only a
same-origin page's POST /v1/{traces,logs,metrics} up to 8 MiB (403 for a
foreign or missing Origin, 405 for another method, 404 for another path, 413
above the cap, none of them sent upstream), with only its content-type and
content-encoding: never its cookies or authorization.
A Next.js frontend builds as a static export (output: static), which has no
server, so rewrites do not exist in the built site; a built Vite SPA is plain
files. So browser telemetry in a deployed environment is on by default on
Reliant hosting (forge.OnHosted), where the platform answers /_otel, and
off by default everywhere else: there the ingress must route
<basePath>/_otel/* to the collector, and until it does, leave the frontend's
otel_endpoint unset and the production bundle sends nothing, rather than
POSTing to a 404. On any runtime, otel_endpoint = "off", or the env's
observability.signals.browser = False, turns it off.
A value that differs per environment is read from the runtime config document
(config.js): a build variable is inlined at build time and follows that bundle
into every environment it is promoted to.
| Knob | Runtime key (config.js) |
Declared by | Default |
|---|---|---|---|
ingest path (off or empty disables) |
OTEL_ENDPOINT |
KCL config.otel_endpoint or runtime_config |
/_otel in dev and on forge.OnHosted, empty elsewhere |
deployment.environment |
ENVIRONMENT |
KCL config.environment or runtime_config |
the forge env name |
product analytics mode, the tier ceiling (off / aggregate / identified / full) |
ANALYTICS_MODE |
KCL telemetry = forge.BrowserTelemetry {analytics = forge.Analytics {mode = "full"}} (per frontend, per env), or runtime_config; forced to off when the env switches browser telemetry off |
identified: cookieless, a signed-in user's events carry their opaque id (rendered only when it differs; see observability/product-events) |
session replay (masked; full tier only) |
OTEL_REPLAY = "true" |
KCL telemetry = forge.BrowserTelemetry {replay = True} (per frontend, per env), or runtime_config |
on in new projects, off in existing implicit-off envs |
| console capture | CONSOLE_CAPTURE = "false" |
KCL telemetry.console_capture = False |
on |
| replay sample rate | REPLAY_SAMPLE_RATE |
KCL telemetry.replay_sample_rate |
every session |
page_viewed {route} and page_engaged {route, view_id, engaged_ms, scroll_pct} product events |
PAGE_VIEWS = "false" |
KCL telemetry.page_views = False |
on |
| signed-in user id on every event | IDENTIFY_USER = "false" |
KCL telemetry.identify_user = False |
on with native sign-in |
redacted request shape on a failed RPC's span (forge.forensics; see frontend-runtime/transport) |
RPC_FORENSICS = "false" |
KCL telemetry.rpc_forensics = False |
on |
service.version |
— (a build fact: NEXT_PUBLIC_APP_VERSION / VITE_APP_VERSION) |
the deploy | the build id a deploy injects (12-hex hash of the frontend source and build env), unless you set it |
For a deployed environment, declare otel_endpoint = "/_otel" in the
frontend's KCL config block. Every web frontend's config.js names its
environment, so ENVIRONMENT needs no declaration. A literal
{NEXT_PUBLIC_,VITE_}OTEL_ENDPOINT / ENVIRONMENT in the frontend's
env_vars is carried into the runtime config as well (OTEL_REPLAY is not:
use telemetry.replay), so older
declarations keep working (on forge.OnHosted, only the ingest path: the
control plane writes that document's ENVIRONMENT). A build variable only exported in the shell at
npm run build is a deprecated fallback: used when config.js lacks the
key, with one console.warn per page load naming the KCL field to move it to;
it is removed in the next major.
The API origin (API_URL) feeds tracePropagationTargets, resolved as
connect.ts resolves it, so a cross-origin API still gets a traceparent.
environment is emitted as both deployment.environment.name and the legacy
deployment.environment that HyperDX's default sources key on.
Product analytics run in a tier, ordered off < aggregate \<
identified < full: the lowest of the app's analytics mode
(ANALYTICS_MODE from the runtime config in a generated frontend; absent
means identified), the consent the app has signalled, and the browser's
GPC / DNT:
identified (the default): product events and page views flow with
no persistent id, and nothing is stored on the device — no cookie, no
localStorage, no sessionStorage — and a signed-in user's events carry their
opaque id. The HyperDX SDK's __rum_sid session cookie is answered from
memory (installRumSessionStore), so spans still group into one session
while the page is open. Visitors are counted by the platform's ingest edge
with a daily-salted hash it forgets; the page sends no fingerprinting input.aggregate (mode aggregate, and always under GPC / DNT): as
identified, but strictly anonymous: no user id on browser events, even when
signed in.full: analytics: "full" and grantAnalyticsConsent(). The
session cookie, a persistent visitor.id, stored campaign attribution
(user_identified, withAttribution) and session replay.off: analytics: "off" or optOutOfAnalytics() (remembered in
forge.analytics_opt_out, the one thing stored below full). No product
events and no user id; errors and traces still flow.import { grantAnalyticsConsent, revokeAnalyticsConsent, optOutOfAnalytics } from "@reliantlabs/forge-web-runtime";
Call grantAnalyticsConsent() on every page load once your consent manager
says yes (the runtime does not remember consent); revokeAnalyticsConsent()
erases what full stored and keeps the running session in memory;
optOutOfAnalytics() is the person's objection to analytics at all. A start
in a mode that can never reach full erases ids an earlier page load stored.
Under GPC / DNT the browser's events carry no user id (not even from
setTelemetryUser), and no auth event is sent. enableAttribution() is a
deprecated spelling of mode full + consent. The contract, and what each tier sends:
observability/product-events.
Where a visit came from. In full, the stored attribution keeps
rid, utm_*, ref (the host of the page that sent the visitor, never a URL)
and lp (the entry page's path). The first page load that names neither takes
them from itself. withAttribution(url) passes all of them on, and the first
sign-in's user_identified carries referrer_host and landing_path. Below
full, withAttribution passes on only this page load's utm_* and the
referrer's host: no id, nothing is stored, and only to a link on the page's own
host or on a site the call names — withAttribution(url, { sites: ["example.com"] }) admits example.com and its subdomains. A link anywhere
else is returned unchanged, so wrapping every outbound link never hands a
campaign or a referrer to a third party.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.