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

opened this

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.

Notes

opened this

src/core/secret_text.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.

  • The config form, web and terminal: a secret is ‹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.
  • The plugin config editor also reads a value written on the lines after its key.
  • Text editors, web and terminal: nothing is masked there. A save that adds what looks like a secret to a config file stops once, names the key and offers "This is not a secret".
  • A YAML file with an alias under a secret's key is edited as text.

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 apply tests of infra-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: 123456 and max-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

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs