Skip to content

bootc install to-existing-root --source-imgref has no way to authenticate to a private registry #2456

Description

@jtbrough

Summary

new_proxy_config() (crates/lib/src/deploy.rs) only sets user_agent_prefix. Every auth field on ImageProxyConfig is left at its default (anonymous). Neither a CLI flag on to-existing-root nor REGISTRY_AUTH_FILE in the environment reaches the spawned image-proxy subprocess, so installing from a private --source-imgref fails with unauthorized regardless of valid local credentials. Confirmed skopeo itself succeeds against the same registry using the same credentials.

Worked around this by making the target image public. Not sure if the gap is intentional or an oversight, flagging either way.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions