[DRIVERS-1970] Github no longer supports "git://" for git clone Created: 02/Nov/21  Updated: 18/Jan/22  Resolved: 18/Jan/22

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

Type: Task Priority: Unknown
Reporter: Shane Harvey Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split to GODRIVER-2215 Use https:// instead of git:// for gi... Closed
split to CDRIVER-4216 Github no longer supports "git://" fo... Closed
split to CSHARP-3949 Github no longer supports "git://" fo... Closed
split to CXX-2411 Github no longer supports "git://" fo... Closed
split to JAVA-4386 Github no longer supports "git://" fo... Closed
split to MOTOR-852 Test Failure - git clone: The unauthe... Closed
split to NODE-3736 Fix Evergreen Cloning Issue for Drive... Closed
split to PHPC-1995 Use https:// instead of git:// for gi... Closed
split to PHPLIB-758 Use https:// instead of git:// for gi... Closed
split to PYTHON-2990 Github no longer supports "git://" fo... Closed
split to RUBY-2839 Github no longer supports "git://" fo... Closed
split to RUST-1092 Github no longer supports "git://" fo... Closed
Related
Driver Changes: Needed
Downstream Changes Summary:

Replace this:

git clone git://...

With this:

git clone https://...

Driver Compliance:
Key Status/Resolution FixVersion
GODRIVER-2215 Done 1.7.4
PHPC-1995 Fixed 1.11.1
PHPLIB-758 Fixed 1.11.0
CDRIVER-4216 Fixed 1.21.0
CXX-2411 Works as Designed
CSHARP-3949 Fixed 2.15.0
JAVA-4386 Done
RUBY-2839 Works as Designed
RUST-1092 Fixed 2.1.0
SWIFT-1406 Done
MOTOR-852 Fixed 2.5.2, 3.0
NODE-3736 Fixed 4.2.0
PYTHON-2990 Fixed 3.12.2, 3.13, 4.0

 Description   

Github no longer supports "git://" for git clone. For example:

$ git clone git://github.com/mongodb/mongo-python-driver.git
Cloning into 'mongo-python-driver'...
fatal: remote error:
  The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.

This is a problem for various drivers because of how we install drivers-evergreen-tools for testing:

 [2021/11/02 00:02:50.556] + git clone git://github.com/mongodb-labs/drivers-evergreen-tools.git /data/mci/13e4172f3871f20f85385c686d16eb21/src/../drivers-tools
 [2021/11/02 00:02:50.557] Cloning into '/data/mci/13e4172f3871f20f85385c686d16eb21/src/../drivers-tools'...
 [2021/11/02 00:02:50.582] fatal: remote error:
 [2021/11/02 00:02:50.582]   The unauthenticated git protocol on port 9418 is no longer supported.
 [2021/11/02 00:02:50.582] Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
 [2021/11/02 00:02:50.583] Command failed: command encountered problem: error waiting on process '2308aa30-c995-4a50-8c1a-5db7a6298e5d': exit status 128

One fix should be to use https instead:

git clone https://github.com/mongodb-labs/drivers-evergreen-tools.git $DRIVERS_TOOLS

According to Github: https://github.blog/2021-09-01-improving-git-protocol-security-github/#when-are-these-changes-effective:

  • the first brown out is on November 2, 2021. This explains why it's just started now.
  • the next brown out on January 11, 2022.
  • finally it will be permanently removed on March 15, 2022.

We'll probably need to make this change in most if not all drivers.



 Comments   
Comment by Githook User [ 02/Nov/21 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Evergreen use https for git clone

DRIVERS-1970
Branch: master
https://github.com/mongodb/mongo-kafka/commit/28603b3fd78415c616f3363bc79ec947b0b702f0

Comment by Githook User [ 02/Nov/21 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Evergreen use https for git clone

DRIVERS-1970
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/5a3da6c74b6c043a8c8e72d649613d8249fdd5b7

Comment by Githook User [ 02/Nov/21 ]

Author:

{'name': 'Shane Harvey', 'email': 'shnhrv@gmail.com', 'username': 'ShaneHarvey'}

Message: DRIVERS-1970 Use https:// instead of unauthenticated git:// for git clone
Branch: master
https://github.com/mongodb-labs/drivers-evergreen-tools/commit/47942132ec1e48b55212edbb07750c58b09e37ec

Generated at Thu Feb 08 08:24:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.