Skip to content
Wallet and Entity Collection draft updates
Documentation menu

5. Federation policy

Feature guides

eduGAIN sets rules for subordinate metadata and for the paths that participants may use. A superior expresses those rules in the Subordinate Statements it issues. Federation §6.

A TrustAnchor or Intermediate publishes policies and constraints through its subordinate records. Consumers install custom checks in their host or role options and call the normal trust operation. Those operations invoke the shared core engine; applying policy again afterward is unnecessary.

Example context

Meet the academic federation from Appendix A

eduGAIN is the selected Trust Anchor. SWAMID and InCommon are its Intermediates in this example. SWAMID enrolls Umeå University, which enrolls its OP; InCommon enrolls the LIGO Wiki, which acts as the RP. Maya is the researcher signing in at her university to use the wiki.

This follows the illustrative topology in Federation Appendix A. The runnable examples use reserved .example addresses, not production services. The additional Research Portal and Research API are supplementary examples for roles beyond that topology. Example identifiers keep those actors distinct.

Agree on policy before enforcing it

eduGAIN chooses restrictions for a participant or a class of participants and includes them in the appropriate Subordinate Statements. LIGO Wiki resolves the policies along the authenticated path and applies them to the metadata it will use. The same participant can therefore have different usable metadata through different federation paths.

Start with built-in operators and constraints, and test the resulting metadata against representative inputs. When a federation needs a custom rule, define its semantics and deploy the consuming implementation before relying on it. Publishing a new name does not distribute callback code to peers.

Keep an accepting case and a rejected case for each important policy. A policy error should stop the dependent protocol operation, with enough diagnostic context for operators to locate the conflicting statement. The solution is a corrected policy or another valid path, not removing the failed check from the consumer.

Work through this topic

Custom operators and constraints belong to an agreed framework. Register their implementations explicitly and keep acceptance dependent on their results.

Next: 5.1. Apply federation metadata policy

View source on GitHub