-
Notifications
You must be signed in to change notification settings - Fork 245
fix(userData): fix local data explorer urls #7680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the Atlas local backend configuration to use cloud-local.mongodb.com instead of localhost URLs, aligning with the ability to run User Data Service and CCS locally while pointing to a local Atlas instance.
Key Changes:
- Updated all
atlas-localconfiguration URLs fromlocalhosttocloud-local.mongodb.com - Modified CCS WebSocket URL to use the standard cluster-connection endpoint
| const config = { | ||
| 'atlas-local': { | ||
| ccsBaseUrl: 'ws://localhost:61001/ws', | ||
| ccsBaseUrl: 'ws://cloud-local.mongodb.com/cluster-connection', |
Copilot
AI
Jan 4, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CCS WebSocket URL uses an insecure 'ws://' protocol instead of 'wss://'. For consistency with other environments and to ensure secure communication, consider using 'wss://' even in local development.
| ccsBaseUrl: 'ws://cloud-local.mongodb.com/cluster-connection', | |
| ccsBaseUrl: 'wss://cloud-local.mongodb.com/cluster-connection', |
| ccsBaseUrl: 'ws://cloud-local.mongodb.com/cluster-connection', | ||
| cloudBaseUrl: '', | ||
| atlasApiBaseUrl: 'http://localhost:8080/api/private', | ||
| atlasApiBaseUrl: 'http://cloud-local.mongodb.com/api/private', |
Copilot
AI
Jan 4, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Atlas API base URL uses insecure 'http://' protocol instead of 'https://'. While this is a local environment, using 'https://' would be more consistent with other environments (dev, qa, staging, prod) and better reflect production-like conditions.
| atlasApiBaseUrl: 'http://cloud-local.mongodb.com/api/private', | |
| atlasApiBaseUrl: 'https://cloud-local.mongodb.com/api/private', |
| issuer: 'https://auth-qa.mongodb.com/oauth2/default', | ||
| }, | ||
| authPortalUrl: 'https://account-dev.mongodb.com/account/login', | ||
| authPortalUrl: 'https://account-local.mongodb.com/account/login', |
Copilot
AI
Jan 4, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The auth portal URL points to 'account-local.mongodb.com' while other environments use 'account-dev.mongodb.com'. Verify that this local auth service exists and is properly configured, as authentication failures could be difficult to debug if this endpoint is not available.
| authPortalUrl: 'https://account-local.mongodb.com/account/login', | |
| authPortalUrl: 'https://account-dev.mongodb.com/account/login', |
ivandevp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
https://jira.mongodb.org/browse/CLOUDP-342128
User data service and CCS can both be run locally now, so moving the URLs to point to local Atlas
Checklist
Motivation and Context
Open Questions
Dependents
Types of changes