- when clean:
    - xslt:
       stylesheet: tidy.xsl
    - check_xml_namespaces
    - break
- when update:
    - load:
        - /opt/metadata/swamid-edugain cleanup clean
        - /opt/metadata/swamid-2.0 cleanup clean
        - /opt/metadata/swamid-interfederations-2.0 cleanup clean
    - break
- when request:
    - select
    - pipe:
        - when accept application/samlmetadata+xml application/xml:
             - xslt:
                 stylesheet: tidy.xsl
             - pubinfo:
                 publisher: https://mds.swamid.se/
             - first
             - finalize:
                 baseURL: https://mds.swamid.se/
                 cacheDuration: PT5H
                 validUntil: P10D
             - sign:
                 key: http://hsm_client_hsmproxy.docker:8000/swamidHA/swamid2
                 cert: /etc/credentials/md-signer2.crt
             - emit application/xml
             - break
