Files
magpie/internal/gui/assets/plugins
yetone 310efb635c masking: a record from before a restart says its text was in memory only
brianeee2 on X: in Docker, the masked content can't be seen after the
container restarts; is a mounted folder missing?

No folder is missing. Reproduced on xiaomi-gpu with the image built from
905166d78 (volume on /config, a fake provider with redaction on, a
request carrying DB_PASSWORD=...): /config/magpie/masking/<day>.jsonl
holds the record and survives `docker restart`. The request's text, the
lines around each placeholder, the Sent body and the values behind the
placeholders are memory only by design (maskrec, gateway-routing.md,
README, privacy page; TestNoValueOnDisk), so after a restart they are
gone in any install, Docker or not.

What was wrong is the page. A record with neither body nor snips (every
record from before a restart) said "Still here: ... the line around each
placeholder as the vendor got it" and, under it, that the text was kept
in memory only: one claim false, the two contradicting each other. It
now says once that the request's text and values were kept in memory
only, never on disk, and that the record keeps each value's kind, length
and first characters. The old msk-none line's key goes from i18n.js;
the new one is in en, zh, zh-TW, ja and de.

Run:
- masking-records.test.cjs new test, chromium + webkit, 5 languages at
  640px, on mote: 10/10. Broken by hand: with HEAD's page.js it is red
  ("no second message").
- GUI files mask*, masking*, privacy*, redact*, i18n-keys,
  routing-masking, plugin-page on mote: 380/380.
- go test ./internal/gui/ ./internal/maskrec/ on mote: ok.

Not done: snips and bodies are still not kept on disk; keeping them
would break the documented never-on-disk promise, an owner's call.
What the answer put back (Back) is memory only too and isn't reworded.
2026-10-29 07:38:50 +08:00
..