Skip to content

feat: add support for features in registries that require authentication#458

Merged
johnstcn merged 2 commits intocoder:mainfrom
derektamsen:feat-add-feature-registry-auth
Feb 6, 2026
Merged

feat: add support for features in registries that require authentication#458
johnstcn merged 2 commits intocoder:mainfrom
derektamsen:feat-add-feature-registry-auth

Conversation

@derektamsen
Copy link
Contributor

Add support for fetching feature layers from registries that require
authentication. The authentication pattern mimics what is done in other
places in the codebase. It will search the running environment for registry
credentials and use them to authenticate.

To setup authentication follow the same documentation as for pulling
other images from private registries.

fixes #457

Add support for fetching feature layers from registries that require
authentication. The authentication pattern mimics what is done in other
places in the codebase. It will search the running environment for registry
credentials and use them to authenticate.

To setup authentication follow the [same documentation as for pulling](https://github.com/coder/envbuilder/blob/main/docs/container-registry-auth.md)
other images from private registries.

fixes coder#457
@mcharris
Copy link

mcharris commented Sep 26, 2025

I was able to use your build with success. It was with the Kubernetes (Devcontainer) template (fixing the module code-server of course) and switching the locals to use the image:

locals {
  #devcontainer_builder_image = data.coder_parameter.devcontainer_builder.value
  devcontainer_builder_image = "ghcr.io/derektamsen/envbuilder-preview:latest"
}

@mcharris
Copy link

Not sure why this hasn't been reviewed and merge. Includes tests and valid code. Nice work!

@johnstcn johnstcn self-assigned this Feb 6, 2026
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@johnstcn johnstcn merged commit b7e44ac into coder:main Feb 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unauthenticated request error installing feature from private oci registry

3 participants