Skip to content

Conversation

@syn-zhu
Copy link
Collaborator

@syn-zhu syn-zhu commented Jan 4, 2026

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

  • New tests and/or benchmarks are included
  • Documentation is changed or added
  • If this change updates the UI, screenshots/videos are added and a design review is requested
  • If this change could impact the load on the MongoDB cluster, please describe the expected and worst case impact
  • I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

Copilot AI review requested due to automatic review settings January 4, 2026 04:15
@syn-zhu syn-zhu requested a review from a team as a code owner January 4, 2026 04:15
@syn-zhu syn-zhu requested a review from ivandevp January 4, 2026 04:15
@github-actions github-actions bot added the fix label Jan 4, 2026
Copy link
Contributor

Copilot AI left a 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-local configuration URLs from localhost to cloud-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',
Copy link

Copilot AI Jan 4, 2026

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.

Suggested change
ccsBaseUrl: 'ws://cloud-local.mongodb.com/cluster-connection',
ccsBaseUrl: 'wss://cloud-local.mongodb.com/cluster-connection',

Copilot uses AI. Check for mistakes.
ccsBaseUrl: 'ws://cloud-local.mongodb.com/cluster-connection',
cloudBaseUrl: '',
atlasApiBaseUrl: 'http://localhost:8080/api/private',
atlasApiBaseUrl: 'http://cloud-local.mongodb.com/api/private',
Copy link

Copilot AI Jan 4, 2026

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.

Suggested change
atlasApiBaseUrl: 'http://cloud-local.mongodb.com/api/private',
atlasApiBaseUrl: 'https://cloud-local.mongodb.com/api/private',

Copilot uses AI. Check for mistakes.
issuer: 'https://auth-qa.mongodb.com/oauth2/default',
},
authPortalUrl: 'https://account-dev.mongodb.com/account/login',
authPortalUrl: 'https://account-local.mongodb.com/account/login',
Copy link

Copilot AI Jan 4, 2026

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.

Suggested change
authPortalUrl: 'https://account-local.mongodb.com/account/login',
authPortalUrl: 'https://account-dev.mongodb.com/account/login',

Copilot uses AI. Check for mistakes.
Copy link
Collaborator

@ivandevp ivandevp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants