SP Startup takes 20+ minutes
Tom Scavo
trscavo at gmail.com
Mon May 2 08:30:48 EDT 2016
On Fri, Apr 29, 2016 at 8:54 PM, Scott Koranda <skoranda at gmail.com> wrote:
>>
>> Then we configured the SP to no longer run the signature
>> filter on the file
>>
>> Can you provide a working example on how to disable it?
>
> We changed
>
> <MetadataProvider type="XML" url="http://md.incommon.org/InCommon/InCommon-metadata.xml" backingFilePath="InCommon-metadata.xml" maxRefreshDelay="28800" legacyOrgNames="true">
> <MetadataFilter type="Signature" certificate="/etc/shibboleth/inc-md-cert.pem"/>
> <MetadataFilter type="RequireValidUntil" maxValidityInterval="2419200" />
> <MetadataFilter type="Blacklist" matcher="EntityAttributes">
> <saml:Attribute Name="http://macedir.org/entity-category" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
> <saml:AttributeValue>http://refeds.org/category/hide-from-discovery</saml:AttributeValue>
> </saml:Attribute>
> </MetadataFilter>
> </MetadataProvider>
>
> to be instead
>
> <MetadataProvider type="XML" file="/var/cache/shibboleth/InCommon-metadata-verified.xml" legacyOrgNames="true">
> <MetadataFilter type="RequireValidUntil" maxValidityInterval="2419200" />
> <MetadataFilter type="Blacklist" matcher="EntityAttributes">
> <saml:Attribute Name="http://macedir.org/entity-category" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
> <saml:AttributeValue>http://refeds.org/category/hide-from-discovery</saml:AttributeValue>
> </saml:Attribute>
> </MetadataFilter>
> </MetadataProvider>
Scott, you already know this but you lose HTTP Conditional GET with
this approach. I have a script that makes up for that
(https://gist.github.com/trscavo/5fb0ce26796da9321e84) but that's not
the main reason why I replied.
The rest of this message is directed at the larger dev community, not Scott.
I was shocked when I first saw the above configs, and then I realized
I was reading on the dev list (not the users list) and my reaction
subsided. Still, I think it's cause for concern that such workarounds
are even required, let alone published.
Like others here, I've made an effort over the years to document
secure MetadataProvider examples in the wiki. The above workaround is
not in that category since it can be easily misinterpreted and misused
by a naive user. I will do what I can to keep that example out of the
wiki but I suppose it's just a matter of time before the it finds its
way onto the users list. <sigh>
Tom
More information about the dev
mailing list