Repository navigation
feat: support pseudonymization and HCP Terraform metadata in telemetry - #49
Merged
Merged
Conversation
Terraform Integration
✅ All 9 passed. |
Merged
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.
Summary
Update the module usage telemetry for
tedilabs/telemetryv0.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):capture_hcp_terraform(defaulttrue) for thehcp_terraformcollector (run, workspace, project and configuration version details).pseudonymization_enabled(defaultfalse). 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, andnetwork.public_ipis never pseudonymized; disable a collector to keep its data from being sent.identity_keys = ["git.remote"], so events from the same Git repository share adistinct_idand usage can be counted per repository. Since provider v0.2.0 thedistinct_iddoes not change when pseudonymization is enabled.versions.tf: requiretedilabs/telemetry >= 0.2.0.README.md: regenerate withterraform-docs.Impact on callers
tedilabs/telemetrybelow0.2.0needterraform init -upgrade.telemetry = { capture_hcp_terraform = false }to opt out of it, ortelemetry = { enabled = false }to disable telemetry.