This page introduces some important policy considerations and procedures associated with InCommon metadata. Other pages discuss describe the availability of multiple metadata aggregates and provide guidance with respect on how to configure specific metadata client clients. General configuration issues, including the configuration of outbound firewalls, are discussed below.
Metadata Refresh Policy
InCommon expects participants to refresh metadata daily to ensure that SAML endpoints deployments have access to the most up-to-date keys and other registered information. Some software implementations (such as Shibboleth) handle metadata easily, but regardless of your software, please read this entire page to understand the requirements and pitfalls associated with metadata consumption.
It is strongly recommended that InCommon SPs and IdPs refresh and verify metadata at least daily. An optimal configuration would attempt to refresh metadata every hour, (assuming your client supports HTTP Conditional GET).
Participants are strongly encouraged to use SAML metadata client software that properly handles metadata; failure to do so can have profound effects on the successful use of the Federation. In addition to maintaining the security of your own deployment, proper metadata use is critical to ensure that other participants can depend on your system behaving correctly when they make changes.
In addition, if you don't refresh your metadata regularly, it is likely that a software implementation will fail at some point since the XML document carries an expiration date (
validUntil) that causes the metadata to expire in approximately two weeks. InCommon strongly recommends that you do not rely on the actual length of this validity interval in any way, and in fact, we reserve the right to shorten the validity interval with little or no notice.
Metadata Refresh Process
The mechanics of Here are the steps to deploy a secure, automated metadata refresh process:
- Choose the right metadata aggregate for your particular deploymentDeploy and configure an automated metadata refresh process:
- Configure your metadata client Verify the XML signature one of three Metadata Aggregates
- Obtain an authentic copy of the Metadata Signing Certificate
- Install and configure recommended Metadata Client Software:
- Refresh metadata at least daily (but more often if possible)
- Validate the expiration date on downloaded metadataValidate
- Verify the expiration date XML signature on downloaded metadata
- Adjust your outbound firewall rules (if necessary)
Deployments are strongly encouraged to refresh metadata at least daily. If your metadata client supports HTTP Conditional GET, configure the client to refresh metadata every hour. This strategy provides the best protection in the event of a key compromise.
Federation metadata has an expiration date, much like an X.509 certificate. It is important that expired metadata not be accepted, otherwise an attacker would be able to substitute expired metadata in conjunction with metadata refresh. In particular, a metadata file should not be accepted if any of the following conditions are true:
- If the metadata file does not have a
validUntilXML attribute on the root element.
- If the
validUntildate on the root element is expired.
- If the
validUntildate on the root element is too far into the future.
A metadata refresh process should check each of the above conditions before accepting the metadata. Alternatively, if your SAML implementation is known to ignore/reject expired metadata (a basic correctness requirement), it may be sufficient to ensure that a
validUntil attribute exists and its date value is not unexpectedly far into the future.
Verifying the signature on a SAML metadata file does not validate the presence or value of an expiration date. The only way to validate the expiration date is to parse the XML.
Federation metadata is signed for integrity and authenticity. Participants are strongly encouraged to verify the XML signature on the metadata file before use; failure to do so will seriously compromise the security of your SAML deployment.
A trusted metadata process MUST verify the XML signature on InCommon metadata. It is not sufficient to request the metadata via a TLS-protected HTTP connection, which is why the sample process shown below does not rely on TLS.
The InCommon Federation is based on the Explicit Key Trust Model, one of several possible metadata trust models. To bootstrap the trust fabric of the Federation, participants are required to download and configure the metadata verification certificate an authentic copy of the Metadata Signing Certificate into their metadata refresh process:https://wayf. incommonfederation.org/bridge/certs/incommon.pem The certificate must be obtained securely since all subsequent operations depend on it. You may check the integrity of the downloaded certificate in a variety of ways. For example, you could use
openssl after the fact as follows:
$ curl --silent --remote-name
$ openssl x509 -sha1 -in incommon.pem -noout -fingerprint
Once the certificate file is locally installed, you can use it to verify the signature on the metadata file. For example, you could use the XmlSecTool (or some similar 3rd-party tool) to verify the signature:
$ MD_LOCATION=http://md.incommon.org/InCommon/InCommon-metadata.xml $ MD_PATH=/tmp/InCommon-metadata.xml $ /usr/bin/curl --silent $MD_LOCATION > $MD_PATH $ ./xmlsectool.sh --verifySignature --signatureRequired \ --certificate incommon.pem$MD_CERT_PATH --inFile $MD_PATH INFO XmlSecTool - Reading XML document from file '/tmp/InCommon-metadata.xml' INFO XmlSecTool - XML document parsed and is well-formed. INFO XmlSecTool - XML document signature verified.
You may also want to schema validate the metadata:
$ ./xmlsectool.sh --validateSchema \ --schemaDirectory schema-files$SCHEMA_DIR --inFile $MD_PATH INFO XmlSecTool - Reading XML document from file '/tmp/InCommon-metadata.xml' INFO XmlSecTool - XML document parsed and is well-formed. INFO XmlSecTool - XML document is schema valid
For convenience, we provide a set of (suitably modified) schema files that permit offline schema validation.
Federation metadata has an expiration date, much like an X.509 certificate. It is important that expired metadata not be accepted, otherwise an attacker would be able to substitute expired metadata in conjunction with a metadata refresh. In particular, a metadata file should not be accepted if either of the following conditions are true:
- If the metadata file does not have a
validUntilattribute on the root element.
- If the
validUntilattribute on the root element is expired.
A metadata reload process should check each of the above conditions before accepting the metadata; alternatively if your SAML implementation is known to ignore/reject expired metadata (a basic correctness requirement), it may be sufficient to ensure that a
validUntil attribute exists and is not unexpectedly far into the future.
Verifying the signature on a SAML metadata file does not verify the presence or value of an expiration date. The only way to verify the expiration date is to parse the XML.
Depending on your environment, you may have to poke a hole in an outbound firewall to allow your metadata client to reach the metadata server. In that case, you will actually want to poke two holes in that firewall since there are two metadata physical servers as described below.
wayf.incommonfederation.org resolves to one of two identical servers, either in Michigan (220.127.116.11) or Indiana (18.104.22.168). The actual server used at any given point in time is unspecified and left to the discretion of InCommon Operations. If one of the servers goes down or requires maintenance, the other can be brought up within minutes, with minimal disruption of services.
Therefore, please make sure both your SAML implementation and your metadata refresh processes are configured with hostname
wayf.incommonfederation.org (as opposed to an IP address). On the other hand, make sure your outbound firewall (if any) is configured with both IP addresses (22.214.171.124 and 126.96.36.199).
on the Metadata Server wiki page.