[COMPASS-4104] Fix credentials encoding when using X509 auth Created: 16/Jan/20  Updated: 29/Oct/23  Resolved: 22/Jan/20

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: 1.20.5, 1.21.0

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

Issue Links:
Depends
Duplicate
is duplicated by COMPASS-4107 Connection dialog doesn't work with t... Closed
Sprint: Iteration Urial, Iteration Vicuña

 Description   

Since x509Username can include special characters such as `:` we should use percent-encoding to distinguish a delimiter from the part of the username component. Otherwise a part of the username that follows `:`  will be parsed by the driver as a password. And the password is not allowed for the `MONGODB-X509` mechanism.



 Comments   
Comment by Githook User [ 29/Jan/20 ]

Author:

{'username': 'durran', 'name': 'Durran Jordan', 'email': 'durran@gmail.com'}

Message: COMPASS-3933: Update to Electron 6.0.11 (#1873)

  • chore(ci): Update node version on travis and evergreen
  • chore: Remove unused jsfmt config

Switched to prettier ages ago

  • hadron-build@23.0.2: ensure gnome-keyring is set as a requirement for debian OSs
  • build(deps): COMPASS-3933: Update to latest connect and query history plugins
      1. compass-query-history@7
  • COMPASS-3933 COMPASS-4072: Electron 6 and lodash updates mongodb-js/compass-query-history#41
  • build(deps-dev): COMPASS-4098: bump electron from 6.1.7 to 7.1.9 mongodb-js/compass-query-history#47
      1. compass-connect@5.3.2
  • COMPASS-4104 urlencode credentials when using X509
  • mongodb-js/compass-connect#82 chore: update dependencies for driver 3.4 and electron 6 COMPASS-4017
  • [x] mongodb-js/compass-explain-plan#17
  • [x] mongodb-js/compass-explain-plan#33
  • update dev deps
  • remove dupe deps from compass-schema
  • more extraneous deps
  • :arrow_up: export to lang, crud, schema validation
  • latest language model
  • COMPASS-3933: latest agg plugin mongodb-js/compass-aggregations#120
  • build(deps): source app-migrations from npm instead of github
  • build(deps): latest hadron*

hadron-app@latest hadron-app-registry@latest hadron-compile-cache@latest hadron-document@latest hadron-module-cache@latest

  • build(deps): Update all mongodb* to latest
  • mongodb-ace-autocompleter@0.4.1
  • mongodb-extended-json@1.11.0
  • mongodb-connection-model@14.4.3
  • mongodb-js-metrics@5.0.0
  • mongodb-language-model@1.6.1
  • mongodb-explain-plan-model@0.2.3
  • mongodb-ace-mode@0.4.1
  • mongodb@3.5.2
  • mongodb-data-service@16.4.0
  • mongodb-query-parser@2.0.0
  • mongodb-schema@8.2.5
  • mongodb-query-util@0.2.1
  • mongodb-collection-model@3.1.0
  • mongodb-ns@2.2.0

Co-authored-by: Lucas Hrabovsky <hrabovsky.lucas@gmail.com>
Co-authored-by: Irina Shestak <lrlna@users.noreply.github.com>
Branch: master
https://github.com/mongodb-js/compass/commit/3165b47084df3a25ac975171968ca5325d3bebe9

Comment by Githook User [ 29/Jan/20 ]

Author:

{'name': 'Alena Khineika', 'username': 'alenakhineika', 'email': 'alenakhineika@users.noreply.github.com'}

Message: COMPASS-4104 urlencode credentials when using X509 (#1886)

Co-authored-by: Lucas Hrabovsky <hrabovsky.lucas@gmail.com>
Branch: COMPASS-3933
https://github.com/mongodb-js/compass/commit/add84d2e81c4801bd05127c4fdf043a95c5359ac

Comment by Githook User [ 29/Jan/20 ]

Author:

{'name': 'Alena Khineika', 'username': 'alenakhineika', 'email': 'alenakhineika@users.noreply.github.com'}

Message: COMPASS-4104 urlencode credentials when using X509 (#1886)

Co-authored-by: Lucas Hrabovsky <hrabovsky.lucas@gmail.com>
Branch: master
https://github.com/mongodb-js/compass/commit/add84d2e81c4801bd05127c4fdf043a95c5359ac

Comment by Githook User [ 22/Jan/20 ]

Author:

{'username': 'imlucas', 'name': 'Lucas Hrabovsky', 'email': 'hrabovsky.lucas@gmail.com'}

Message: Merge branch 'master' into COMPASS-4104-urlencode-credentials-x509
Branch: COMPASS-4104-urlencode-credentials-x509
https://github.com/mongodb-js/compass/commit/39338bf09805bbfffc9f2ec92b7cdefe6f980785

Comment by Githook User [ 22/Jan/20 ]

Author:

{'email': 'hrabovsky.lucas@gmail.com', 'username': 'imlucas', 'name': 'Lucas Hrabovsky'}

Message: build(deps): COMPASS-3933: Update to latest connect and query history plugins

      1. compass-query-history@7
  • COMPASS-3933 COMPASS-4072: Electron 6 and lodash updates mongodb-js/compass-query-history#41
  • build(deps-dev): COMPASS-4098: bump electron from 6.1.7 to 7.1.9 mongodb-js/compass-query-history#47
      1. compass-connect@5.3.2
Comment by Githook User [ 21/Jan/20 ]

Author:

{'email': 'alena.khineika@gmail.com', 'name': 'Alena Khineika', 'username': 'alenakhineika'}

Message: COMPASS-4104 urlencode credentials when using X509
Branch: COMPASS-4104-urlencode-credentials-x509
https://github.com/mongodb-js/compass/commit/eeb5dd48cba78c7fd397ee24c52e6c73768b28fc

Comment by Githook User [ 20/Jan/20 ]

Author:

{'username': 'alenakhineika', 'name': 'Alena Khineika', 'email': 'alenakhineika@users.noreply.github.com'}

Message: COMPASS-4104 urlencode credentials when using X509 auth (#178)
Branch: master
https://github.com/mongodb-js/data-service/commit/f4e58c525c64578c966257488ace6250ecdf8f6f

Comment by Githook User [ 20/Jan/20 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: COMPASS-4104 urlencode credentials when using X509 auth
Branch: COMPASS-4104-urlencode-credentials-x509
https://github.com/mongodb-js/data-service/commit/afc7db52b01650b4e03c83a1ee15af6a46fba9fd

Comment by Githook User [ 20/Jan/20 ]

Author:

{'username': 'alenakhineika', 'name': 'Alena Khineika', 'email': 'alenakhineika@users.noreply.github.com'}

Message: COMPASS-4104 urlencode credentials when using X509 auth (#228)
Branch: master
https://github.com/mongodb-js/connection-model/commit/57c763493f009ece5e51e45b3ce9b2be77244f53

Comment by Githook User [ 17/Jan/20 ]

Author:

{'username': 'alenakhineika', 'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com'}

Message: COMPASS-4104 urlencode credentials when using X509 auth
Branch: COMPASS-4104-urlencode-credentials-x509
https://github.com/mongodb-js/connection-model/commit/618868fa279ba2eeeb03e3a261e7f63e25027663

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