You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: Add AWS discovery with consistent multi-method sign-in - #1057
Add AWS DocumentDB discovery through the Service Discovery sidebar and New Connection flow. Reuse the existing Atlas-style onboarding UI and shared connection infrastructure to provide consistent sign-in, cluster browsing, and saved connections.
Changes
Add login cards for AWS profile, access key, browser SSO, and temporary credentials.
Support independent credential entries with remembered discovery regions, secure secret storage, and session-only temporary credentials.
Discover clusters across accounts and regions with tree/list layouts, refresh, deduplication, and partial-failure reporting.
Show cluster metadata, including VPC, subnet, and security-group information.
Integrate CA bundle selection, database authentication, database/collection browsing, and Save to Connections.
Add AWS SDK dependencies, regression tests, and contributor documentation.
How to test
Run:
npm run build
npx jest --no-coverage src/plugins/service-aws-documentdb src/webviews/documentdb/awsCredentials
Launch the Extension Development Host and open Service Discovery → AWS DocumentDB.
Exercise each login card; verify the stages and navigation remain consistent with Atlas.
For SSO, approve browser sign-in, select an account and role, then verify and save. Repeat with cancellation.
Add multiple credential entries and select discovery regions; verify account/region grouping, flat-list mode, refresh, and cluster tooltips.
Test an inaccessible region alongside a healthy region; confirm failures remain visible without hiding discovered clusters.
With network access to a cluster, select its PEM CA bundle, enter database credentials, and browse databases and collections.
Save a cluster to Connections, reload, and reconnect. Repeat discovery through New Connection → Service Discovery.
Confirm temporary credential entries do not persist across extension sessions.
Risks
Review credential replacement, SSO cancellation/refresh, and secret-storage boundaries closely.
AWS sign-in does not provide database credentials or network access; managed tunneling and IAM database authentication are not included.
CA bundle paths are local to the extension host, and TLS certificate/hostname verification remains enabled.
VPC enrichment requires rds:DescribeDBSubnetGroups; denied access must not block cluster discovery.
Live AWS authentication, connectivity, and visual parity require manual validation.
Validation status
Case 1 (draft PR): the implementation build and focused tests ran during development. Full ready-for-review checks, including prettier-fix, are deferred until the PR is ready for review. Live AWS and visual validation remain outstanding.
…lity
- Implemented AWS credentials webview controller and router for managing AWS credentials.
- Added tests for the AWS credentials controller and router to ensure functionality.
- Introduced SCSS styling for the AWS credentials webview.
- Created a schema for validating AWS credential inputs.
- Implemented SSO (Single Sign-On) flow handling for AWS credentials.
- Added error handling and telemetry for AWS credential operations.
Co-authored-by: Copilot <[email protected]>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Credential updates discard verified MFA sessions and can break discovery, while stale discovery error caches and a missing report-route entry cause additional refresh and verification failures.
Adds AWS DocumentDB discovery to the extension’s Service Discovery sidebar and New Connection flow, reusing shared onboarding, database browsing, and saved-connection infrastructure.
Changes:
Supports profile, access-key, browser SSO, and session-only temporary credentials.
Adds multi-account and regional discovery, tree/list layouts, infrastructure metadata, CA bundle selection, and connection diagnostics.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Authentication retries can reuse revoked cached credentials, profile parsing drops valid indented properties, and the region picker blocks supported regions outside its hard-coded list.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Concurrent credential replacements can commit before generation invalidation, causing an AbortError despite a persisted change and leaving the identity cache inconsistent with the stored credential; per-credential serialization and a regression test are needed.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Serialize concurrent credential replacements and cache updates
When two panels replace the same temporary credential concurrently, both saves can commit before this generation invalidation runs. The second call then throws AbortError even though its replacement remains stored, while the identity cache contains the first replacement, so a failed update still changes the credential used by later discovery. Serialize each credential's commit, generation invalidation, and cache update together, and add a regression test for concurrent replacements.
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
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
Add AWS DocumentDB discovery through the Service Discovery sidebar and New Connection flow. Reuse the existing Atlas-style onboarding UI and shared connection infrastructure to provide consistent sign-in, cluster browsing, and saved connections.
Changes
How to test
Risks
rds:DescribeDBSubnetGroups; denied access must not block cluster discovery.Validation status
Case 1 (draft PR): the implementation build and focused tests ran during development. Full ready-for-review checks, including
prettier-fix, are deferred until the PR is ready for review. Live AWS and visual validation remain outstanding.Documentation
AWS discovery implementation and integration analysis
Work Item
Task 5835307 — [IMPL] AWS Discovery in vscode-documentdb extension