[COMPASS-6916] Fix OIDC allowed_hosts usage with enableUntrustedEndpoints=true Created: 13/Jun/23  Updated: 29/Oct/23  Resolved: 13/Jun/23

Status: Closed
Project: Compass
Component/s: Connectivity
Affects Version/s: No version
Fix Version/s: No version

Type: Bug Priority: Major - P3
Reporter: Rhys Howell Assignee: Rhys Howell
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS:
node.js / npm versions:
Additional info:


Epic Link: COMPASS-5955
Story Points: 2
Documentation Changes: Not Needed
Sprint: Iteration Dreadnoughtus

 Description   

Currently we're setting `ALLOWED_HOSTS` on the `
authMechanismProperties` to `*` when enableUntrustedEndpoints is true. This errors as it's an invalid value. We should instead do what mongosh does: 
https://github.com/mongodb-js/mongosh/blob/6a6f97712a596a21c61408dfb925e729306030f8/packages/arg-parser/src/arg-mapper.ts#L114-L137 



 Comments   
Comment by Githook User [ 16/Jun/23 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(data-service): update how we set ALLOWED_HOSTS when enableUntrustedEndpoints is true COMPASS-6916 (#4523)
Branch: activity-telemetry
https://github.com/mongodb-js/compass/commit/631bf285d37f735b3e5a8061ac919552814bd850

Comment by Githook User [ 16/Jun/23 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(data-service): update how we set ALLOWED_HOSTS when enableUntrustedEndpoints is true COMPASS-6916 (#4523)
Branch: compass-6835-massive-n-of-collections-signal
https://github.com/mongodb-js/compass/commit/631bf285d37f735b3e5a8061ac919552814bd850

Comment by Githook User [ 16/Jun/23 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(data-service): update how we set ALLOWED_HOSTS when enableUntrustedEndpoints is true COMPASS-6916 (#4523)
Branch: compass-6832-insight-unindexed-query
https://github.com/mongodb-js/compass/commit/631bf285d37f735b3e5a8061ac919552814bd850

Comment by Githook User [ 15/Jun/23 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(data-service): update how we set ALLOWED_HOSTS when enableUntrustedEndpoints is true COMPASS-6916 (#4523)
Branch: guide-cue-implementation
https://github.com/mongodb-js/compass/commit/631bf285d37f735b3e5a8061ac919552814bd850

Comment by Githook User [ 15/Jun/23 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(data-service): update how we set ALLOWED_HOSTS when enableUntrustedEndpoints is true COMPASS-6916 (#4523)
Branch: fix-wizard-button-label
https://github.com/mongodb-js/compass/commit/631bf285d37f735b3e5a8061ac919552814bd850

Comment by Githook User [ 15/Jun/23 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(data-service): update how we set ALLOWED_HOSTS when enableUntrustedEndpoints is true COMPASS-6916 (#4523)
Branch: COMPASS-5102-add-test-for-bundle-size
https://github.com/mongodb-js/compass/commit/631bf285d37f735b3e5a8061ac919552814bd850

Comment by Githook User [ 14/Jun/23 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(data-service): update how we set ALLOWED_HOSTS when enableUntrustedEndpoints is true COMPASS-6916 (#4523)
Branch: 1.38-releases
https://github.com/mongodb-js/compass/commit/631bf285d37f735b3e5a8061ac919552814bd850

Comment by Rhys Howell [ 13/Jun/23 ]

No version as it was unreleased bug

Comment by Githook User [ 13/Jun/23 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(data-service): update how we set ALLOWED_HOSTS when enableUntrustedEndpoints is true COMPASS-6916 (#4523)
Branch: main
https://github.com/mongodb-js/compass/commit/631bf285d37f735b3e5a8061ac919552814bd850

Generated at Wed Feb 07 22:44:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.