Skip to content

Conversation

@gribnoysup
Copy link
Collaborator

@gribnoysup gribnoysup commented Dec 16, 2024

This patch switches the compass-web sandbox to use ccs instead of manually replicating the similar connection logic (creating a temp user and issuing a cert), this comes with two benefits:

  • it's just faster and more stable (when dev environments are not broken) to use this locally
    • we can also remove a bunch of this custom code for managing all this and simplify our "non-atlas" ws proxy
  • it gives us e2e coverage for the whole system when running the "with atlas cloud" subset of tests

@gribnoysup
Copy link
Collaborator Author

gribnoysup commented Dec 17, 2024

Blocked by https://jira.mongodb.org/browse/CLOUDP-286880 specifically for use with "test users"

EDIT: CLOUDP-286880 is resolved, so should be able to proceed with this now

@gribnoysup gribnoysup marked this pull request as ready for review January 9, 2025 09:00
@gribnoysup
Copy link
Collaborator Author

gribnoysup commented Jan 9, 2025

Manually started a task to check that the test-web-with-atlas-cloud will pass as this task doesn't run on PRs automatically: https://spruce.mongodb.com/version/677f902afc201800075559d4/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC (it's green)

return electronProxyRemote;
}

debug('Waiting for x509 cert to propagate to Atlas clusters ...');
Copy link
Contributor

Choose a reason for hiding this comment

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

🎊


const WEBSOCKET_PROXY_PORT = process.env.COMPASS_WEBSOCKET_PROXY_PORT
? Number(process.env.COMPASS_WEBSOCKET_PROXY_PORT)
: 1337;
Copy link
Contributor

Choose a reason for hiding this comment

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

🤣

@gribnoysup gribnoysup merged commit 29c53bd into main Jan 9, 2025
35 checks passed
@gribnoysup gribnoysup deleted the compass-8693-use-ccs-for-ws-proxy branch January 9, 2025 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants