hyperledger / hyperledger/fabric

Send auth credentials to the Docker socket if Docker config file is mounted

Open
#5,504 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
16.7k
Forks
9.1k
Avg merge
5h 38m
Merged PRs (30d)
26

Description

### Current Status

Currently, if a Docker config file were to be mounted to the peer containers to either `/root/.dockercfg` or `/root/.docker/config.json` with credentials for a private repository, `fabric-peer` won't send the configured credentials to the socket. This becomes an issue when the peer tries to pull the chaincode build environments (`fabric-baseos`, etc.) from a private repository.

### Expected

If a Docker config file has been mounted to the peer, the peer should check if auth credentials are provided in the config file and send them to the socket.

### Solution

_No response_

### Please let us know if you plan to work on this.

Yes!

Contributor guide

Open the contributing guide

Research direction

Start at the fabric-peer entry points that communicate with the Docker socket and trace how mounted Docker config files are detected. Check the existing image-pull and authentication flow, then verify that credentials from either stated config path are sent when pulling private chaincode build environments.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
backend, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.