-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Promote check for SAML 2.0 SPs with KeyName-only KeyDescriptors to pr…
…oduction. Move this and related checks from check_misc into a new check_uk_trust ruleset, which will reflect the Trust Fabric section of the FTS as it develops, and as we perform our 2013 trust fabric evolution. Resolves bugzilla issue 959.
- Loading branch information
Showing
4 changed files
with
108 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!-- | ||
| check_uk_trust.xsl | ||
| Checking ruleset for the UK federation trust fabric, as documented in the | ||
| Federation Technical Specifications. Checks are labelled with a section | ||
| number and FTS version, as the section number may change between editions. | ||
| Author: Ian A. Young <ian@iay.org.uk> | ||
| --> | ||
| <xsl:stylesheet version="1.0" | ||
| xmlns:ds="http://www.w3.org/2000/09/xmldsig#" | ||
| xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" | ||
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
| xmlns="urn:oasis:names:tc:SAML:2.0:metadata"> | ||
|
|
||
| <!-- | ||
| Common support functions. | ||
| --> | ||
| <xsl:import href="check_framework.xsl"/> | ||
|
|
||
|
|
||
| <!-- | ||
| Check for role descriptors with missing KeyDescriptor elements. | ||
| --> | ||
|
|
||
| <xsl:template match="md:IDPSSODescriptor[not(md:KeyDescriptor)]"> | ||
| <xsl:call-template name="error"> | ||
| <xsl:with-param name="m">IdP SSO Descriptor lacking KeyDescriptor</xsl:with-param> | ||
| </xsl:call-template> | ||
| </xsl:template> | ||
|
|
||
| <xsl:template match="md:SPSSODescriptor[not(md:KeyDescriptor)]"> | ||
| <xsl:call-template name="error"> | ||
| <xsl:with-param name="m">SP SSO Descriptor lacking KeyDescriptor</xsl:with-param> | ||
| </xsl:call-template> | ||
| </xsl:template> | ||
|
|
||
| <xsl:template match="md:AttributeAuthorityDescriptor[not(md:KeyDescriptor)]"> | ||
| <xsl:call-template name="error"> | ||
| <xsl:with-param name="m">IdP AA Descriptor lacking KeyDescriptor</xsl:with-param> | ||
| </xsl:call-template> | ||
| </xsl:template> | ||
|
|
||
|
|
||
| <!-- | ||
| Look for SAML 2.0 IdPs whose metadata includes pure PKIX KeyDescriptor elements. | ||
| This causes problems for some OpenAthens SP products. | ||
| --> | ||
| <xsl:template match="md:IDPSSODescriptor | ||
| [contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol')] | ||
| [md:KeyDescriptor[not(descendant::ds:X509Data)]]"> | ||
| <xsl:call-template name="error"> | ||
| <xsl:with-param name="m">SAML 2.0 IdP has KeyDescriptor without embedded key</xsl:with-param> | ||
| </xsl:call-template> | ||
| </xsl:template> | ||
| <xsl:template match="md:AttributeAuthorityDescriptor | ||
| [contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol')] | ||
| [md:KeyDescriptor[not(descendant::ds:X509Data)]]"> | ||
| <xsl:call-template name="error"> | ||
| <xsl:with-param name="m">SAML 2.0 AttributeAuthority has KeyDescriptor without embedded key</xsl:with-param> | ||
| </xsl:call-template> | ||
| </xsl:template> | ||
|
|
||
| <!-- | ||
| Check for SAML 2.0 SPs with KeyName-only KeyDescriptors. | ||
| --> | ||
| <xsl:template match="md:SPSSODescriptor | ||
| [contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol')] | ||
| [md:KeyDescriptor[not(descendant::ds:X509Data)]]"> | ||
| <xsl:call-template name="error"> | ||
| <xsl:with-param name="m">SAML 2.0 SP has KeyDescriptor without embedded key</xsl:with-param> | ||
| </xsl:call-template> | ||
| </xsl:template> | ||
|
|
||
| </xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters