Extending the SP Dynamic Metadata Provider

Tom Scavo trscavo at gmail.com
Sat Oct 28 13:13:42 EDT 2017


On Sat, Oct 28, 2017 at 12:06 PM, Rod Widdowson
<rdw at steadingsoftware.com> wrote:
>> ... does the dynamic provider remove
>> expired metadata it finds in the directory? If so, does it do lazy
>> removal (as expired entities are accessed) or a periodic sweep of the
>> directory or something else?
>
> If you are speaking of the SP, right now that is the file:///  thing and no it does nothing.  I rather feel that it shouldn't -it
> doesn't populate it so it shouldn't delete the files.  I don't know whether having found an expired entity it stops dead or carries
> on down the chain, but I would rather explain the latter.

When you say "stops dead," I assume you mean metadata resolution
fails, correct? FWIW I would say that "stops dead" is not appropriate
default behavior in any case.

> If you are speaking of the IdP and its LocalDynamicMetadataProvider then I think that the same is true.
>
> If you are speaking of caching then the IdP does a sweep through (see the documentation for the cleanupTaskInterval in
> https://wiki.shibboleth.net/confluence/x/8YAOAQ)

Without more use cases, it's hard to say for sure, but a file cleanup
task for LocalDynamicMetadataProvider doesn't seem grossly
unreasonable.

Tom


More information about the dev mailing list