Layer7-Community / graphman-client

This repository contains a Postman collection, a Node.js CLI application, sample queries for the CLI, and GraphQL schemas for the Graphman API.
Other
7 stars 5 forks source link

enhancement for gateway connection through proxy #44

Open muemi03 opened 5 months ago

muemi03 commented 5 months ago

Suggestion for the following enhancements: support for

In our scenario, we are forced to use environment specific proxies to be able to connect to gateways. Example:

{
    "gateways": {
        "GW123": {
            "address": "https://mygateway-dns:8443/graphman",
            "proxy": "http://proxy-dns:8080",
            "username": null,
            "password": null,
            "rejectUnauthorized": true,
            "certFilename": "graphman-admin.crt",
            "keyFilename": "graphman-admin.key",
            "passphrase": "7layer",
            "allowMutations": true
        }
    }
}

The solution is dumb and simple. If a proxy is used, do a connect to the proxy and resuse this proxy-socket for the gateway request.