ProtectedContextValues - System Parameter
The ProtectedContextValues System Parameter masks the values of named context properties whenever Nodinite shows a Log Event's context: on the Context Values tab in Log Views in the Web Client, in the Web API, and in Resend and Repair. Use it for sensitive data such as passwords, secrets, or file names that users with access to context data shouldn't see. Context properties are described with the Log Event and its Context Options.

Animated walkthrough: two SFTP context properties of an invoice event are listed in ProtectedContextValues. The same event then shows ******** for the password and the chosen text for the user, and the Web API returns the same masks.
- Open a Log Event's Context Values tab: the
Contoso.Sftp#PasswordandContoso.Sftp#Uservalues show in clear. - Filter the System Parameters list on Protected and open ProtectedContextValues.
- List the two keys: the password with
"DisplayValue": null, the user with"*** SFTP user hidden ***". Save. - Open the same event's Context Values again: the password shows
********and the user shows the display value. - The Web API's
GET api/Message/GetMessageContextreturns the same masked values.
At a Glance
| Property | Value |
|---|---|
| Key | ProtectedContextValues |
| Data type | json |
| Default | Empty (nothing is masked) |
| Read by | Web API (the Web Client shows what it returns) and Logging Service |
| Takes effect | Within about 15 seconds; no restart needed |
| Status | ✅ Active |
| Since | Nodinite 4.3.0.24 |
How It Works
Which users may see context data at all is set per Role with the Permission Set for Log Views. For everyone who may see it, administrators included, ProtectedContextValues replaces the value of each listed context property with its display value when the context is read:
- the Context Values tab of a Log Event in every Log View, the Admin view included;
- the Web API's context,
GET api/Message/GetMessageContextand the Log Event endpoints that returnContext; - Resend and Repair, which use the masked context. A Webhook header taken from a protected key (ResendWebhookSettings) carries the mask.
The Logging Service reads the context through the same masking while it processes events, so a Search Field that extracts a protected key stores the mask, not the value.
The stored context doesn't change. Remove a key from the parameter, and the event shows its value again, also for events logged while the key was listed. To remove a context property before it is stored, use ContextPropertiesFilters instead.
The message body isn't masked; exports and the Log Audit don't contain context values.
Context properties come from many sources, for example HTTP headers, BizTalk Server context properties, MuleSoft business events, and Azure Logic Apps tracked properties. A common case is BizTalk Server dynamic send ports, which can carry FTP passwords in the context.
Tip
To mask data inside message payloads (XML, JSON, flat files), use Stylesheets.
Value Format
The value is a JSON array with one entry per context property to mask:
| Property | Type | Meaning |
|---|---|---|
Key |
string | The full name of the context property to mask. It must match the context property's name exactly, including case. |
DisplayValue |
string or null |
The text shown instead of the value. When null, ******** (eight asterisks) is shown. |
Mask a File Name
[
{
"Key": "http://schemas.microsoft.com/BizTalk/2003/file-properties#ReceivedFileName",
"DisplayValue": "*** hidden filename ***"
}
]
Example: hide the received file name in Log Events from BizTalk Server.
Mask Several Context Properties
[
{
"Key": "http://schemas.microsoft.com/BizTalk/2003/file-properties#ReceivedFileName",
"DisplayValue": "*** hidden filename ***"
},
{
"Key": "MySchema#Password",
"DisplayValue": "******** [password is hidden]"
},
{
"Key": "MySchema#SecureValue",
"DisplayValue": null
}
]
Example: three masked context properties; the last one shows the default mask ********.
Next Steps
Related Topics
- ContextPropertiesFilters - Remove context properties instead of masking them
- HideAdditionalFieldValuesInLogViews - Show, hide, or mask built-in event fields
- HideSearchFieldValuesInLogViews - Hide Search Field values not in the Log View
- Stylesheets - Mask data in message payloads
- Context Options
- System Parameters