From c220a315a62ee5310789e1095fa04af7c602a897 Mon Sep 17 00:00:00 2001
From: Johan Wassberg <jocar@sunet.se>
Date: Mon, 15 May 2023 13:23:13 +0200
Subject: Run both signers with the same pyff configration

---
 metadata/swamid-prod.fd | 53 ++++++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 50 insertions(+), 3 deletions(-)

(limited to 'metadata/swamid-prod.fd')

diff --git a/metadata/swamid-prod.fd b/metadata/swamid-prod.fd
index b37ce86a..f09f9b54 100644
--- a/metadata/swamid-prod.fd
+++ b/metadata/swamid-prod.fd
@@ -5,9 +5,56 @@
     - 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
+        - /opt/metadata/swamid-edugain as swamid-edugain-dir cleanup clean
+        - /opt/metadata/swamid-2.0 as swamid-2.0-dir cleanup clean
+        - /opt/metadata/swamid-interfederations-2.0 as swamid-interfederations-dir cleanup clean
+        - /opt/metadata/swamid-testing as swamid-testing-dir cleanup clean
+
+    # Read dirs
+    - fork:
+        # swamid-2.0.xml
+        - select as swamid-2.0:
+            - swamid-edugain-dir
+            - swamid-2.0-dir
+            - swamid-interfederations-dir
+    - fork:
+        # swamid-edugain-1.0.xml
+        - select as swamid-edugain-1.0:
+            - swamid-edugain-dir
+    - fork:
+        # swamid-registered.xml swamid-discovery.xml
+        - select as swamid-registered:
+            - swamid-edugain-dir
+            - swamid-2.0-dir
+    # Read selectors
+    - fork:
+        # swamid-idp.xml
+        - select as swamid-idp:
+            - swamid-registered!//md:EntityDescriptor[md:IDPSSODescriptor]
+    - fork:
+        # swamid-idp-transitive.xml
+        - select as swamid-idp-transitive:
+            - swamid-2.0!//md:EntityDescriptor[md:IDPSSODescriptor]
+    - fork:
+        # swamid-sp.xml
+        - select as swamid-sp:
+            - swamid-registered!//md:EntityDescriptor[md:SPSSODescriptor]
+    - fork:
+        # swamid-sp-transitive.xml
+        - select as swamid-sp-transitive:
+            - swamid-2.0!//md:EntityDescriptor[md:SPSSODescriptor]
+
+    # Testing
+    - fork:
+        # swamid-testing-1.0.xml
+        - select as swamid-testing-1.0:
+            - swamid-edugain-dir
+            - swamid-2.0-dir
+            - swamid-testing-dir
+    - fork:
+        # swamid-testing-idp-1.0.xml
+        - select as swamid-testing-idp-1.0:
+            - swamid-testning-1.0!//md:EntityDescriptor[md:IDPSSODescriptor]
     - break
 - when request:
     - select
-- 
cgit v1.2.3

