Skip to content

feat: support pseudonymization and HCP Terraform metadata in telemetry - #49

Merged
posquit0 merged 1 commit into
mainfrom
feat/telemetry-provider-v0.2.0
Oct 11, 2026
Merged

posquit0 merged 1 commit into
mainfrom
feat/telemetry-provider-v0.2.0

Conversation

@posquit0

Copy link
Copy Markdown
Member

Summary

Update the module usage telemetry for tedilabs/telemetry v0.2.0: collect HCP Terraform run metadata, let callers send pseudonyms instead of identifying values, and count usage per Git repository.

Changes

  • telemetry.tf (every module):
    • Add capture_hcp_terraform (default true) for the hcp_terraform collector (run, workspace, project and configuration version details).
    • Add pseudonymization_enabled (default false). When enabled, identifying properties such as the hostname, the Git remote and the GitHub, GitHub Actions and HCP Terraform identifiers are sent as pseudonyms (an HMAC keyed by the project token). Pseudonyms are not anonymous, and network.public_ip is never pseudonymized; disable a collector to keep its data from being sent.
    • Set identity_keys = ["git.remote"], so events from the same Git repository share a distinct_id and usage can be counted per repository. Since provider v0.2.0 the distinct_id does not change when pseudonymization is enabled.
    • Update the variable description for the new options.
  • versions.tf: require tedilabs/telemetry >= 0.2.0.
  • README.md: regenerate with terraform-docs.

Impact on callers

  • Callers whose dependency lock file pins tedilabs/telemetry below 0.2.0 need terraform init -upgrade.
  • HCP Terraform metadata is collected by default. Set telemetry = { capture_hcp_terraform = false } to opt out of it, or telemetry = { enabled = false } to disable telemetry.
  • Other defaults are unchanged.

@github-actions github-actions Bot added 💾 enterprise-organization This issue or pull request is related to enterprise-organization module. 💾 org-organization This issue or pull request is related to org-organization module. 💾 org-team This issue or pull request is related to org-team module. 💾 project This issue or pull request is related to project module. 💾 repository This issue or pull request is related to repository module. 💾 webhook This issue or pull request is related to webhook module. 💾 repository-environment This issue or pull request is related to repository-environment module. 💾 repository-custom-property This issue or pull request is related to repository-custom-property module. 💾 org-ruleset This issue or pull request is related to org-ruleset module. size/M Medium size issue or PR. labels Oct 10, 2026
@github-actions

Copy link
Copy Markdown

Terraform Integration

Directory fmt validate tflint docs
modules/enterprise-organization ✅ ✅ ✅ ✅
modules/org-organization ✅ ✅ ✅ ✅
modules/org-ruleset ✅ ✅ ✅ ✅
modules/org-team ✅ ✅ ✅ ✅
modules/project ✅ ✅ ✅ ✅
modules/repository ✅ ✅ ✅ ✅
modules/repository-custom-property ✅ ✅ ✅ ✅
modules/repository-environment ✅ ✅ ✅ ✅
modules/webhook ✅ ✅ ✅ ✅

✅ All 9 passed.

@posquit0
posquit0 merged commit 7afed36 into main Oct 11, 2026
14 checks passed
@posquit0
posquit0 deleted the feat/telemetry-provider-v0.2.0 branch October 11, 2026 05:07
@tedilabs-release tedilabs-release Bot mentioned this pull request Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💾 enterprise-organization This issue or pull request is related to enterprise-organization module. 💾 org-organization This issue or pull request is related to org-organization module. 💾 org-ruleset This issue or pull request is related to org-ruleset module. 💾 org-team This issue or pull request is related to org-team module. 💾 project This issue or pull request is related to project module. 💾 repository This issue or pull request is related to repository module. 💾 repository-custom-property This issue or pull request is related to repository-custom-property module. 💾 repository-environment This issue or pull request is related to repository-environment module. 💾 webhook This issue or pull request is related to webhook module. size/M Medium size issue or PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant