[Security] Mask connector values by explicit secret semantics#259
Open
fettpl wants to merge 5 commits into
Open
[Security] Mask connector values by explicit secret semantics#259fettpl wants to merge 5 commits into
fettpl wants to merge 5 commits into
Conversation
Author
|
@0xSero This is ready for maintainer review at exact head |
fettpl
force-pushed
the
p1/issue-239-connector-secret-semantics
branch
from
July 20, 2026 10:11
2abaa22 to
7927f91
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
envandheadersmetadata from HTTP and private desktop IPC.Root cause
Connector responses inferred secrecy from key names. Non-obvious credentials such as
Cookie,SESSION, and vendor-specific keys could therefore be serialized in plaintext. The contract also used one flat secret-key list, accepted unrestricted connector URLs, and did not distinguish masked settings payloads from raw runtime configuration.Solution design
User and developer impact
Connector management no longer discloses raw environment or header values to renderer/API consumers. Existing masked edits and enable/disable operations preserve intended stored credentials, while malformed placeholders, credential-bearing URLs, and invalid persisted configuration fail closed with a generic response. Approval and execution fingerprints continue to use raw configuration values.
Dependency
Depends on #257, which provides the pinned GitHub MCP artifact/catalog path exercised by the personal-access-token preservation regression.
Exact review state
7927f91ca7637d3d0af012abf4c450da107bf0dc01ac7ff18f1097da281f4603e77d751568e130beValidation
npm --prefix frontend run check:quality— passed on the exact head.npm run check— passed on the exact head.npm --prefix frontend run desktop:dist— passed; embedded runtime, post-pack, signature, DMG, and ZIP checks completed./Applications/Local Studio.appreinstall — deep strict signature andorg.local.studio.desktopbundle identity passed;/api/desktop-healthreturned HTTP 200 with{"ok":true}.Acceptance coverage
Rollout notes
Persisted connectors containing URL userinfo or the reserved mask literal now fail closed and require an explicit operator edit. No credential migration, vaulting, or automatic rewriting is performed.
Closes #239