Skip to content

Conversation

gautambaghel
Copy link
Member

@gautambaghel gautambaghel commented Aug 11, 2025

  • search modules in private registry by name
  • Filter modules in private registry based on provider, registry_name and organization_name

Description

  • Currently the RegistryModuleListOptions only includes limit options for pagination, this would allow users to query modules better
  • This is needed for the Terraform MCP server tools for private modules

Testing plan

External links

Output from tests

Including output from tests may require access to a TFE instance. Ignore this section if you have no environment to test against.

$ TFE_ADDRESS="https://example" TFE_TOKEN="example" go test ./... -v -run TestFunctionsAffectedByChange

...

Rollback Plan

Changes to Security Controls

@gautambaghel gautambaghel requested a review from a team as a code owner August 11, 2025 18:19
Provider string `url:"filter[provider],omitempty"`

// RegistryName filters results by registry name (public or private)
RegistryName string `url:"filter[registry_name],omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed the RegistryName field in RegistryModuleListOptions uses string type instead of the RegistryName type used in other areas of the file. This may be intentional for query parameter compatibility, but wanted to confirm in case you weren't aware we had the attribute already!

Copy link
Member Author

Choose a reason for hiding this comment

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

yup, you're correct

shwetamurali
shwetamurali previously approved these changes Aug 11, 2025
@gautambaghel gautambaghel merged commit 8cde4d3 into main Aug 11, 2025
8 checks passed
@gautambaghel gautambaghel deleted the feature/registry-module-search branch August 11, 2025 19:39
Copy link

Reminder to the contributor that merged this PR: if your changes have added important functionality or fixed a relevant bug, open a follow-up PR to update CHANGELOG.md with a note on your changes.

mutahhir pushed a commit that referenced this pull request Sep 2, 2025
* add support for searching modules in private registry using query, org and providername

* changing the registryName data type
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.

2 participants