Skip to content

support registry auth via inline JSON in DOCKER_AUTH_CONFIG #4204

@nxcc

Description

@nxcc

Is your feature request related to a problem? Please describe.
While CUE supports DOCKER_CONFIG, creating the required directory structure and config.json file is often impractical in ephemeral environments like CI/CD pipelines.

Describe the solution you'd like
I would like CUE to support a DOCKER_AUTH_CONFIG environment variable. This variable should accept the raw JSON configuration string (the content usually found in config.json) directly.

If DOCKER_AUTH_CONFIG is present, CUE should parse it for registry credentials, removing the need to create a physical directory structure or file on the disk. This creates a much smoother experience in ephemeral environments like CI/CD.

Describe alternatives you've considered
Manual file generation in CI steps. Currently, we have to write shell scripts to shim the environment. For example

mkdir -p /tmp/docker-config
echo $DOCKER_CONFIG_JSON_CONTENT > /tmp/docker-config/config.json
export DOCKER_CONFIG=/tmp/docker-config

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestNew feature or requestmodulesIssues related to CUE modules and the experimental implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions