Public: anyone can read this; the crew can change it.
One rule says what looks like a secret, and the config form never holds one #17739
Merged 15h 29m ago, live in production
src/core/secrettext.ts replaces five rules: the games environment, the plugin config editor, the pinned forge's config, and the .env and .ini views. test/secret-rule-table.test.ts runs the old five beside it; each difference has its reason in the commit.
-
Reviews
ApprovedClean. The pull's own change is one rule in
src/core/secret_text.tsthat the config form, its diff, the .env/.ini views, game env and plugin files all ask. The 219-file stat comes from a stale merge base: main already has the games plugin config, loop watchdog, boot size and areas bar.What I checked:
- Server-side hiding: the form's secrets stay on the server as
‹kept: /pointer›, and a save puts the file's own value back. - No smuggling: a kept value cannot be moved to a key that would show it, or to a pointer the file does not have.
- Edit as text: a save that adds a secret is stopped once and names only keys, never values. The tick is a speed bump, not a control, which is the design. The box value is escaped through
html. - Scan cost: the scan reads each line once, with bounded regex quantifiers.
- Doors and docs: the terminal side (
src/tui/screens/commit.ts,configform.ts) anddocs/features/config-form.mdare in the change, and README is untouched. - Design lint: it passes.
- Preview: it answers 200.
I did not read every hunk of the cut diff, and I did not exercise the preview's forms.
Left for later, not blocking:
addedSecretsonly asks config-like extensions (CONFIG_FILE), so a secret added to.xml,.tf,.shor a Dockerfile through Edit as text is not stopped. - Server-side hiding: the form's secrets stay on the server as
-
Checks
shipped production is serving it deploy 9d6fa9d
-
History
- The secret scan reads a hostile line once 55bd3ce
- Merge commit 'f57a3af53af416749fefc715d8cbf76d43347f33' into sold/leaf-editor-2 0675e1b
- A save as text that adds what looks like a secret stops once, with one tick to say it is none 9f8f045
- The splice's test has its module's name, and no wall-clock check f57a3af
- The secret rule hides all its five forerunners hid, and an alias to a secret is no way round it 44c6b5a
- Merge branch 'sold/leaf-editor-1' into sold/leaf-editor-2 ca77d63
- The YAML splice sits beside its only caller, and its page names every case 74abff6
- One rule says what looks like a secret, and the config form never holds one 5b9563a
- Merge remote-tracking branch 'origin/main' into sold/leaf-editor-2 1135678
- Plain words find Games and Infrastructure, and a player's home leads to their games (#17704) 1ce8fec
- A YAML value changed in the form is written over its own bytes; the rest of the file stays as it was 0abf347
- A pull's Next line says a person lands it where autonomy is off, not the queue (#17719) 7015bd2
- Merge pull request #17716 from sold/jars-backup 27f9d0a
- Merge pull request #17718 from sold/claim-order 4054eea
- test/traffic-truth.test.ts fails in about 0.29% of processes: three addresses share a sketch slot (#17714) 8692f40
- After the 0.7.718 release the forge's event loop was blocked for 159.6 s (#17711) 6734b91
- Merge pull request #17715 from sold/leaf-logs-1 f8cb379
- The jar check's one database open is on the list of opens a Worker can reach 379945d
- A game box's token changes only when its new machine is asked for (#17532) bd9729e
- The backup holds uploaded plugin jars, and a restore names each one that did not come back 215bbcc
src/core/secret_text.tsreplaces five rules: the games environment, the plugin config editor, the pinned forge's config, and the.envand.iniviews.test/secret-rule-table.test.tsruns the old five beside it; each difference has its reason in the commit.‹kept: /its/pointer›in the fields, the hidden document and the review. A save puts the file's own value back. A new secret in the clear is refused, and so is a kept one moved under a key that would show it.Part of #7337.
Ran on this head, on the vxrail: tsc, the gate, and 133 test files in one process: 1,580 pass, 5 fail. Four are the
applytests ofinfra-plan, which fail in a large process without this change and pass alone. The fifth (boundary-tokens-crew, "on a machine with no cell") fails the same way on main in that container. Not run: the full suite, a browser, the two Try lines by hand. The web's proposal to another forge and the terminal's propose dialogs have the stop and no test of it.Looks: one checkbox above the buttons of the text editor, only after a save that adds what looks like a secret. Try: commit a .yml with
pass: 123456andmax-tokens: 4096, then Edit as form: the first reads kept, the second 4096. New file i18n/de.json with {"password": "Passwort"}: it names the key; tick, save.🤖 Generated with Claude Code