i manage the proxies for my company, and it has long been a policy that we force authentication. where we cant do Kerberos or NTLM (Basic is forbidden), we allow auth bypass based on 3 criteria: Source IP(s), User-Agent string, Destination URL(s).
this has served us well until our java developers started having to use explicit proxies. it seems that they have never had to use an explicit proxy and it aggrevates the hell out of me because i have to resort to learning how to do their job, and tell them how to code their apps in this environment.
i have to tell them to use the CONNECT Method to establish an SSL session. i have to tell them that all subsequent PUT/POST/GET/etc Methods must be tunneled through the SSL session established with the CONNECT Method. sometimes they get this. other times, i resort to giving them an example that was given to me by someone who figured it out. that example is in Apache Commons, but a lot of the devs i interact with are using Pure Java (think Mule), so its not a 1-to-1 example.
now i have a fellow that needs to connect to an external site and the CONNECT Method has a User-Agent string present. the Client Hello is issued, but the proxy rejects the connection before the Server Hello is given back to the client. i know for sure this has to do with the User-Agent string, because if i remove that requirement, and allow access based on Source IP and Destination URL only, the connection works.
i am told the client app is written in Apache C#, which is written in Java and uses the Java User-Agent string (Java/1_7.blah). i could be wrong about the name of the language but have captured the UA string. if the language is pertinent, i will get the exact name.
we get on a call, and another dev gets on and tells me that he has never heard of the UA being exposed. he starts in on the Host header, which i believe is never exposed outside of SSL. they are different headers, and are apples-to-oranges for all i care. he then tells me to point him at resources to explain this. i think i am going to tell him to EFF off and go find it himself. i am not a developer, and its not my job to research how he/they have to write code to fit within the requirements of the infrastructure. i only have to give him requirements, which i have more than done.
i have dealt with enough HTTP and SSL, as owner of the proxies, and i know for a fact that the UA header can be exposed outside any encryption. i also know that it sometimes is not present or can be moved into the encrypted side of the conversation. at this point, i no longer remember where i came across this knowledge, but i am absolute on it. moreover, i have other client apps using SSL and auth bypass that do work using the same 3 criteria. the difference there is that most of those apps are shrink wrapped apps from a vendor.
so, here i am looking to find someone who might have more of a clue than me (and the devs i work with, it seems) about java and its user-agent string. how does one force java to expose the UA string for all requests, etc? for some reason, i think java can be configured to behave the way i expect it to work, but i am not sure if i am right. any examples would be greatly appreciated, as would any online resources that i can point the devs at.
this has served us well until our java developers started having to use explicit proxies. it seems that they have never had to use an explicit proxy and it aggrevates the hell out of me because i have to resort to learning how to do their job, and tell them how to code their apps in this environment.
i have to tell them to use the CONNECT Method to establish an SSL session. i have to tell them that all subsequent PUT/POST/GET/etc Methods must be tunneled through the SSL session established with the CONNECT Method. sometimes they get this. other times, i resort to giving them an example that was given to me by someone who figured it out. that example is in Apache Commons, but a lot of the devs i interact with are using Pure Java (think Mule), so its not a 1-to-1 example.
now i have a fellow that needs to connect to an external site and the CONNECT Method has a User-Agent string present. the Client Hello is issued, but the proxy rejects the connection before the Server Hello is given back to the client. i know for sure this has to do with the User-Agent string, because if i remove that requirement, and allow access based on Source IP and Destination URL only, the connection works.
i am told the client app is written in Apache C#, which is written in Java and uses the Java User-Agent string (Java/1_7.blah). i could be wrong about the name of the language but have captured the UA string. if the language is pertinent, i will get the exact name.
we get on a call, and another dev gets on and tells me that he has never heard of the UA being exposed. he starts in on the Host header, which i believe is never exposed outside of SSL. they are different headers, and are apples-to-oranges for all i care. he then tells me to point him at resources to explain this. i think i am going to tell him to EFF off and go find it himself. i am not a developer, and its not my job to research how he/they have to write code to fit within the requirements of the infrastructure. i only have to give him requirements, which i have more than done.
i have dealt with enough HTTP and SSL, as owner of the proxies, and i know for a fact that the UA header can be exposed outside any encryption. i also know that it sometimes is not present or can be moved into the encrypted side of the conversation. at this point, i no longer remember where i came across this knowledge, but i am absolute on it. moreover, i have other client apps using SSL and auth bypass that do work using the same 3 criteria. the difference there is that most of those apps are shrink wrapped apps from a vendor.
so, here i am looking to find someone who might have more of a clue than me (and the devs i work with, it seems) about java and its user-agent string. how does one force java to expose the UA string for all requests, etc? for some reason, i think java can be configured to behave the way i expect it to work, but i am not sure if i am right. any examples would be greatly appreciated, as would any online resources that i can point the devs at.