mongodb / mongodb/mongo-php-driver

Connect to MongoDB via socks5 proxy

Open
#1,795 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

tracked-in-jira
Dominant language
PHP
Stars
923
Forks
218
Avg merge
15h 15m
Merged PRs (30d)
32

Description

How would I be able to connect to MongoDB via a socks5 proxy in PHP?

I noticed that Java and Kotlin already have a way to do this. Wondering if PHP also has a way.

This would vastly simplify our setup which currently uses custom dns servers + haproxy in order to proxy traffic to mongo atlas.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the PHP driver's connection capabilities with the existing Java and Kotlin SOCKS5 support mentioned in the issue. Identify the relevant connection entry point and determine what implementation and test coverage would be needed for MongoDB Atlas traffic through a SOCKS5 proxy; done means a documented, tested way to establish that connection.

Written by the indexing model from the issue text.

Assessment

Tech stack
mongodb, php
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.