Obfuscation in ApplicationInsight

Yauheni Yefimenka 41 Reputation points
2022-08-08T13:21:18.84+00:00

Hi guys, I have a question about Azure ApplicationInsight. In our project, there is a customer who has a bad API where we send sensitive information over GET requests. The problem is we can see HTTP requests with all parameters in ApplicationInsight. We need either obfuscate some parameters or hide them at all. Could you help us, please? Is there such a possibility?

229174-screen-shot-2022-08-08-at-170729.png

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,014 questions
0 comments No comments
{count} votes

Accepted answer
  1. AnuragSingh-MSFT 21,546 Reputation points Moderator
    2022-08-09T10:24:22.77+00:00

    Hi @Yauheni Yefimenka ,

    Thank you for posting this question on Microsoft Q&A.

    I understand that you want to edit the URL being collected through ApplicationInsights for the requests to exclude certain parameters. For that, you may use telemetry initializers to modify the properties of telemetry being submitted to ApplicationInsights. The link here provides a basic example of how to use it in your application - Add/modify properties: ITelemetryInitializer

    Note the line var requestTelemetry = telemetry as RequestTelemetry; in the sample provided. RequestTelemetry has a property called URL which can be read and overwritten with some obfuscated data.

    I also noticed based on the screenshot that the URL was related to a PHP application. Note that PHP is not officially supported language for ApplicationInsights. For details, please see this link.

    Please let me know if you have any questions.

    ---
    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.