mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4484] [Benchmark] results.json is written without the redaction the other report files get #2009
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2009
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @coryjett on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4484
Area
Benchmark
Desktop app, Terminal or source?
Terminal (Linux release 0.2.7, Control 0.1.52); the same code is on
mainat46c152a1.What happened
strata bench runwritesresults.jsonwithout the redaction it applies to its other files. Instrata_cli/bench_standard.py(~line 958) the reportdocisjson.dumps-ed and written as it is, whileoutputs.jsonlandconfig.jsongo throughfacts.redact_object(..., redact)(~lines 907-913),engine.logthroughredact(text)(~919) and the README throughreport_markdown(doc, redact)(~960). Onlyrun.commandis redactedearlier (
cli.py~1273).So text the operator or the server puts into the report reaches
results.jsonunredacted:configuration.track_notesand
hardware.background_workloads(both free text from the command line),model.custom_pack,requests[].error.message(server text andstr(exc)),STRATA_*environment values underconfiguration.experimental_options, and values inextensions.other_engine_options.Example:
--track-notes "models in /home/alice/m". The README shows/home/<user>/m;results.jsonconfiguration.track_noteskeeps/home/alice/m. docs/BENCHMARK_PROTOCOL.md (~line 46) says home folders, userand host names, private addresses and keys are replaced, and the module docstring says the same.
Suggested fix:
doc = facts.redact_object(doc, redact)beforevalidate(doc), and a test intests/terminal/test_bench_standard.pythat puts a home path in--track-notesand asserts it is gone fromresults.json. Happy to send the PR.Smallest steps or command that reproduce it
strata bench run --profile <any> --track custom --track-notes "models in /home/alice/m", then grepresults.jsonfor/home/alice.Reproduction status
Reproduced by reading the code (the write path above); our own run in #4468 had no private text in those fields, so
its results.json happens to be clean.
Strata version
0.2.7 (engine 0.1.52, Control 0.1.52); code checked on
main46c152a1.Graphics card, memory and system
Not hardware-specific.
Model, size and settings
Not model-specific.
Logs
None needed.
@Niko1221 commented on GitHub (Nov 5, 2026):
Hello coryjett,
Thank you. In Strata 0.2.11
bench runwrites results.json through the same redaction as the other report files, before it is validated, so the file that is checked is the file that is written. We also fixed a leak we found while testing: a key written next to a hyphen (pack-<key>) is now replaced, and redacting twice no longer produces<<user>>. The machine's login and host name are replaced only in the text people and servers wrote, not in the report's own field names. If you find a value that still appears in clear in a result file on 0.2.11, please open an issue with the file name and the field (not the value).The Strata project