Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

capturing and logging tls headers

Hello,

We enabled capturing of the tls variables as mentioned in the documentation 

"propagateTLSInformation" : {
   
"connectionProperties" : true,
   
"clientProperties" : true
 
}

 We can see the tls variables in the trace under X-Apigee.tls.* , however we are unable to log these header values. Is there something special that needs to be done to capture and log the headers under X-Apigee.tls.* ?

 

Solved Solved
0 8 615
1 ACCEPTED SOLUTION

I think i figured it out.. Even though they are getting listed as header variables, we need to access them as flow variables. Something like below worked for me and i see values getting set properly:

 

context.setVariable('inbound.protocol',context.getVariable('tls.protocol'));
context.setVariable('inbound.server',context.getVariable('tls.server.name'));
context.setVariable('inbound.session',context.getVariable('tls.session.id'));
context.setVariable('inbound.cipher',context.getVariable('tls.cipher'));

 

View solution in original post

8 REPLIES 8