<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi Peter,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Oh, I think someone has already updated the Wiki – it now mentions allowedRequestAttributesPattern.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The community / committers are a very responsive, helpful bunch!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks, -Carl<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">users <users-bounces@shibboleth.net> on behalf of Peter Schober via users <users@shibboleth.net><br>
<b>Date: </b>Wednesday, August 3, 2022 at 5:34 PM<br>
<b>To: </b>users@shibboleth.net <users@shibboleth.net><br>
<b>Cc: </b>Peter Schober <peter.schober@univie.ac.at><br>
<b>Subject: </b>Re: Resolved: passing headers and attributes with AJP<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">* Woolf, Carl <Carl_Woolf@hms.harvard.edu> [2022-08-03 16:40]:<br>
> ProxyPass "/our-app/" "ajp://shrine-sso-node01.catalyst.harvard.edu:8009/our-app/"<br>
<br>
Note that there's no transport-layer security here so this would<br>
depend (1) on a secure network (from your web server to that other<br>
host) and (2) configuration on system running the Tomat AJP connector<br>
to make sure noone/nothing else can connect to that port other than<br>
the webserver running Shib.<br>
In most cases the AJP connection happens to localhost which doesn't<br>
need (or benefit from) further securing, so these requirements may or<br>
may not have been discussed earlier when you brought his up here.<br>
<br>
* Woolf, Carl <Carl_Woolf@hms.harvard.edu> [2022-08-03 22:01]:<br>
> And then, per <a href="https://stackoverflow.com/questions/63505670/apache-cant-connect-to-new-tomcat-9-ajp">
https://stackoverflow.com/questions/63505670/apache-cant-connect-to-new-tomcat-9-ajp</a><br>
> <br>
> I added allowedRequestAttributesPattern=".*" in the ajp connector in server.xml.<br>
<br>
Yeah, or a more restrictive version of that (where easily possible).<br>
<br>
I got bitten by allowedRequestAttributesPattern myself when I hadn't<br>
worked with Tomcat for a while and the code enforcing this (i.e.,<br>
prevents attributes from being accepted unless allowlisted that way)<br>
appeared in the (OS-packaged) Tomcat version I was using but the<br>
documentation mentioning that requirement didn't. ;)<br>
<br>
> Seems like both were essential. Now I am getting attributes, and have turned off headers!<br>
<br>
Yes, both are, these days.<br>
If the Shib wiki doesn't mention Tomcat now needing<br>
allowedRequestAttributesPattern this should be added, of course.<br>
Feel free to do that yourself (or someone else will hopefully get to<br>
it, myself not excluded).<br>
-peter<br>
-- <br>
For Consortium Member technical support, see <a href="https://shibboleth.atlassian.net/wiki/x/ZYEpPw">
https://shibboleth.atlassian.net/wiki/x/ZYEpPw</a><br>
To unsubscribe from this list send an email to users-unsubscribe@shibboleth.net</p>
</div>
</div>
</body>
</html>