hyperledger / hyperledger/fabric-samples

Debug remote chaincode-as-a-service using a reverse proxy to localhost

Open
#686 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3k
Forks
3.5k
Avg merge
3d 20h
Merged PRs (30d)
6

Description

Identify and document a technique for running chaincode on a remote "cloud," but connected to a process running in a local debugger.

The general idea here is to run a reverse proxy to tunnel gRPC traffic "from" a peer "to" a chaincode endpoint running locally in a debugger. When the peer connects to chaincode, the connection will be relayed back to a port opened on the user's local workstation.

![ccaas-reverse-proxy](https://user-images.githubusercontent.com/86427252/159752917-1a497121-d013-4e93-b9f2-10647cec8324.png)

It is worth testing this pattern directly with [ngrok.com](https://ngrok.com) as well as looking into deploying a proxy, router, and ingress/port-forward.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.