Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Discontinue validating metadata using metadatatool
Browse files Browse the repository at this point in the history
Includes removal of metadatatool itself, and the JKS version of the UK
federation signing certificate it used.

Resolves ukf/ukf-meta InCommon#4.
  • Loading branch information
iay committed Aug 24, 2016
1 parent 837a630 commit d16abdf
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 139 deletions.
152 changes: 30 additions & 122 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@
<property name="tools.ant" value="${tools.dir}/ant"/>
<property name="tools.mda" value="${tools.dir}/aggregator-cli-0.9.1"/>
<property name="tools.mdnorm" value="${tools.dir}/mdnorm"/>
<property name="tools.metadatatool" value="${tools.dir}/metadatatool"/>
<property name="tools.slacktee" value="${tools.dir}/slacktee"/>
<property name="tools.xmlsectool" value="${tools.dir}/xmlsectool-2.0.0"/>
<property name="tools.xalan" value="${tools.dir}/xalan"/>
Expand Down Expand Up @@ -1123,23 +1122,14 @@

<!--
Verify a metadata file held on the master distribution site.
Verification is performed using both metadatatool and xmlsectool.
This should be used when the file being verified must be compatible
with the Shibboleth 1.3 IdP.
-->
<macrodef name="VFY.remote.both">
<macrodef name="VFY.remote">
<attribute name="i"/>
<sequential>
<echo>Verifying @{i}...</echo>
<delete file="${temp.xml}" quiet="true" verbose="false"/>
<get src="@{i}" dest="${temp.xml}"/>

<!--
Verify using metadatatool.
-->
<MDT.VFY.uk i="${temp.xml}"/>

<!--
Verify using xmlsectool.
-->
Expand All @@ -1155,14 +1145,10 @@
<!--
Verify a metadata file held on the master distribution site.
Verification is performed using both metadatatool and xmlsectool.
This should be used when the file being verified must be compatible
with the Shibboleth 1.3 IdP.
Additionally, it'll compare the provided checksum against that of the
downloaded file, to ensure the file has the content you expected.
-->
<macrodef name="VFY.remote.both.and.checksum">
<macrodef name="VFY.remote.and.checksum">
<attribute name="i"/>
<attribute name="checksum"/>
<sequential>
Expand All @@ -1184,11 +1170,6 @@
</fail>
<echo>Checksum of file matches expected value</echo>

<!--
Verify using metadatatool.
-->
<MDT.VFY.uk i="${temp.xml}"/>

<!--
Verify using xmlsectool.
-->
Expand Down Expand Up @@ -1222,51 +1203,51 @@
property="mdaggr.export.preview.signed.checksum"/>

<echo>Verifying metadata held at ${md.dist.host1.name}</echo>
<VFY.remote.both.and.checksum i="http://${md.dist.host1.name}/${mdaggr.prod.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host1.name}/${mdaggr.prod.signed}"
checksum="${mdaggr.prod.signed.checksum}"/>
<VFY.remote.both.and.checksum i="http://${md.dist.host1.name}/${mdaggr.wayf.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host1.name}/${mdaggr.wayf.signed}"
checksum="${mdaggr.wayf.signed.checksum}"/>
<VFY.remote.both.and.checksum i="http://${md.dist.host1.name}/${mdaggr.cdsall.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host1.name}/${mdaggr.cdsall.signed}"
checksum="${mdaggr.cdsall.signed.checksum}"/>
<VFY.remote.both.and.checksum i="http://${md.dist.host1.name}/${mdaggr.test.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host1.name}/${mdaggr.test.signed}"
checksum="${mdaggr.test.signed.checksum}"/>
<VFY.remote.both.and.checksum i="http://${md.dist.host1.name}/${mdaggr.back.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host1.name}/${mdaggr.back.signed}"
checksum="${mdaggr.back.signed.checksum}"/>
<VFY.remote.both.and.checksum i="http://${md.dist.host1.name}/${mdaggr.export.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host1.name}/${mdaggr.export.signed}"
checksum="${mdaggr.export.signed.checksum}"/>
<VFY.remote.both.and.checksum i="http://${md.dist.host1.name}/${mdaggr.export.preview.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host1.name}/${mdaggr.export.preview.signed}"
checksum="${mdaggr.export.preview.signed.checksum}"/>

<echo>Verifying metadata held at ${md.dist.host2.name}</echo>
<VFY.remote.both.and.checksum i="http://${md.dist.host2.name}/${mdaggr.prod.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host2.name}/${mdaggr.prod.signed}"
checksum="${mdaggr.prod.signed.checksum}"/>
<VFY.remote.both.and.checksum i="http://${md.dist.host2.name}/${mdaggr.wayf.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host2.name}/${mdaggr.wayf.signed}"
checksum="${mdaggr.wayf.signed.checksum}"/>
<VFY.remote.both.and.checksum i="http://${md.dist.host2.name}/${mdaggr.cdsall.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host2.name}/${mdaggr.cdsall.signed}"
checksum="${mdaggr.cdsall.signed.checksum}"/>
<VFY.remote.both.and.checksum i="http://${md.dist.host2.name}/${mdaggr.test.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host2.name}/${mdaggr.test.signed}"
checksum="${mdaggr.test.signed.checksum}"/>
<VFY.remote.both.and.checksum i="http://${md.dist.host2.name}/${mdaggr.back.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host2.name}/${mdaggr.back.signed}"
checksum="${mdaggr.back.signed.checksum}"/>
<VFY.remote.both.and.checksum i="http://${md.dist.host2.name}/${mdaggr.export.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host2.name}/${mdaggr.export.signed}"
checksum="${mdaggr.export.signed.checksum}"/>
<VFY.remote.both.and.checksum i="http://${md.dist.host2.name}/${mdaggr.export.preview.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host2.name}/${mdaggr.export.preview.signed}"
checksum="${mdaggr.export.preview.signed.checksum}"/>

<echo>Verifying metadata held at ${md.dist.host3.name}</echo>
<VFY.remote.both.and.checksum i="http://${md.dist.host3.name}/${mdaggr.prod.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host3.name}/${mdaggr.prod.signed}"
checksum="${mdaggr.prod.signed.checksum}"/>
<VFY.remote.both.and.checksum i="http://${md.dist.host3.name}/${mdaggr.wayf.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host3.name}/${mdaggr.wayf.signed}"
checksum="${mdaggr.wayf.signed.checksum}"/>
<VFY.remote.both.and.checksum i="http://${md.dist.host3.name}/${mdaggr.cdsall.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host3.name}/${mdaggr.cdsall.signed}"
checksum="${mdaggr.cdsall.signed.checksum}"/>
<VFY.remote.both.and.checksum i="http://${md.dist.host3.name}/${mdaggr.test.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host3.name}/${mdaggr.test.signed}"
checksum="${mdaggr.test.signed.checksum}"/>
<VFY.remote.both.and.checksum i="http://${md.dist.host3.name}/${mdaggr.back.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host3.name}/${mdaggr.back.signed}"
checksum="${mdaggr.back.signed.checksum}"/>
<VFY.remote.both.and.checksum i="http://${md.dist.host3.name}/${mdaggr.export.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host3.name}/${mdaggr.export.signed}"
checksum="${mdaggr.export.signed.checksum}"/>
<VFY.remote.both.and.checksum i="http://${md.dist.host3.name}/${mdaggr.export.preview.signed}"
<VFY.remote.and.checksum i="http://${md.dist.host3.name}/${mdaggr.export.preview.signed}"
checksum="${mdaggr.export.preview.signed.checksum}"/>

<echo>Verification completed.</echo>
Expand Down Expand Up @@ -1464,57 +1445,6 @@
</sequential>
</macrodef>

<!--
*********************************************
*** ***
*** M E T A D A T A T O O L T O O L ***
*** ***
*********************************************
-->

<!--
Macro to run the metadatatool application with appropriate defaults.
-->
<macrodef name="MDT">
<attribute name="i"/><!-- input file -->
<attribute name="o"/><!-- output file -->
<attribute name="keystore"/><!-- keystore file -->
<attribute name="storetype" default="JKS"/><!-- type of keystore to use -->
<attribute name="alias"/><!-- alias of key to use -->
<element name="args" optional="yes"/>
<sequential>
<java classname="edu.internet2.middleware.shibboleth.utils.MetadataTool"
fork="true" failonerror="true" maxmemory="${java.max.memory}">
<classpath>
<fileset dir="${tools.metadatatool}/lib">
<include name="*.jar"/>
</fileset>
</classpath>
<jvmarg value="-Djava.endorsed.dirs=${tools.metadatatool}/endorsed"/>
<args/>
<arg value="--keystore"/>
<arg value="@{keystore}"/>
<arg value="--storetype"/>
<arg value="@{storetype}"/>
<arg value="--alias"/>
<arg value="@{alias}"/>
<arg value="--in"/>
<arg value="file:@{i}"/>
<arg value="--out"/>
<arg value="@{o}"/>
</java>
</sequential>
</macrodef>

<macrodef name="MDT.VFY.uk">
<attribute name="i"/>
<sequential>
<MDT i="@{i}" o="${null.device}"
keystore="${mdx.dir}/uk/ukfederation-2014.jks"
alias="${keystore.uk.vfy.alias}"/>
</sequential>
</macrodef>

<!--
***********************************
*** ***
Expand Down Expand Up @@ -1786,52 +1716,30 @@

</target>

<!--
Verify UK federation metadata with both verification tools.
This should be used when the metadata needs to be compatible
with the Shibboleth 1.3 IdP.
-->
<macrodef name="VFY.uk.both">
<attribute name="i"/>
<sequential>
<!--
Verify using metadatatool.
-->
<MDT.VFY.uk i="@{i}"/>

<!--
Verify using xmlsectool.
-->
<XMLSECTOOL.VFY.uk i="@{i}"/>

</sequential>
</macrodef>

<!--
Verify the signed aggregates.
-->
<target name="samlmd.aggregates.verify">
<echo>Verifying signed UK metadata.</echo>
<VFY.uk.both i="${output.dir}/${mdaggr.prod.signed}"/>
<XMLSECTOOL.VFY.uk i="${output.dir}/${mdaggr.prod.signed}"/>

<echo>Verifying signed UK WAYF metadata.</echo>
<VFY.uk.both i="${output.dir}/${mdaggr.wayf.signed}"/>
<XMLSECTOOL.VFY.uk i="${output.dir}/${mdaggr.wayf.signed}"/>

<echo>Verifying signed UK CDS full metadata.</echo>
<VFY.uk.both i="${output.dir}/${mdaggr.cdsall.signed}"/>
<XMLSECTOOL.VFY.uk i="${output.dir}/${mdaggr.cdsall.signed}"/>

<echo>Verifying signed UK test metadata.</echo>
<VFY.uk.both i="${output.dir}/${mdaggr.test.signed}"/>
<XMLSECTOOL.VFY.uk i="${output.dir}/${mdaggr.test.signed}"/>

<echo>Verifying signed UK export metadata.</echo>
<VFY.uk.both i="${output.dir}/${mdaggr.export.signed}"/>
<XMLSECTOOL.VFY.uk i="${output.dir}/${mdaggr.export.signed}"/>

<echo>Verifying signed UK export preview metadata.</echo>
<VFY.uk.both i="${output.dir}/${mdaggr.export.preview.signed}"/>
<XMLSECTOOL.VFY.uk i="${output.dir}/${mdaggr.export.preview.signed}"/>

<echo>Verifying signed UK fallback metadata.</echo>
<VFY.uk.both i="${output.dir}/${mdaggr.back.signed}"/>
<XMLSECTOOL.VFY.uk i="${output.dir}/${mdaggr.back.signed}"/>

<echo>Verification completed.</echo>
</target>
Expand Down
Binary file removed mdx/uk/ukfederation-2014.jks
Binary file not shown.
17 changes: 0 additions & 17 deletions tools/metadatatool/README.txt

This file was deleted.

Binary file removed tools/metadatatool/endorsed/dom.jar
Binary file not shown.
Binary file removed tools/metadatatool/endorsed/jaxp-api.jar
Binary file not shown.
Binary file removed tools/metadatatool/endorsed/sax.jar
Binary file not shown.
Binary file removed tools/metadatatool/endorsed/xalan.jar
Binary file not shown.
Binary file removed tools/metadatatool/endorsed/xercesImpl.jar
Binary file not shown.
Binary file removed tools/metadatatool/lib/bcprov-jdk14-117.jar
Binary file not shown.
Binary file removed tools/metadatatool/lib/commons-logging-1.03.jar
Binary file not shown.
Binary file removed tools/metadatatool/lib/jargs-0.4.jar
Binary file not shown.
Binary file removed tools/metadatatool/lib/log4j-1.2.5.jar
Binary file not shown.
Binary file removed tools/metadatatool/lib/opensaml-1.1.jar
Binary file not shown.
Binary file removed tools/metadatatool/lib/shib-util.jar
Binary file not shown.
Binary file removed tools/metadatatool/lib/xmlsec-20050514.jar
Binary file not shown.

0 comments on commit d16abdf

Please sign in to comment.