Skip to content

Test Report — Credentials and personal data in the application log, live on both engines and both packs

The live drive of RFC-0019 (draft-design-specs/log-credentials-and-pii-masking.md, section 7), conducted 2026-12-06 on a developer's machine. Each of the four runtimes ran twice. The first run is the control: the released version, exported from its tag, where a query string, a cookie and a URL's user id and password are expected in the log. The second run is the current main, after the eight work packages, with the same requests. Until this drive the rules had been proven in each runtime's own tests and shared vector files, and in probes of single work packages. This is the end-to-end test that the promotion of RFC-0019 to ADR-0040 was held on.

Result in brief

  • Every scenario held in all four runtimes, and every control showed the value that the build no longer writes. A result of "nothing found" in the build is therefore a finding and not an absence of evidence.
  • The trace path holds no query string. The released versions wrote ?token=sample-word&user=someone into every trace record of the request, into the exported span and into the audit store's trace_path column. The builds write the method and the path in all three places.
  • A URL that a runtime writes holds *** for a user id and password and no query string. In both engines the released API fetcher wrote the provider's URL as configured to its INFO line and to its url annotation; the builds write GET http://***@127.0.0.1:9321/provider/items/100. The provider still received its query parameter: the request itself is not changed.
  • A target with a user id and a password is refused before the call. The released engines failed such a call with a text that names the user id and the password, and the released Node.js pack with a text that holds the whole URL, which also reached a trace record and the exported span. The builds answer 400 with a text that names neither.
  • The fetcher's header logs save *** for Cookie and Set-Cookie as well as for Authorization, which the released version already masked.
  • The trace record is written at the level warn. The released Rust engine and both released packs wrote no line at that level; their builds write the request's trace records and nothing else.
  • The elective filter masks when it is adopted and changes nothing when it is not. With the sample rules an e-mail address in a request path is written <e-mail> in the application's line and in the trace records; without the filter the same run writes the address.
  • No defect was found. Three observations are under Findings; what the drive did not cover is listed after them.

What was under test

Runtime Control: the released version Build: the current main Runs on
Java engine v4.12.32 at a4254c0c7 b315ad4ba OpenJDK 27.0.1
Rust engine v4.12.32 at 8ec04217 da911654 the stable toolchain, debug build
Python pack v4.12.31 at 300cd65 2a8e0e4 Python 3.14.7
Node.js pack v4.12.31 at 9e6dfdc cf5b4a8 Node.js 26.14.0

Each control was built from a git archive of its tag in a folder outside the repositories; the Java control's examples were packaged in that folder's own reactor and never installed. Every application wrote the text log format, and each run's application logged or was started from a path that says which source it ran.

The applications.

  • Java engine: examples/composable-example for the REST edge, the OpenTelemetry forwarder and the level; examples/minigraph-playground with two small graphs for the API fetcher; examples/lambda-example for the filter, as built and as a copy that adopted extensions/log-masking. Each ran from a copy of its jar.
  • Rust engine: examples/hello-flow, examples/minigraph-playground with the same two graphs, and a scratch copy of examples/hello-world whose main installs the masking logger when the run asks for it.
  • The packs: one small application for each pack, with a traced REST entry GET /api/hello/{name}, an entry that calls an Event-over-HTTP endpoint written with a user id and a password, and the log-masking extension installed by a switch; and a second one that loads the pack's LLM helper with the audit store on.

The stand-ins, all on the loopback address: a receiver in the place of an OTLP collector, which keeps every exported body; a stub provider that answers JSON with a Set-Cookie header; and, for the audit store, a stand-in for the model provider that answers one short streamed message, so that no model was called. The audit store is a PostgreSQL 17 container with the packs' schema file.

The values. Every credential and every person in the drive is a placeholder: sample-word as a token and as a password, sample-user, someone, sample-cookie, sample-key and someone@example.com. A check is a count of those words in a run's log and in what the receiver kept, and the text of a line or a row.

Scenario 1 — The trace path of an inbound request

One request with the query string ?token=sample-word&user=someone to a traced entry of each runtime.

Runtime Request Control: trace records with the query string Build The build's path
Java engine GET /api/profile/100 6 of 6 0 of 6 GET /api/profile/100
Rust engine GET /api/hello/world 6 of 6 0 of 6 GET /api/hello/world
Python pack GET /api/hello/world 2 of 2 0 of 2 GET /api/hello/world
Node.js pack GET /api/hello/world 2 of 2 0 of 2 GET /api/hello/world

The Java example answers 404 for a profile that does not exist; its six records are written all the same. In each build the log of the run holds none of the placeholder words of the request. The released Python pack also wrote its host's access line with the query string; the build's access line ends at the path.

Scenario 2 — The exported span

The same request with the OpenTelemetry forwarder on and the receiver as its endpoint.

Runtime Bodies received Control: sample-word in them Build The path is in the build's spans
Java engine 6 6 0 yes
Rust engine 6 6 0 yes
Python pack 7 and 4 2 0 yes
Node.js pack 4 4 0 yes

The Java forwarder sends its bodies compressed and in chunks; the receiver reads both. The Node.js control's count includes the error text of Scenario 3, which the released pack exported as well, with the user id.

Scenario 3 — A URL with a user id and a password

The engines: a provider of the API fetcher. Two graphs, deployed through a manifest of the drive's own. The first calls http://127.0.0.1:9321/provider/items/{id} with a query parameter token; the second calls the same provider through http://sample-user:sample-word@127.0.0.1:9321/....

Control, both engines Build, both engines
The fetcher's INFO line and its url annotation, first graph GET http://127.0.0.1:9321/provider/items/100?token=sample-word GET http://127.0.0.1:9321/provider/items/100
The same, second graph The URL as configured, with the user id, the password and the query string GET http://***@127.0.0.1:9321/provider/items/100
The answer of the second graph 500, with a text that names sample-user:sample-word@127.0.0.1 400, Target host must not contain a user id or a password
The placeholder words in the run's log sample-word 14 times, sample-user 3 times none

In both runs of both engines the stub provider received GET /provider/items/100?token=sample-word: the rule changes what is written, and never the request.

The packs: an Event-over-HTTP endpoint. A function calls a route through http://sample-user:sample-word@127.0.0.1:{port}/api/event.

Pack Control Build
Python The call went out and was answered 200 400, Event-over-HTTP target must not contain a user id or a password - send an access token or an API key in a request header
Node.js 500, with the runtime's own text, which holds the whole URL; the text is in the answer, in a trace record and in the exported span 400, the same text as the Python pack's

In both builds the log and the exported spans of the run hold neither the user id nor the password.

The first graph sends Authorization: Bearer sample-key and Cookie: session=sample-cookie, turns on log-request-headers and log-response-headers, and returns what the two logs saved. The provider answers with Set-Cookie: session=sample-cookie.

Header as saved Control, both engines Build, both engines
authorization of the request *** ***
cookie of the request session=sample-cookie ***
Set-Cookie of the response session=sample-cookie; Path=/; HttpOnly ***

The released version masked Authorization already (4.12.32); the two cookie headers are this decision's. A header of another name, such as accept, is saved as it is in both runs.

Scenario 5 — The trace record at the level warn

The request of Scenario 1 with the level at warn: LOG_LEVEL=WARN for the Java engine and the packs, -Dlog.level=warn for the Rust engine.

Runtime Control: lines, trace records Build: lines, trace records
Java engine 6 trace records 6 trace records
Rust engine 0, 0 6, 6
Python pack 0, 0 2, 2
Node.js pack 0, 0 2, 2

For the Java engine this run does not tell the control from the build: the released log4j2 files gave the record's logger a level of its own, so the record was written at warn before. That the build writes it past the level check was shown by the fifth work package's probe at the level off. For the other three runtimes the control wrote nothing and the build writes the records of the request and no other line.

Scenario 6 — The elective filter, off and on

Builds only: the module does not exist in the released versions. One request whose path parameter is someone@example.com; the packs' function also writes a line of its own with that name and api_key=sample-key. Each "on" run uses the sample rule file as shipped.

Runtime Off: the address in the log On: the address On: <e-mail> The line Log masking is in force
Java engine 4 0 4 written, 4 rules
Rust engine 6 0 6 written, 4 rules
Python pack 5 0 5 written
Node.js pack 4 0 4 written

With the filter on, the trace records hold GET /api/hello/generic/<e-mail> in the Java engine and GET /api/greeting/<e-mail> in the Rust engine and stay structured, and the packs' own line reads api_key=***. With it off, nothing is masked and no line of the module is written. The "off" runs of the packs are also the proof that a line of an application is the application's own: the build writes api_key=sample-key as the function logged it.

Scenario 7 — The audit store's trace_path column

Each pack's LLM helper with llm.transcript.audit: postgres, one call of llm.chat behind a traced entry GET /api/ask, requested with the query string of Scenario 1. The helper's SDK was pointed at the model stand-in, and its key was a placeholder.

Row Pack Version trace_path of the turn
1 Python control GET /api/ask?token=sample-word&user=someone
2 Python build GET /api/ask
3 Node.js control GET /api/ask?token=sample-word&user=someone
4 Node.js build GET /api/ask

Each call was answered 200 and added one turn row. The two packs write the column from the trace path of the request, so the edge's rule reaches the store without a change to the helper.

Findings

No defect was found, and nothing was changed during the drive. Three observations:

  • The Java engine's control at warn is no control. Scenario 5 says why. The report keeps the row so that the four runtimes read the same way.
  • The released Node.js pack exported the URL too. The pack's survey had found the runtime's error text in a trace record; the control showed the same text in the exported span.
  • The released Python pack accepted the endpoint. The call was answered 200 where the build answers 400. This is the change that the pack's upgrade note marks as an action: a peer's credential travels in a request header.

What the drive did not cover

  • A real telemetry backend, a real model and a real provider. The receiver, the model stand-in and the stub provider stood in for them.
  • The json and compact log formats. Every run wrote text; the fifth and sixth work packages' probes ran the three formats.
  • The other sites of the URL rule: the relay and WebSocket client targets, the start-up lines of the schema codec and of the OAuth allow-list, server.url of a task, and the two lines of the packs' ask-person extension. The Java engine's WrittenUrlTest and MaskedUrlSitesTest, their Rust twins and the packs' tests hold them.
  • fetcher.mask.extra.headers, the refusal texts for a setting, and the HTTP client's dump at DEBUG, which the decision leaves as it is.
  • An engine and a pack in one request. Each runtime was driven at its own edge.
  • The libraries' own lines, and the ways out of a run that are not the log, which the decision declares as not surveyed.

Reproduce

Export each control with git archive <tag> into a folder of its own and build it there: the Java examples with mvn package -DskipTests -pl examples/composable-example,examples/minigraph-playground,examples/lambda-example -am, the Rust examples with cargo build -p hello-flow -p minigraph-playground, the Node.js pack with npm run build; the Python pack runs from the export's src folder on the module search path. Build the current main of each repository the same way.

# Scenarios 1, 2 and 5 - the edge, the exported span, the level (the Java engine; hello-flow is the Rust twin)
OTLP_API_ENDPOINT=http://127.0.0.1:4318/v1/traces java -Dlog.format=text -Dotel.forwarding=true \
  -Dotel.exporter.otlp.headers= -jar composable-example.jar
curl -s 'http://127.0.0.1:8100/api/profile/100?token=sample-word&user=someone'
LOG_LEVEL=WARN java -Dlog.format=text -jar composable-example.jar

# Scenarios 3 and 4 - the fetcher, with a manifest that lists the drive's two graphs
java -Dlog.format=text -Dgraph.model.automation=file:/path/to/graphs.yaml -jar minigraph-playground.jar
curl -s -X POST -H 'Content-Type: application/json' -d '{"item_id":"100"}' \
  'http://127.0.0.1:8085/api/graph/drive-fetch?token=sample-word&user=someone'

The two graphs have one fetcher node, one dictionary item and one provider each. The first provider's input maps text(sample-word) -> query.token, text(Bearer sample-key) -> header.authorization and text(session=sample-cookie) -> header.cookie, and its feature list holds the two header logs; a mapper node copies fetcher.header.request and fetcher.header.response into the output. The second provider's URL is written with the user id and the password. The filter follows Adopt it of each runtime's Log Masking page, and the audit store follows the helper's README with llm.transcript.audit.single: true. A check is a search for the placeholder words in the run's log and in what the receiver kept.