Add hosted Terraform module manifest and discovery contract#254
Draft
whitemerch wants to merge 6 commits into
Draft
Add hosted Terraform module manifest and discovery contract#254whitemerch wants to merge 6 commits into
whitemerch wants to merge 6 commits into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6ba317d033
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
whitemerch
marked this pull request as draft
July 13, 2026 13:24
whitemerch
changed the base branch from
main
to
chakib.hamie/remote_module_bounded_walker
July 13, 2026 13:24
|
🎯 Code Coverage (details) 🔗 Commit SHA: 907f3c1 | Docs | Datadog PR Page | Give us feedback! |
whitemerch
force-pushed
the
chakib.hamie/hosted_module_contract
branch
from
July 13, 2026 15:22
29ffe4a to
fa7feb3
Compare
…ive offline mode, and scanner hot-path optimizations.
Base automatically changed from
chakib.hamie/remote_module_bounded_walker
to
main
July 15, 2026 09:26
| return -1 | ||
| } | ||
| return result | ||
| return int(line) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Hosted IaC scanning needs a stable scanner-side contract for discovering Terraform module calls and consuming server-prefetched module directories without enabling network fetches inside the scanner subprocess.
Changes
CLI
Add
list-modulesso hosted services can enumerate Terraform module calls as JSON before server-side materialization.Manifest scanning
Allow manifest-only module resolution via
--x-remote-modules-manifest, enable local module evaluation when a manifest or.terraform/modulescache is present, and validate manifest version constraints against resolved module versions.Stability
Strip registry module version segments from Terraform fingerprints so upgrading a remote module does not churn finding identity.
QA Instruction
go test ./cmd/scanner ./pkg/parser/terraform/modules/modulegraph ./pkg/parser/terraform/modules/resolver ./pkg/scan ./pkg/modelgolangci-lint run -c .golangci.yml --timeout 20m./bin/datadog-iac-scanner list-modules -p <terraform-root>./bin/datadog-iac-scanner scan -p <terraform-root> --x-remote-modules-manifest <modules.json>Impact
Adds the hosted module discovery and manifest contract on top of the bounded module graph work in #253.