Skip to content
Wallet and Entity Collection draft updates
Documentation menu

8. Discovery and caching

Feature guides

LIGO Wiki begins with Umeå University OP’s Entity Identifier, fetches its EC, and searches for usable paths. It can cache evidence and choose among validated chains according to application policy. Federation §§9–10.

Configure anchors, selection, transport, and caching on the host or role, then use its discovery or protocol operation. Core helpers remain useful for diagnostics that need raw candidate chains, rather than one accepted result.

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.

Explore, validate, then choose

LIGO Wiki obtains Umeå's configuration and follows authority hints to build candidate paths. Its configured anchors decide where those paths can establish trust. An anchor can have Superiors of its own, and discovery can find a path to a higher configured anchor when the topology permits it.

The operation has resource bounds. Shared fetch budgets cover discovery and validation work, and a cancelled caller should stop waiting promptly. Cache hits can reduce transport, but they cannot extend signed validity. Diagnose incomplete discovery separately from an invalid chain.

After validation, apply the operation's protocol checks and path-selection policy. A custom selector expresses LIGO Wiki's preference among eligible candidates. It cannot manufacture a new validated result or turn an incomplete graph search into a complete assessment of every possible path.

Work through this topic

Discovery produces candidates and may be incomplete. Record limits and expiry; a cached response must not extend a signed artifact’s lifetime.

Multiple paths and trusted resolvers

Decide which anchors an operation accepts before choosing a path. A selection strategy ranks eligible chains; it does not expand that trust set. Different paths can produce different metadata, so choose a strategy that suits the federation's policies and recipient requirements. Federation §17.1 assigns that topology decision to federation architects.

Size the fetch allowance for discovery and candidate validation together. Core helpers share a default allowance of 50 HTTP client calls across those stages. Custom selection fails if discovery is truncated by a resource limit; a Resolve service returns temporarily_unavailable in that case. Adjust limits for the expected topology without removing the bounds that protect the service.

Explicitly authorize each resolver and configure how its keys become trusted. Use local assessment when your application needs its own custom policy or constraint checks, or when its protocol requires chain validation. Delegated assessments report what the trusted resolver asserts, including reported marks; they do not create locally verified mark evidence. Keep both provenance and expiry with any application decision.

A catalog built with Listing or Entity Collection can contain identifiers and informational metadata without establishing application trust. Establish that trust when using the selected entity. A standalone resolver can share the same core Resolve service as Authority hosts without acquiring subordinate-management duties. See trust establishment options.

Next: 8.1. Find candidate trust chains

View source on GitHub