Skip to content

Add secrets to the Run Configuration, via SecretStorage - #19

Open
ChrisonSimtian wants to merge 1 commit into
feature/run-config-parametersfrom
feature/run-config-secrets
Open

Add secrets to the Run Configuration, via SecretStorage#19
ChrisonSimtian wants to merge 1 commit into
feature/run-config-parametersfrom
feature/run-config-secrets

Conversation

@ChrisonSimtian

Copy link
Copy Markdown
Contributor

5/6 of the #2 split. Closes #13. Based on #18.

Secrets a local run needs — a feed token, a signing password — alongside the plain parameters, but handled differently at every step.

Three deliberate differences from parameters

Values go to SecretStorage (OS keychain-backed), not workspaceState. Only the names are kept in workspace state, so the view can list them.

The webview is never sent a value. It renders a fixed mask, so a secret cannot leak through webview devtools or a persisted state snapshot. Values are write-only from the UI's perspective.

They resolve to environment variables, not CLI arguments. An argument appears in shell history and in the process list, readable by any other process on the machine; a spawned process's environment is not exposed that way.

buildEnv() resolves at run time rather than caching, so a secret rotated in the keychain takes effect on the next run without reloading the window.

Nothing consumes the environment yet; that is #14.

🤖 Generated with Claude Code

@ChrisonSimtian
ChrisonSimtian requested a review from a team as a code owner August 14, 2026 23:41
@ChrisonSimtian ChrisonSimtian added enhancement New feature or request security Security fix or hardening of a security-sensitive surface. labels Aug 14, 2026
Secrets a local run needs — a feed token, a signing password — alongside the
plain parameters, but handled differently at every step.

Values go to VS Code's SecretStorage, which is OS keychain-backed, rather than
workspaceState; only the *names* are kept in workspace state so the view can
list them. The webview is never sent a value: it renders a fixed mask, so a
secret cannot leak through a webview devtools inspection or a state snapshot.

They resolve to environment variables rather than CLI arguments. An argument
would appear in shell history and in the process list, where any other process
on the machine can read it; the environment of a spawned process is not exposed
that way.

buildEnv() resolves them at run time rather than caching, so a secret rotated
in the keychain takes effect on the next run without reloading the window.

Nothing consumes the environment yet; wiring it into the run flow is #14.

Closes #13

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ChrisonSimtian
ChrisonSimtian force-pushed the feature/run-config-parameters branch from 4a991d8 to 92dc0dc Compare August 14, 2026 23:50
@ChrisonSimtian
ChrisonSimtian force-pushed the feature/run-config-secrets branch from 6975a61 to f9e9693 Compare August 14, 2026 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request security Security fix or hardening of a security-sensitive surface.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant