<div dir="ltr"><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:small">I'm looking at using entity attributes in our metadata so the first step for me is to set up filters to remove untrusted attributes from remote metadata. Our current configuration is a combination of FilesystemMetadataProvider and FileBackedHTTPMetadataProvider for unfederated metadata, and a DynamicHTTPMetadataProvider for federation metadata. These are all combined with a single ChainingMetadataProvider in a fairly standard (if slightly old fashioned) way.</div><div style="font-size:small"><br></div><div style="font-size:small">I want to apply the filter to remove untrusted entity attributes in as few places as possible so my initial thoughts are to introduce more ChainingMetadataProviders in order to group types of metadata providers and then apply the filter to those. This would look something like this:</div><div style=""><ul style=""><li style="font-size:small">Top-level ChainingMetadataProvider</li><ul style=""><li style="font-size:small">ChainingMetadataProvider containing the local metadata providers</li><ul><li>FilesystemMetadataProvider1<br></li><li>FilesystemMetadataProvider2<br></li><li>...</li></ul><li>ChainingMetadataProvider containing the remote metadata providers</li><ul><li>MetadataFilter to remove entity attributes</li><li>FileBackedHTTPMetadataProvider1</li><ul><li>optional MetadataFilter to add attributes etc</li></ul><li>FileBackedHTTPMetadataProvider2</li><li>DynamicHTTPMetadataProvider for the federation MDQ service<br></li></ul></ul></ul><div>With this sort of setup, will the filters get applied as I expect, and in such a way that attributes are removed before the filters that add our own?</div><div><br></div><div>Thanks,</div><div><br></div><div>Max Spicer</div></div></div></div></div></div></div></div>