docker / docker/docker-credential-helpers

Enhancement: Allow Different Credential Helpers for Images within the Same Repository

Open
#315 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
1.3k
Forks
195
Avg merge
1d 20h
Merged PRs (30d)
5

Description

Issue Summary:
I would like to propose an enhancement to Docker's credential helper configuration to allow specifying different credential helpers for images within the same repository.

Detailed Description:
The current Docker credential helper configuration allows associating a credential helper with a registry. However, in scenarios where different images within the same repository require distinct authentication mechanisms, the current configuration does not provide the necessary granularity.

Proposed Enhancement:
I propose extending the credHelpers configuration to support image-specific credential helper assignments. For example:

{
  "credHelpers": {
    "registry/image1": "helper1",
    "registry/image2": "helper2"
  }
}

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 reviewing the existing Docker credHelpers configuration handling and how registry credentials are selected. Determine how image-specific keys such as registry/image1 and registry/image2 should be matched, then verify that distinct helpers can be selected for images in the same repository.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.