Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6916

Fix OIDC allowed_hosts usage with enableUntrustedEndpoints=true

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: No version
    • Component/s: OIDC DB Auth
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 2
    • Not Needed
    • Iteration Dreadnoughtus

      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 

            Assignee:
            rhys.howell@mongodb.com Rhys Howell
            Reporter:
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: