Skip to content

Commit

Permalink
Bring ca_caf channel up to date with conventions. Add eduGAIN support…
Browse files Browse the repository at this point in the history
… for ca_caf.
  • Loading branch information
iay committed Feb 26, 2013
1 parent 046d6ed commit d1441e3
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 17 deletions.
4 changes: 3 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,6 @@
depends="flow.importEdugain.all, flow.importProduction.all">
<CHANNEL.import channel="at_aconet"/>
<CHANNEL.import channel="au_aaf"/>
<CHANNEL.import channel="ca_caf"/>
<CHANNEL.import channel="dk_wayf"/>
<CHANNEL.import channel="eu_clarin"/>
<CHANNEL.import channel="fr_renater"/>
Expand All @@ -889,6 +888,7 @@
<target name="flow.importProduction.all">
<CHANNEL.do verb="importProduction" channel="be_belnet"/>
<CHANNEL.do verb="importProduction" channel="br_cafe"/>
<CHANNEL.do verb="importProduction" channel="ca_caf"/>
<CHANNEL.do verb="importProduction" channel="ch_switchaai"/>
<CHANNEL.do verb="importProduction" channel="cz_eduid"/>
<CHANNEL.do verb="importProduction" channel="de_dfnaai"/>
Expand All @@ -912,6 +912,7 @@
<target name="flow.importEdugain.all">
<CHANNEL.do verb="importEdugain" channel="be_belnet"/>
<CHANNEL.do verb="importEdugain" channel="br_cafe"/>
<CHANNEL.do verb="importEdugain" channel="ca_caf"/>
<CHANNEL.do verb="importEdugain" channel="ch_switchaai"/>
<CHANNEL.do verb="importEdugain" channel="cz_eduid"/>
<CHANNEL.do verb="importEdugain" channel="de_dfnaai"/>
Expand All @@ -934,6 +935,7 @@
<target name="flow.importEdugainRaw.all">
<CHANNEL.do verb="importEdugainRaw" channel="be_belnet"/>
<CHANNEL.do verb="importEdugainRaw" channel="br_cafe"/>
<CHANNEL.do verb="importEdugainRaw" channel="ca_caf"/>
<CHANNEL.do verb="importEdugainRaw" channel="ch_switchaai"/>
<CHANNEL.do verb="importEdugainRaw" channel="cz_eduid"/>
<CHANNEL.do verb="importEdugainRaw" channel="de_dfnaai"/>
Expand Down
90 changes: 79 additions & 11 deletions mdx/ca_caf/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
<constructor-arg value="https://caf-shibops.ca/CoreServices/cafshib_metadata_signed.xml"/>
</bean>
<bean id="ca_caf_edugainAggregate_url" class="java.lang.String">
<constructor-arg value="https://idp.canarie.ca/canarie-inside-edugain.xml"/>
<constructor-arg value="https://caf-shib2ops.ca/CoreServices/edugain_caf_metadata_signed.xml"/>
</bean>

<!--
Fetch the CAF production aggregate.
Fetch the production aggregate.
-->
<bean id="ca_caf_productionAggregate" parent="domResourceStage_parent"
p:id="ca_caf_productionAggregate">
Expand All @@ -35,18 +35,33 @@
</bean>

<!--
CAF signing certificate.
Fetch the eduGAIN export aggregate.
-->
<bean id="ca_caf_edugainAggregate" parent="domResourceStage_parent"
p:id="ca_caf_edugainAggregate">
<property name="domResource">
<bean class="net.shibboleth.utilities.java.support.httpclient.HttpResource">
<constructor-arg name="client" ref="httpClient"/>
<constructor-arg name="url" ref="ca_caf_edugainAggregate_url"/>
</bean>
</property>
</bean>

<!--
Signing certificate.
This one is used to sign the eduGAIN aggregate.
-->
<bean id="ca_caf_signingCertificate" class="net.shibboleth.ext.spring.factory.X509CertificateFactoryBean">
<property name="certificateFile">
<bean class="java.io.File">
<constructor-arg value="#{ systemProperties['basedir'] }/mdx/ca_caf/cafshib_metadata_verify.pem"/>
<constructor-arg value="#{ systemProperties['basedir'] }/mdx/ca_caf/metadata-signer.crt"/>
</bean>
</property>
</bean>

<!--
Check CAF signing signature.
Check signing signature.
-->
<bean id="ca_caf_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
Expand All @@ -55,13 +70,34 @@
</bean>

<!--
Fetch and process the exported entities as a collection.
"cafshib" Signing certificate.
This one is used to sign the production aggregate.
-->
<bean id="ca_caf_cafShibSigningCertificate" class="net.shibboleth.ext.spring.factory.X509CertificateFactoryBean">
<property name="certificateFile">
<bean class="java.io.File">
<constructor-arg value="#{ systemProperties['basedir'] }/mdx/ca_caf/cafshib_metadata_verify.crt"/>
</bean>
</property>
</bean>

<!--
Check "cafshib" signing signature.
-->
<bean id="ca_caf_exportedEntities" parent="composite_parent"
p:id="ca_caf_exportedEntities">
<bean id="ca_caf_cafShibCheckSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
p:id="ca_caf_checkSignature">
<property name="verificationCertificate" ref="ca_caf_cafShibSigningCertificate"/>
</bean>

<!--
Fetch and process the production entities as a collection.
-->
<bean id="ca_caf_productionEntities" parent="composite_parent"
p:id="ca_caf_productionEntities">
<property name="composedStages">
<list>
<!-- no export aggregate; use the production one instead -->
<ref bean="ca_caf_productionAggregate"/>

<!--
Expand All @@ -70,10 +106,37 @@
invalid signature
-->
<ref bean="check_validUntil"/>
<ref bean="ca_caf_checkSignature"/>
<!--
<ref bean="ca_caf_cafShibCheckSignature"/>
<ref bean="errorTerminatingFilter"/>

<ref bean="disassemble"/>

<ref bean="standardImportActions"/>

<!-- Strip all entity attributes from this source. -->
<ref bean="stripMdattrNamespace"/>

</list>
</property>
</bean>

<!--
Fetch and process the eduGAIN export entities as a collection.
-->
<bean id="ca_caf_edugainEntities" parent="composite_parent"
p:id="ca_caf_edugainEntities">
<property name="composedStages">
<list>
<ref bean="ca_caf_edugainAggregate"/>

<!--
Check for fatal errors at the aggregate level:
missing or expired validUntil attribute
invalid signature
-->
<ref bean="check_validUntil"/>
<ref bean="ca_caf_checkSignature"/>
<ref bean="errorTerminatingFilter"/>

<ref bean="disassemble"/>

Expand All @@ -86,4 +149,9 @@
</property>
</bean>

<!--
Select primary export aggregate.
-->
<alias alias="ca_caf_exportedAggregate" name="ca_caf_edugainAggregate"/>
<alias alias="ca_caf_exportedEntities" name="ca_caf_edugainEntities"/>
</beans>
File renamed without changes.
25 changes: 25 additions & 0 deletions mdx/ca_caf/metadata-signer.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
-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GzMyfco/zBbJpaHvfa7OGCoYGtpIGqMIGnMQswCQYDVQQG
EwJDQTEQMA4GA1UECBMHT250YXJpbzEQMA4GA1UEBxMHVG9yb250bzEjMCEGA1UEChMaQ2FuYWRp
YW4gQWNjZXNzIEZlZGVyYXRpb24xJDAiBgNVBAsTG1NBTUwgQ29yZSBTZXJ2aWNlcyBPcGVyYXRv
cjEpMCcGA1UEAxMgRmVkZXJhdGlvbiBNZXRhZGF0YSBWZXJpZmljYXRpb26CCQDeqImHsskgZTAM
BgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQA+3NuAAPETE16oiRx0YJ3sx72IQiHEEL2a
LgeITkUxwn2JanJbCPpLS5ZhdppZ9oxb16ZVWyKwmT9jDHM48OH37QPjlZVWyDRjw/wCj2s/0XK4
OqaOaZpzx2Sp8mc4IjtDH6tcNGva0h4wHDENukF8w8fVR+tXymXWpEb4AlIEqwAkXjA1h5zrnckW
6MAtT2HvTCtaeayYwbFFHYKPYet9Q8xluuyZPM6VIBL7cp20IWbB8ZQfiNGBC3m0p2nQ6VL7yza7
xW7MGRgXY2Y6T5ZohtFexTOOvWvGQnMycTvpbOFPxpwGopYiZ/K1jgzeSYZi/qz5faUnd5yjuPKD
vxJY
-----END CERTIFICATE-----
33 changes: 28 additions & 5 deletions mdx/ca_caf/verbs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@
</property>
</bean>

<bean id="import" parent="pipeline_parent"
p:id="import">
<bean id="importProduction" parent="pipeline_parent"
p:id="importProduction">
<property name="stages">
<list>
<ref bean="ca_caf_exportedEntities"/>
<ref bean="ca_caf_productionEntities"/>
<ref bean="standardImportTail"/>
<ref bean="serializeImported"/>
</list>
</property>
</bean>

<bean id="importRaw" parent="pipeline_parent"
p:id="importRaw">
<bean id="importProductionRaw" parent="pipeline_parent"
p:id="importProductionRaw">
<property name="stages">
<list>
<ref bean="ca_caf_productionAggregate"/>
Expand All @@ -51,4 +51,27 @@
</property>
</bean>

<bean id="importEdugain" parent="pipeline_parent"
p:id="importEdugain">
<property name="stages">
<list>
<ref bean="ca_caf_edugainEntities"/>
<ref bean="standardImportTail"/>
<ref bean="serializeImported"/>
</list>
</property>
</bean>

<bean id="importEdugainRaw" parent="pipeline_parent"
p:id="importEdugainRaw">
<property name="stages">
<list>
<ref bean="ca_caf_edugainAggregate"/>
<ref bean="serializeImported"/>
</list>
</property>
</bean>

<alias alias="import" name="importEdugain"/>
<alias alias="importRaw" name="importEdugainRaw"/>
</beans>

0 comments on commit d1441e3

Please sign in to comment.