I have installed the following configuration profile:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadDisplayName</key>
<string>Enable Private Data Logging for Unified Logging</string>
<key>PayloadEnabled</key>
<true/>
<key>PayloadIdentifier</key>
<string>com.apple.system.logging.2BFB8109-8829-4020-AEB7-BA21761AE50C</string>
<key>PayloadType</key>
<string>com.apple.system.logging</string>
<key>PayloadUUID</key>
<string>2BFB8109-8829-4020-AEB7-BA21761AE50C</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>System</key>
<dict>
<key>Enable-Private-Data</key>
<true/>
</dict>
</dict>
</array>
<key>PayloadDisplayName</key>
<string>Enable Private Logging Data</string>
<key>PayloadIdentifier</key>
<string>Kentzo-Macbook.D000DF5D-AE7A-4D22-B1DC-8F9CD71A2DD2</string>
<key>PayloadRemovalDisallowed</key>
<false/>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>1CF75441-D3C2-4E5B-B36A-394C397E8529</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>ConsentText</key>
<dict>
<key>default</key>
<string>Warning: Installing this profile will enable private data logging for all of unified logging.</string>
</dict>
</dict>
</plist>
But both Console.app and log show values like <mask.hash: 'Z9xIxlLTn0KlWPUjmpOSkg=='>
for the com.apple.mDNSResponder subsystem.
What do I need to do to reveal this information?
Enabling private data records… well… data that’s marked as private. There are other privacy levels, and that’s what you’re seeing here. Specifically, the data is flagged as sensitive. Such data will never be recorded in the clear on production versions of macOS. mDNSResponder
then opts in to mask hashes, which is why you see that hash. This is kinda cool, because it lets you correlate values across log entries without actually recording the sensitive value.
Anyway, for more on this see:
-
The
OSLogPrivacy
type in the Swift logging API. This is the best explanation of this stuff that I’m aware of (sadly the man pages for the C API seem to be lacking info on this topic). -
The actual code used by
mDNSResponder
for this, available in the Darwin open source. See here.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"