fix: Resolve Qdrant API key profile isolation issue (#5442) #5443
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.
Description
Fixes #5442
This PR implements profile-aware secret storage to ensure that Qdrant API keys (and all other secrets) are properly isolated between different VSCode profiles (local, WSL, remote, etc.).
Problem
Previously, VSCode's built-in secrets API stored secrets globally across all profiles, causing Qdrant API keys set in one profile to appear in other profiles. This violated user expectations of profile isolation.
Solution
Profile-Aware Secret Storage
Automatic Migration
Changes Made
Core Implementation
Testing
Testing
Verification of Acceptance Criteria
Checklist
Impact
This fix ensures that users working with multiple VSCode profiles (especially common with WSL development) will have properly isolated API keys and secrets, resolving the confusion and security concerns raised in issue #5442.
Important
Implements profile-aware secret storage in
ContextProxyto isolate Qdrant API keys across VSCode profiles with automatic migration and comprehensive testing.ContextProxyto isolate Qdrant API keys across VSCode profiles.machineId,appName, anduriScheme.generateProfileId()andgetProfileSpecificSecretKey()methods inContextProxy.storeSecret(),getSecret(),initialize(), andrefreshSecrets()to handle profile-specific keys.resetAllState()to delete profile-specific secrets.ContextProxy.spec.tsto verify profile-specific secret handling and migration.This description was created by
for 3845f34. You can customize this summary. It will automatically update as commits are pushed.