Enforcing an Ecosystem as a Provider
A provider backend can pass its ecosystems on to the instances it manages. Managed instances then receive the trust collections and schemas associated with those ecosystems automatically, and you can require them to allow only trusted interactions.
This works the same way for Wallet Provider and Verifier Provider backends. What it gives each role differs:
- Wallet instances need trust collections to decide which issuers and relying parties to trust. Without them, a wallet cannot evaluate any interaction against an ecosystem.
- Verifier instances benefit most from schema syncing: proof schemas provisioned centrally mean every device in the field can make the same requests without local setup.
What gets synced
| Asset | Wallet instances | Verifier instances |
|---|---|---|
| Trust collections | ✓ | ✓ |
| Credential schemas | ✓ | ✓ |
| Proof schemas | — | ✓ |
Prerequisites
- The provider organization has the ecosystem enabled. See Enabling Ecosystems.
featureFlags.ecosystemsEnabledistruein yourwalletProviderorverifierProviderconfiguration. See Configuring Wallet Provider Backend or Configuring Verifier Provider Backend.
How it works
The provider backend advertises its ecosystems. The provider metadata lists each ecosystem the provider organization has enabled, with its display name, logo, associated trust collections and schemas, and whether it should be selected by default (
defaultSelected).The managed instance selects ecosystems. Of the ecosystems advertised, the instance selects which to use and updates its own organization with them, the same way as in Enabling Ecosystems.
The sync task provisions assets. When
ECOSYSTEM_SYNCruns, the instance receives the trust collections and schemas associated with each ecosystem it has selected.
Running the sync
Syncing happens when the ECOSYSTEM_SYNC task runs:
POST /api/task/v1/run
{
"name": "ECOSYSTEM_SYNC"
}
or the corresponding runTask method in the SDK. Schedule it so new
trust collections and schemas reach your instances without manual action.
See Regular Tasks.
Syncing trust collections
Every trust collection is associated with one ecosystem when you create it. See Subscribing to Trust Lists. Managed instances that select an ecosystem receive all trust collections associated with it.
Limitations:
- Core's limit on remote resource size applies
(
globalSettings.httpClient.maxResponseSize). A trust list larger than the limit cannot be synced. - If a managed instance has local trust lists, local lists take precedence over synced lists when names clash. This currently applies only to managed Desk (server) instances.
Syncing schemas
To sync a credential or proof schema, associate it with an ecosystem by
including ecosystem when you create it:
POST /api/credential-schema/v2
{
...
"ecosystem": "EUDI"
}
Proof schemas work the same way. See Credential Schemas and Proof Schemas.
Tagging a schema with an ecosystem only controls syncing. It does not enforce anything on its own.
Limitations:
- If you delete a schema and recreate it with different content but the
same
ecosystemSchemaId, managed instances that already have it do not re-import the new version.
Enforcing ecosystems on managed instances
By default, interactions that are untrusted under the selected ecosystems are still allowed. Managed instances evaluate trust the same way as any organization:
- Wallet instances detect the ecosystem of incoming credential offers and proof requests automatically. See Enforcing an Ecosystem as a Wallet.
- Verifier instances set an ecosystem when creating a proof request,
or require one for all requests with
enforceEcosystemAsVerifier. See Enforcing an Ecosystem as a Verifier. If the provider organization has selected only one ecosystem and setenforceEcosystemAsVerifier, every managed verifier instance enforces it automatically.
Requiring trusted interactions
To allow only trusted interactions on your managed instances:
-
Set
featureFlags.ecosystemsEnforcementEnabledtotruein your provider configuration. Instances apply provider feature flags at registration, overriding their local configuration. -
Update the provider organization:
PATCH /api/organisation/v1/{id}{"configuration": {"enforceEcosystemAsHolder": true,"enforceEcosystemAsVerifier": true}}Set
enforceEcosystemAsHolderfor managed wallet instances andenforceEcosystemAsVerifierfor managed verifier instances. If you provide both, set both.