ac4af582301a4e8a29245dbba767eba31334ddf9
6
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
7cb437ee16 |
masking: its alert sits with its other settings, and its Built-in row says when nothing is masked
The Masking alert was the one masking setting on the Masking page, under
the request list, away from every other one in Settings › Privacy (and
in Settings › Usage before that, where nb5p looked for it). It is now
the first row of Privacy's "when a value is found" list, out in gateway
mode as before. The Masking page is the list of masked requests alone.
Masking turned on with no kind, no personal data and no word of the
user's masks nothing, and its Plugins › Built-in row said only where
its settings are. It now says "Nothing is masked yet" before the link
(the scattered settings audit after netube99 on X).
Run in the tree with this change and the rest of the audit's fixes
(mote, base
|
||
|
|
847f0c4703 |
gui: Masking alert lives on the Masking page
nb5p on Discord (#feedback): "这个脱敏提醒被放到额度设置里了,害得我找半天没找到". The Masking alert row sat in Settings › Usage. It now closes Insights › Masking, after the list of requests, in the page's own `.list.prefs` rows (same Off/On segs, same ids #maskAlertRow/#maskAlertSegs, same i18n keys and the same maskAlert setting). Nothing is left in Usage. The page draws it from page.js after loadSettings, hides it while one request is open, and gateway mode leaves it out as Settings did. Placed after the list so the requests still start in the first screen (masking-records at 640px) and the demo keeps its place between the card and the list. Run at base |
||
|
|
76218200af |
gui: a demo's made-up account is never blurred by Hide accounts (data-no-pii)
outloudvi on Discord (#feedback, 1564923315095732276): with Hide accounts on, the masking demo's letter on Insights › Masking had its account (yetone@example.com) blurred and its password (hunter2-prod) not. The blur is hideAccounts, which masks every address in the window's body. It isn't the demo's own masking. The demo's values are made up, and showing them is the point of it. An element marked data-no-pii, and everything inside it, is now skipped by the text walker and the tooltip pass. The demo's section carries the marker. The class: any illustration with made-up accounts takes the same attribute. A search of the GUI assets found no other drawn one. The only other fake address is ops@company.com, in input placeholders, which the blur never touches. Text added later in a marked element stays unmasked too: the observer's mask(e) passes through the same checks. New test masking-demo-unblurred: Hide accounts on, an address elsewhere on the page still masked, the demo played (reduced motion on and off), its account and password slots both readable, and no .pii in #maskDemo. A generic [data-no-pii] element with a title and text changed after masking stays unmasked. It runs en and zh, in both engines. Run on mote: - masking-demo-unblurred and masking-demo at this tree: green. - go test -tags nogui -run Budget ./internal/gui: ok (no budget raised). - The 124-file GUI run in the commit before, at this tree: none of its reds in masking files (masking-records zh-TW was green when rerun). Broken by hand: - Marker removed from client.js: red, account slot "ilottn@aamital.cmd" in webkit (the reporter's blur). - Walker and title checks removed from app.js: red. Not tried: Linux and Windows. |
||
|
|
cad7bbbdb7 |
redact: Insights › Masking shows how masking works, with Little Magpie, folded until opened
A card under "What the vendor didn't see" and above the request list plays a 27s demo: Little Magpie takes one request (a GitHub sign-in with a password and an email), tears the real values out into her notebook, pastes placeholders in, sends it, and swaps them back on your computer when the tool call comes home. - Folded by default. The video (xq_light/xq_dark.webm, 1.7MB/1.5MB) and the stage are built only on the first open, so a folded card fetches nothing but its 0:27 thumbnail. - It plays only while open, on screen, in a visible window and not covered by a single record's sheet; it plays once and rests on the last step. Under reduced motion it shows the last step, still. - The stage (request, notebook, browser, provider) is drawn in the page and translated in every language (41 keys, zh, zh-TW, ja, de); only Little Magpie herself is video. Light and dark takes match the card's colour exactly, and the take follows the theme as it changes, still playing (a new source starts paused, so it is woken where T is). - The request and provider boxes keep room for taller fonts: WebKitGTK's Noto ran the provider's note 16px past its box. The stage is 1000x420. - T, the frame clock, is the authority; a video that drifts (a seek it couldn't make) is sent back to T, never the other way. Run at this head (origin/main |
||
|
|
e52a5e50ba |
redact: a request opens by its key again; the key goes to the GUI as a string
The owner opened the newest masked request and got "This request's
record is gone: records are kept for 30 days", and a request opened from
the list said its whole text was no longer in memory. A record's key is
its time in nanoseconds (~1.79e18), past 2^53, so JSON.parse rounded it
to 256ns: /api/masking/record?key= and /api/masking/sent?key= looked up
a key no record has. A list row worked only because it carried its
record. Every way in by key failed: the Gateway page's and tray panel's
masked badge, ?key= in the address, and each request's sent text; the
list's before= paging was off by the rounding too.
gateway.Masked's key and /api/masking/record(s)' key now go as JSON
strings (",string"); records on disk keep their number. The page keeps
the key a string (no unary +), and a refresh compares keys as BigInt.
Tests: TestMaskedRequestIsRecorded and TestMaskingRecordsAPI check the
key is a string, and masking-records' fake API uses 19-digit string keys
in place of 1001-1005, which no rounding touched.
Broken by hand: with the Go change out, both Go tests fail ("key not a
string"); with the page.js/client.js change out, "chromium: a masked call
on the Gateway page, and a key in the address, open its request" fails.
Run: go test ./internal/gui (twice ok; a first run under load ~180 went
red with its log cut by tail, so the test is unnamed; two reruns with
the whole log were ok), ./internal/gateway ok, ./internal/maskrec ok;
GOOS=linux/windows go vet ./internal/gateway ok; GUI masking-records,
routing-bodies, i18n-keys: 96 of 96 ok, both engines.
Not tried: the real app with a real masked request.
|
||
|
|
e698a688fd |
gui: Insights › Masking shows each request as sent, what was masked and how
What masking did moves out of Settings › Privacy into a page of its own under Insights (plugins/redact: client.js, page.js, redact.css, i18n.js). Privacy keeps how it is found and what to mask, with a "What was masked" row that opens the page. - The top card is Privacy's card, made shorter: the flow animation (agents → this computer → providers) with magpie's bird on the centre line and "magpie masks it on this computer" under it, so a screenshot says who masked it; the count and a 7-day bar. Nothing the list repeats. - The list: one row per masked request, narrowed by kind, by who found it (rules or the local model), by agent or provider, or to held-back requests; or by value, each with how often it was put back. - A request: the message as it went to the vendor beside the original, each mask marked, unchanged parts folded; picking a value lights every place it was masked; a held-back request offers "Mask it instead". - Gateway's masked badge and ?view=masking&key=N (trace.go's mainView) open one request. - Classes are msk-: library.css owns mk- (a first cut stacked the flow). - Budgets lowered to the core's size after the move. - Not shown: rule names and the local model's confidence; the records don't keep them. Run on |