Activity Tracing in Message Security
This topic describes activity tracing for security processing, which happens in the following three phases.
Negotiation/SCT exchange. This can happen at the transport later (through binary data exchange) or message layer (through SOAP message exchanges).
Message encryption/decryption, with signature verification and authentication. Traces appear in the ambient activity, typically "Process Action."
Authorization and verification. This can happen locally or when communicating between endpoints.
Negotiation/SCT exchange
In the negotiation/SCT exchange phase, two activity types are created on the client: "Set up Secure Session" and "Close Secure Session." "Set up Secure Session" encompasses traces for the RST/RSTR/SCT message exchanges, while "Close Secure Session" includes traces for the Cancel message.
On the server, each request/reply for the RST/RSTR/SCT appears in its own activity. If propagateActivity=true on both the server and client, activities on the server have the same ID, and appear together in the "Setup Secure Session" when viewed through Service Trace Viewer.
This activity tracing model is valid for user name/password authentication, certificate authentication, and NTLM authentication.
The following table lists the activities and traces for negotiation and SCT exchange.
Time when Negotiation/SCT exchange happens | Activities | Traces | |
---|---|---|---|
Secure Transport (HTTPS, SSL) |
On first message received. |
Traces are emitted in the ambient activity. |
|
Secure Message Layer (WSHTTP) |
On first message received. |
On the client:
On the server:
There are two stages for "Set up Secure Session":
|
|
Note: |
---|
In mixed security mode, negotiation authentication happens in binary exchanges, but SCT happens in message exchange. In pure transport mode, negotiation happens only in transport with no additional activities. |
Message Encryption and Decryption
The following table lists the activities and traces for message encryption/decryption, as well as signature authentication.
Secure Transport (HTTPS, SSL) and Secure Message Layer (WSHTTP) | |
---|---|
Time when message encryption/decryption, as well as signature authentication happens |
On message received |
Activities |
Traces are emitted in the ProcessAction activity on the client and server. |
Traces |
|
Note: |
---|
In pure transport mode, message encryption/decryption happens only in transport with no additional activities. |
Authorization and Verification
The following table lists the activities and traces for authorization.
Time when authorization happens | Activities | Traces | |
---|---|---|---|
Local (default) |
After the message is decrypted on the server |
Traces are emitted in the ProcessAction activity at the server. |
User authorized. |
Remote |
After the message is decrypted on the server |
Traces are emitted in a new activity invoked by the ProcessAction activity. |
User authorized. |