Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@patronage/launch-logging

Latest version: v0.3.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: ccorda, kylehotchkiss, patronagechris
0 Stars
0 Forks
4 Versions
506 Downloads
TypeScript Repo language

Scan summary

@patronage/launch-logging was last scanned on 24 Nov 2026 at version 0.3.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions, all published within 6 days (19–24 Nov 2026).
  • Findings: No rules fired in version 0.3.0.
  • Downloads: 506 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.0 LATEST 24 Nov 2026 No rules fired
0.2.0 20 Nov 2026 No rules fired
0.1.0 19 Nov 2026 No rules fired
0.0.0-stage 19 Nov 2026 Not shown

No rules fired in 0.3.0

Findings

Findings for v0.3.0. 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 0.3.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@patronage/launch-logging

Logging for Launch's Workers and the provisioning for a site's log store. The Worker wrapper and the Cloudflare helpers are on npm as @patronage/launch-logging; the logging:provision command runs only inside the Launch repo. See ADR 0016 for the decision and docs/spikes/43-logging-logpush.md for the evidence.

Logging is optional. With nothing configured, each Worker prints one JSON line per request to its console, and nothing else happens. Workers Logs keeps those lines for seven days when the Worker's cloudflare.config.ts turns observability on, as Launch's Workers do.

Export Use
withRequestLog(entry, { service }) Wrap a Worker's fetch entry (vinext's included) so every request emits one evlog wide event as a JSON console line: method, path without the query, status, duration, cf-ray, colo, country and ASN, plus cache (vinext's page cache result: HIT, STALE or MISS) and upstream totals. Build assets are skipped. Other handlers on the entry are kept.
withProbeGuard(entry, { allow?, extra? }) Answer scanner paths (/.env, /wp-login.php, /cgi-bin/…) with an empty 404 without calling the entry. Also at @patronage/launch-logging/probe, which imports nothing, with isProbePath(pathname, options?). See Probe guard.
timeUpstream(name, work) Time a call to an upstream and add it to the request's upstream.<name> as { calls, errors, ms }. Outside a wrapped request it only runs work.
timedD1(binding, name?) Wrap a D1 binding so each query counts toward upstream.d1 (or name).
withDataCacheLog(handler) Wrap a framework data cache handler, such as the one vinext's kvDataAdapter creates, so the request's data reads count toward dataCache (hits, stale, misses, readErrors, writeErrors) and a read or write that fails logs a data_cache.error warning. Failures are rethrown, so the framework handles them as before. See Data cache.
@patronage/launch-logging/cloudflare Idempotent Cloudflare API helpers behind the provisioning script: ensureBucket, ensureLogpushJob, ensureWordPressStream, and token helpers.

Wide events from a Worker

// apps/<app>/worker.ts, named as `entrypoint` in cloudflare.config.ts
import { withRequestLog } from "@patronage/launch-logging";
import entry from "vinext/server/fetch-handler";

export * from "vinext/server/fetch-handler";
export default withRequestLog(entry, { service: "web-wordpress" });

Pass sampleRate (0 to 100) to keep only part of the healthy traffic; responses with status 400 or more, and requests slower than slowMs (1000 by default), are always kept.

upstream covers the work done before the response starts, which is the same span as duration. Reads inside a Suspense boundary that streams later aren't in it; traces show those. web-wordpress times its WPGraphQL and media reads as upstream.wordpress, and Payload times its D1 queries as upstream.d1.

An upstream call that fails after the event was emitted, such as the background refresh of a stale data cache entry, can't be added to it, so it logs its own upstream.failed error line with afterResponse: true, upstream, durationMs and the event's requestId.

Data cache

vinext treats a data cache read that fails as a miss and drops a write that fails, so a broken store shows only as slower pages and more reads sent to the CMS. web-wordpress points vinext's cache.data at a module that wraps the KV adapter:

// lib/data-cache-adapter.ts; vite.config.ts sets cache.data.adapter to this file
import { withDataCacheLog } from "@patronage/launch-logging";
import createKvDataCacheAdapter from "@vinext/cloudflare/cache/kv-data-adapter.runtime";

export default (input: Parameters<typeof createKvDataCacheAdapter>[0]) =>
  withDataCacheLog(createKvDataCacheAdapter(input));

Only data entries count (kind FETCH); rendered pages are the event's cache field. A data_cache.error line carries cacheError (read or write), the error's name and the requestId, never the store's message, which can quote the cache key. Writes usually settle after the response, so a write failure is more often on its own line than in dataCache.writeErrors.

To keep events past seven days, deploy with WORKER_LOGPUSH=true. cloudflare.config.ts turns on Workers Trace Events Logpush for the Worker, and the account's workers_trace_events job (below) copies every log line to R2. Each evlog event arrives as an entry in the trace event's Logs array. For a Worker deployed by Workers Builds, set the variable before running pnpm run builds:configure, so builds pass it on.

Probe guard

Every public site gets requests for paths no Launch site serves. On a headless site each one would still run the framework's router, render a not-found page and maybe read from the CMS before the 404 goes out. withProbeGuard answers them first:

import { withProbeGuard, withRequestLog } from "@patronage/launch-logging";
import entry from "vinext/server/fetch-handler";

export * from "vinext/server/fetch-handler";
export default withRequestLog(withProbeGuard(entry), {
  service: "web-wordpress",
});
  • Order. Put the guard inside withRequestLog. A guarded request is then still one event, with status 404 and probe: true, and nothing else is added to it.
  • Response. Status 404 (the paths never existed, so not 410), an empty body and cache-control: public, max-age=3600.
  • The list. A path is a probe when any segment is a server-side script file (.php, .php5, .phtml, .asp, .aspx, .jsp, .cgi), a .env file (.env, .env.local, …), cgi-bin, or a version control, secrets or editor name (.git, .svn, .hg, .bzr, .aws, .ssh, .docker, .npmrc, .htaccess, .htpasswd, .DS_Store, .vscode, .idea, .circleci). Case and percent-encoding are ignored. /.well-known/…, page paths, the media route, /wp-content/uploads/…, /wp-json/… and /wp-admin itself are never matched; probe.test.ts keeps both tables.
  • Options. allow lists paths the site does serve and wins over everything else; extra adds the site's own. An entry ending in / covers that path and everything under it; any other entry matches only that exact path.

isProbePath(pathname, options?) is the same check as a pure function, and @patronage/launch-logging/probe exports both without importing evlog, for a Worker that doesn't log.

Provision the log store

CLOUDFLARE_API_TOKEN=... CLOUDFLARE_ACCOUNT_ID=... \
  pnpm --filter @patronage/launch-logging logging:provision \
  --name demo [--script <worker>]... [--no-account-logs] \
  [--zone <zone id>] [--wordpress] [--dry-run]

It creates whatever is missing, by name:

Resource Where it writes
R2 bucket <name>-logs
Logpush job workers_trace_events (account) logpush/workers_trace_events/{DATE}/
Logpush job audit_logs_v2 (account) logpush/audit_logs_v2/{DATE}/
Logpush job access_requests (account) logpush/access_requests/{DATE}/
With --zone: http_requests, firewall_events logpush/<dataset>/zone=<id>/{DATE}/
With --wordpress: Basin stream, sink and pipeline events/wordpress/year=/month=/day=/

On an account that other sites share, pass each of the site's Workers with --script so the workers_trace_events job keeps only theirs, and pass --no-account-logs to leave out the audit and Access jobs, which cover the whole account.

Logpush files are gzipped NDJSON with every field the dataset has. A job the account's plan does not allow is reported and skipped, and the script exits non-zero so you notice.

The script needs R2 credentials for Logpush and the sink. Pass a pair as LOGS_R2_ACCESS_KEY_ID and LOGS_R2_SECRET_ACCESS_KEY, or leave them unset and, when a job or sink has to be created, the script creates one token that can write only to that bucket and prints its pair once. A run that finds everything in place creates no token. With --wordpress it also creates a send-only Pipelines token (or reuses LOGS_PIPELINES_SEND_TOKEN) and prints the two constants for wp-config; see wordpress-shared/patronage-logging.

The API token needs Account Settings Read, Logs Edit (and zone Logs Edit for --zone), Workers R2 Storage Edit, Pipelines Edit for --wordpress, and API Tokens Edit unless you pass the credentials in.

Not here

What reads these logs and what it concludes (detection, alerting, dashboards) is not part of Launch.

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @patronage/launch-logging

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229