Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:aai:mdq [2021/07/14 12:44] – created Silke Meyeren:aai:mdq [2024/02/02 09:44] (current) Wolfgang Pempe
Line 1: Line 1:
-FIXME **This page is not fully translated, yet.** 
- 
 ====== Metadata Query Service (MDQ) ====== ====== Metadata Query Service (MDQ) ======
  
-<callout type="danger" title="Pilotbetrieb Nutzung auf eigene Gefahr!"> +<callout color="#ff9900" title="Pilot Use at your own risk!"> 
-Der Metadata Query Service befindet sich erst im PilotbetriebDer DFN-Verein übernimmt keinerlei Gewähr hinsichtlich VerfügbarkeitFehlerfreiheit und Stablilität dieses ServicesErfahrungsberichte und Fehlermeldungen nimmt gerne das Team der DFN-AAI entgegen: [[hotline@aai.dfn.de|hotline@aai.dfn.de]]. +Our Metadata Query Service is still running in pilot operationThere is currently no guarantee for its availabilityflawlessness and stabilityYou are very welcome to share your experience or error reports with us at [[hotline@aai.dfn.de|hotline@aai.dfn.de]]. 
 </callout> </callout>
  
-===== Erläuterungen ===== +===== Explanation ===== 
-Im Rahmen der SAML-basierten Kommunikation ermöglicht es der **Metadata Query Service**, die Metadaten der jeweiligen Gegenstelle (IdP/SP/Attribute Authority) in Echtzeit abzurufen, wobei hier i.d.R. auch ein Chaching stattfindetDaher wird dieser Mechanismus auch als **Per-Entity Metadata** bezeichnetIm Gegensatz zum traditionellen VerfahrenFöderationsmetadaten als große XML-Dateien zur Verfügung zu stellen, die von den jeweiligen technischen Instanzen heruntergeladen, validiert und weiterverarbeitet werden müssen, ist der Per-Entity Ansatz deutlich leichtgewichtiger und ressourcenschonender. IdPs, SPs und Attribute Authorities verarbeiten nur die Metadatdatendie aktuell benötigt werdenDie Grundlage für dieses Verfahren bildet das **Metadata Query Protocol** (siehe unter [[#referenzen|Referenzen]]). \\ +**Metadata Query Service** can be queried for the metadata of individual entities (IdP/SP/Attribute Authority) in real-timeThis approach is also called **Per-Entity Metadata**. The conventional approach is to offer federation metadata as huge xml files that have to be fetchedvalidated and processed by all participating systems. The per-entity approach consumes much less resources: All systems just process the metadata they need in a given momentand cache them for a certain timeThis procedure is based on the **Metadata Query Protocol** (see [[#references|References]]).
-Es liegt in der Natur dieses Verfahrens, dass ein Metadata Query Service besonders hohen Anforderungen hinsichtlich Verfügbarkeit und Ausfallsicherheit genügen muss. Der Pilotbetrieb in der DFN-AAI dient dazu, diesbezügliche Erfahrungen zu sammeln, ggf. Verbesserungen vorzunehmen und den späteren Einsatz im Produktivbetrieb vorzubereiten. \\ +
-Beachten Sie bitte auch die [[de:aai:mdq#weitere_hinweise_und_bekannte_probleme|weiteren Hinweise]] unten.+
  
-**Wichtiger Hinweis:** Der MDQ-Service liefert **keine** [[de:metadata_local|lokalen Metadaten]] aus! Diese müssen nach wie vor über einen "statischen" Metadata Provider des Typs ''FileBackedHTTPMetadataProvider'' (Shib IdP) bzw. ''XML'' (Shib SP) eingebunden werden.+A Metadata Query Service has to meet high requirements in terms of availability and resilienceDFN-AAI's pilot lets us gain experience and improve the service for production.
  
-\\+Please see the section on [[en:aai:mdq#further_hints_and_known_issues|further hints and known issues]] below.
  
-===== Parameter ===== +**Important notice:** The MDQ service does not deliver **any** [[de:metadata_local|local metadata]]! You still have to include them via a static metadata provider, type ''FileBackedHTTPMetadataProvider'' for Shibboleth IdPs, type ''XML'' for Shibboleth SPs.
-**URL für die Metadaten der Produktivföderation (DFN-AAI, DFN-AAI-Basic) und eduGAIN:** <code>http(s)://mdq.aai.dfn.de</code>+
  
-**URL für die Metadaten der Testföderation (DFN-AAI-Test):** <code>http(s)://mdq-test.aai.dfn.de</code>+===== Parameters ===== 
 +**URL for the production metadata (DFN-AAI, DFN-AAI-Basicand eduGAIN:** <code>http(s)://mdq.aai.dfn.de</code>
  
-**Zertifikat zur Überprüfung der Signatur der DFN-AAI MDQ Metadaten** (PEM-Format\\ +**URL for the metadata of the test federation (DFN-AAI-Test):** <code>http(s)://mdq-test.aai.dfn.de</code>
-SHA256 Fingerprint: 73:5B:9E:76:8A:A6:33:73:4D:3E:C6:D2:1E:98:B3:D9:03:74:B9:87:16:52:16:53:32:26:9A:B2:55:FC:CA:D2 \\ +
-https://www.aai.dfn.de/fileadmin/metadata/dfn-aai-mdq.pem +
  
-\\+**Certificate for the validation of the signature of DFN-AAI MDQ Metadata** (PEM format) \\ 
 +SHA256 Fingerprint: 75:18:98:F6:E8:23:21:E8:B1:DC:71:6B:D0:AB:50:F0:C2:DB:9D:CE:4B:2B:A1:88:B1:42:DB:99:13:DB:0D:E9 \\ 
 +https://www.aai.dfn.de/metadata/dfn-aai-mdq.pem 
  
-===== Konfigurationsbeispiele =====+===== Examples =====
  
 ==== Shibboleth IdP 4.x ==== ==== Shibboleth IdP 4.x ====
  
-=== Produktivföderation (DFN-AAI, DFN-AAI-Basic) und eduGAIN ===+=== Production (DFN-AAI, DFN-AAI-Basic) and eduGAIN ===
  
 <file xml ./conf/metadata-providers.xml> <file xml ./conf/metadata-providers.xml>
Line 42: Line 38:
 </file> </file>
  
-=== Testföderation (DFN-AAI-Test) ===+=== Test Federation (DFN-AAI-Test) ===
  
 <file xml ./conf/metadata-providers.xml> <file xml ./conf/metadata-providers.xml>
Line 53: Line 49:
 </file> </file>
  
-Sonstige Filtermöglichkeiten werden gerne auf [[hotline@aai.dfn.de|Anfrage]] dokumentiert. 
- 
-\\ 
  
 ==== Shibboleth SP 3.2.x ==== ==== Shibboleth SP 3.2.x ====
  
-<callout color="#ff9900" title="Wichtiger Hinweis"> +<callout color="#ff9900" title="Important Notice"> 
-Der Metadaten-Import via Metadata Query macht nur dann Sinn, wenn der Service Provider **keinen Discovery Service verwendet, dessen IdP-Liste aus den importierten Föderationmetadaten generiert wird**, wie dies beispielsweise beim [[de:shibsp#shibboleth_eds_embedded_discovery_service|Shibboleth EDS]] der Fall ist  +Importing metadata via MDQ only makes sense if **the SP does not rely on imported federation metadata to generate an IdP list for its Discovery Service**. This is how [[de:shibsp#shibboleth_eds_embedded_discovery_service|Shibboleth EDS]] (Link in German) works 
 </callout> </callout>
  
-\\ +=== Production (DFN-AAI, DFN-AAI-Basic) and eduGAIN ===
- +
-=== Produktivföderation (DFN-AAI, DFN-AAI-Basic) und eduGAIN ===+
  
 <file xml /etc/shibboleth/shibboleth2.xml> <file xml /etc/shibboleth/shibboleth2.xml>
Line 76: Line 67:
 </file> </file>
  
-\\ +We are happy to document further filter mechanisms [[hotline@aai.dfn.de|on demand]].
- +
-=== Ausschließlich IdPs aus DFN-AAI Advanced === +
-(Zur Unterscheidung zwischen "Advanced" und "Basic" siehe die Erläuterungen zu den [[de:degrees_of_reliance|Verlässlichkeitsklassen]]) +
- +
-**Wichtig:** damit der u.g. Filter funktioniert, muss im Root-Element ''SPConfig'' der Datei ''shibboleth2.xml'' der Namespace ''xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"'' gesetzt sein. +
- +
-<file xml /etc/shibboleth/shibboleth2.xml> +
-    <MetadataProvider type="MDQ" id="dfn_aai_mdq_advanced_only" ignoreTransport="true" +
-                  cacheDirectory="mdq-aai-dfn-de" +
-                  maxCacheDuration="3600" minCacheDuration="600" +
-                  baseUrl="https://mdq.aai.dfn.de"> +
-           <MetadataFilter type="Signature" certificate="/etc/ssl/aai/dfn-aai-mdq.pem"/> +
-           <MetadataFilter type="Include" matcher="EntityAttributes"> +
-               <saml:Attribute Name="http://aai.dfn.de/loa/degree-of-reliance" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"> +
-                 <saml:AttributeValue>advanced</saml:AttributeValue> +
-               </saml:Attribute> +
-           </MetadataFilter> +
-    </MetadataProvider> +
-</file> +
- +
-Weitere Filtermöglichkeiten werden gerne auf [[hotline@aai.dfn.de|Anfrage]] dokumentiert. +
- +
-\\+
  
-===== Weitere Hinweise und bekannte Probleme ===== +===== Further hints and known issues ===== 
-**Allgemein:** \\ +**General:** \\ 
-Sofern in der Metadata Provider Konfiguration weitere, 'statische' (z.B. ''FileBackedHTTPMetadataProvider''''MetadataProvider'' definiert sindsollten ''MetadataProvider''-Elemente des Typs das ''MDQ'' bzw. ''DynamicHTTPMetadataProvider'' ganz am Ende eingefügt werdenAnsonsten führt der IdP/SP jedes Mal eine Metadata Query aus, auch wenn die betreffende Entity bereits über die statischen Metadaten verfügbar ist.+If you have defined static metadata providers (e.g. ''FileBackedHTTPMetadataProvider''in addition to dynamic metadata querythe ''MDQ'' resp. ''DynamicHTTPMetadataProvider'' should be appended after the static onesThis prevents the IdP/SP from running metadata queries for entities that are available from the static metadata.
  
 **Shibboleth IdP:** \\ **Shibboleth IdP:** \\
-Bei nicht erfolgreichen Metadata Queries erscheint eine Warnung im Log: ''Document root was not an EntityDescriptor: org.opensaml.saml.saml2.metadata.impl.EntitiesDescriptorImpl''+Failed metadata queries are logged like this in the IdP: ''Document root was not an EntityDescriptor: org.opensaml.saml.saml2.metadata.impl.EntitiesDescriptorImpl''
  
 **Shibboleth SP < 3.2.0:** \\ **Shibboleth SP < 3.2.0:** \\
-Im SP-Log erscheint nach jedem Neustart die irreführende Warnung, dass das Caching-Verzeichnis nicht nicht angelegt werden kannEs existiert bereitsSiehe https://issues.shibboleth.net/jira/browse/SSPCPP-916+After every restart the SP logs a misleading warning about the cache directory that cannot be createdIt already existsSee https://issues.shibboleth.net/jira/browse/SSPCPP-916
  
-**Sonstige Fehler** bitte an [[hotline@aai.dfn.de|hotline@aai.dfn.de]] melden.+Please let us know if you run into any **other errors** ([[hotline@aai.dfn.de|hotline@aai.dfn.de]]).
  
 \\ \\
  
-===== Referenzen ===== +===== References ===== 
-  * [[https://datatracker.ietf.org/doc/draft-young-md-query/|Spezifikation Metadata Query Protocol]]+  * [[https://datatracker.ietf.org/doc/draft-young-md-query/|Specification of the Metadata Query Protocol]]
   * Shibboleth Wiki   * Shibboleth Wiki
     * [[https://wiki.shibboleth.net/confluence/display/IDP4/MetadataManagementBestPractices#MetadataManagementBestPractices-DynamicHTTPMetadataProvider|Metadata Management Best Practices]]     * [[https://wiki.shibboleth.net/confluence/display/IDP4/MetadataManagementBestPractices#MetadataManagementBestPractices-DynamicHTTPMetadataProvider|Metadata Management Best Practices]]
-    * [[https://wiki.shibboleth.net/confluence/display/IDP4/DynamicHTTPMetadataProvider|Konfiguration Identity Provider]] +    * [[https://wiki.shibboleth.net/confluence/display/IDP4/DynamicHTTPMetadataProvider|Identity Provider Configuration]] 
-    * [[https://wiki.shibboleth.net/confluence/display/SP3/MDQMetadataProvider|Konfiguration Service Provider]] +    * [[https://wiki.shibboleth.net/confluence/display/SP3/MDQMetadataProvider|Service Provider Configuration]] 
-  * Ausführliche [[https://spaces.at.internet2.edu/display/MDQ/Introducing+per-entity+metadata+service|Doku im InCommon Wiki]] (US-Föderation)+  * Detailed [[https://spaces.at.internet2.edu/display/MDQ/Introducing+per-entity+metadata+service|documentation on InCommon Wiki]] (US federation)
  
-{{tag>metadata idp4 sp3}}+{{tag>metadata idp4 sp3 mdq}}
  • Last modified: 3 years ago