.NET エージェントを使用した機密データのフィルタ処理
デフォルトでは、.NET エージェントは、コントローラに組織が特権情報として分類する可能性のあるトランザクションデータを送信します。このデータは診断およびトラブルシューティングに役立ちますが、セキュリティを考慮すると、コントローラのビューから特定の情報をフィルタ処理する必要があります。機密データフィルタを使用すると、コントローラ内の環境変数や URL、またはスナップショットの詳細情報を除外することができます。
機密データフィルタは、.NET Windows および Linux エージェント(21.4 以降)で使用できます。
Add a Sensitive Data Filter
To instrument sensitive data filters, you edit the .NET Agent configuration file. See Administer the .NET Agent.
DB_USER is obfuscated and replaced with an asterisk in the Controller.
Example config.xml file:
</sensitive-data-filters>
<sensitive-data-filter applies-to="environment-variables,system-properties" match-type="STARTSWITH" match-pattern="DB_"/>
</sensitive-data-filters>
Example config.json file:
sensitive-data-filters: [
{
"applies-to": "environment-variables, system-properties",
"match-type": "STARTSWITH",
"match-pattern": "DB_"
}
]
Add a Sensitive URL Filter
You can use sensitive URL filters to configure the agent to obfuscate sensitive information in the URLs in the Controller.
To instrument sensitive URL filters, you edit the .NET Agent configuration file. See Administer the .NET Agent.
myapp".<!-- Filter URL/URI segments and query parameters -->
<sensitive-url-filters>
<sensitive-url-filter delimiter="/"
segment="2"
match-filter="CONTAINS"
match-pattern="myapp"
param-pattern="[a-z]+"/>
</sensitive-url-filters>If you do not use any values for the query parameters, the Controller does not mask any query parameters in the URL.
The exit call to https://myapp.example.com/sensitive/data?first_name=abc&last_name=xyz breaks down to three segments:
"https://myapp.example.com""sensitive""data?first_name=abc&last_name=xyz"
Add a Sensitive Message Filter
You can use the sensitive-message-filters element to obfuscate sensitive information contained within text messages collected from exception messages.
match-pattern contains "Sensitive". <sensitive-message-filters>
<sensitive-message-filter message-type="all"
match-type="CONTAINS"
match-pattern="Sensitive"
redaction-regex="[0-9]+"/>
</sensitive-message-filters>