Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hash all instances of module ids in device telemetry #3442

Merged
merged 2 commits into from
Aug 24, 2020
Merged

Conversation

lfitchett
Copy link
Contributor

@lfitchett lfitchett commented Aug 24, 2020

This additionally hashes:

  • to
  • from
  • to_route_input
  • from_route_output

@@ -42,7 +42,13 @@ public MetricsWorker(IMetricsScraper scraper, IMetricsStorage storage, IMetricsP
this.metricFilter = new MetricTransformer()
.AddAllowedTags(new KeyValuePair<string, string>(MetricsConstants.MsTelemetry, true.ToString()))
.AddTagsToRemove(MetricsConstants.MsTelemetry, MetricsConstants.IotHubLabel, MetricsConstants.DeviceIdLabel)
.AddTagsToModify(("id", this.ReplaceDeviceId), ("module_name", name => name.CreateSha256()));
.AddTagsToModify(
Copy link
Contributor

Choose a reason for hiding this comment

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

tests?

varunpuranik
varunpuranik previously approved these changes Aug 24, 2020
@kodiakhq kodiakhq bot merged commit 46f40fc into master Aug 24, 2020
@kodiakhq kodiakhq bot deleted the hash_to_from branch August 24, 2020 21:57
lfitchett added a commit that referenced this pull request Aug 24, 2020
This additionally hashes:
* to
* from
* to_route_input
* from_route_output
kodiakhq bot pushed a commit that referenced this pull request Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants