Skip to content

Add OpenTofu registry handler#115

Open
diofeher wants to merge 1 commit intodependabot:mainfrom
diofeher:opentofu/add-opentofu-registry-handler
Open

Add OpenTofu registry handler#115
diofeher wants to merge 1 commit intodependabot:mainfrom
diofeher:opentofu/add-opentofu-registry-handler

Conversation

@diofeher
Copy link
Copy Markdown

@diofeher diofeher commented Apr 29, 2026

Summary

  • dependabot-core's OpenTofu ecosystem accepts credentials with type: opentofu_registry, but the proxy had no matching handler. Requests against private OpenTofu registries reached the upstream anonymously and failed authentication.
  • Adds OpenTofuRegistryHandler in internal/handlers/opentofu_registry.go modeled on the existing Terraform handler. The wire protocol is identical (Terraform Module Registry HTTP API), so the logic is the same — only the credential-type filter, log message, and OIDC label are renamed.
  • Registers the new handler in proxy.go after the Terraform handler.

dependabot-core's OpenTofu ecosystem accepts credentials with
type `opentofu_registry`, but the proxy had no matching handler
to credential-stuff requests. Without it, requests against private
OpenTofu registries reach the upstream anonymously and fail with
authentication errors.

Add an `OpenTofuRegistryHandler` modeled on the Terraform handler
(same wire protocol — Terraform Module Registry HTTP API), and
register it after the Terraform handler in the proxy chain.
@diofeher diofeher requested a review from a team as a code owner April 29, 2026 17:38
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.

1 participant