← Specifications

OCI-1 Trust Registry

Version 0.1.0 · 2026-11-28 · Draft Changes
StatusDraft.
Version0.1.0, 2026-11-28
Profile ofOpenID Federation 1.0 (Final, February 2026)
Depends onOCI-0 Core
Reference implementationpackages/trust (@oci/trust)

1. Purpose

OCI-1 answers one question for any service in any country: “Can I trust this entity, for what, and at what assurance level?”

It reuses OpenID Federation 1.0 for all the mechanics: signed entity statements, trust chains, metadata policy, constraints and trust marks. OCI-1 adds only what a country needs on top:

  1. A fixed topology: one trust anchor per country, with ministries and agencies as intermediates.
  2. OCI roles and assurance levels, carried as trust marks.
  3. Cross-country recognition with an assurance cap.
  4. Tighter limits on lifetimes and algorithms, and rules that make fetching safe.

An entity that conforms to OCI-1 is a valid OpenID Federation entity. Any compliant OpenID Federation implementation can follow an OCI chain, with one exception: a cross-country recognition statement marks oci_assurance_cap as critical (§6). An implementation that does not understand it rejects that chain, which is the safe outcome.

2. Topology

            Country trust anchor (e.g. https://trust.tavora.example, XT)
               │                         │                       └── recognises → foreign trust anchor (§6)
     Ministry of Interior            Ministry of Finance
       │            │                     │
  Registrar   Identity provider     Tax relying party
  • TR-2.1 Each country MUST run exactly one OCI trust anchor. Its entity configuration MUST include metadata.federation_entity.oci_country, set to the country’s code (CORE-3.2).
  • TR-2.2 A chain from a leaf entity to its own country’s trust anchor MUST NOT contain more than 3 subordinate statements. Verifiers MUST give up after 5 subordinate statements on any chain, including cross-country chains.
  • TR-2.3 Trust anchors and intermediates MUST publish federation_fetch_endpoint and federation_list_endpoint. They SHOULD publish federation_resolve_endpoint.
  • TR-2.4 An entity’s country is attested by its superiors, never by the entity itself. It is the metadata.federation_entity.oci_country in the nearest subordinate statement that sets one, or else the trust anchor’s country. If the leaf’s own entity configuration declares a different oci_country, verifiers MUST reject the chain (country_mismatch). OCI extension.

3. Statements

All statements follow OpenID Federation 1.0 §3, with these narrower rules:

  • TR-3.1 Entity statements MUST use typ: entity-statement+jwt. Trust marks MUST use typ: trust-mark+jwt.
  • TR-3.2 Algorithms are those in CORE-5.1. Verifiers MUST reject any other.
  • TR-3.3 Every entity statement MUST carry iss, sub, iat, exp and a non-empty jwks.
  • TR-3.4 exp - iat MUST NOT exceed 7 days. It SHOULD NOT exceed 24 hours for subordinate statements, so that removing a statement revokes trust within a day.
  • TR-3.5 Entities MUST use the entity types defined by OpenID Federation and the protocols OCI profiles (federation_entity, openid_provider, openid_relying_party, oauth_authorization_server, oauth_resource, and a credential issuer type, which OpenID4VCI 1.0 does not define; see §10). OCI defines no new entity types. OCI roles are trust marks (§4).
  • TR-3.6 Trust marks delegated through trust_mark_owners are out of scope for 0.1 and MUST NOT be relied on.

4. Roles and assurance as trust marks

OCI roles and levels of assurance are trust marks with these trust_mark_type values:

trust_mark_typeMeaning
https://oci.world/tm/role/registrarHolds a foundational identity register
https://oci.world/tm/role/identity_providerMay authenticate residents (OCI-2, OCI-3)
https://oci.world/tm/role/credential_issuerMay issue credentials (OCI-4)
https://oci.world/tm/role/wallet_providerSupplies a certified wallet
https://oci.world/tm/role/relying_partyRegistered consumer of identity data
https://oci.world/tm/role/enrolment_centreMay capture enrolment data
https://oci.world/tm/role/trust_mark_issuerAccredited to issue OCI trust marks
https://oci.world/tm/role/signal_transmitterMay send security signals (OCI-7)
https://oci.world/tm/role/data_userMay read a person’s data from a data holder with their consent (OCI-CONSENT-1)
https://oci.world/tm/role/data_holderHolds data about people and serves it with their consent (OCI-CONSENT-1)
https://oci.world/tm/role/consent_managerMay collect consent for data holders and relay encrypted data it cannot read (OCI-CONSENT-1)
https://oci.world/tm/loa/low, /substantial, /highThe highest assurance level the entity is certified to operate at (CORE-4)
  • TR-4.1 A trust mark MUST carry iss, sub, trust_mark_type, iat and exp. OpenID Federation makes exp optional; OCI requires it.
  • TR-4.2 The trust anchor’s entity configuration MUST list every accepted issuer for each OCI trust mark type in trust_mark_issuers. Verifiers MUST reject an OCI trust mark whose issuer is not listed.
  • TR-4.3 The trust mark issuer MUST itself resolve to the same trust anchor (or be the trust anchor). Its signature is checked with the keys that its own trust chain proves.
  • TR-4.4 An entity MUST NOT issue a trust mark about itself.
  • TR-4.5 An invalid trust mark MUST be ignored. It MUST NOT make the trust chain itself fail.
  • TR-4.6 An entity’s assurance level is the highest valid loa trust mark, lowered to any assurance cap in its chain (§6).
  • TR-4.7 A trust mark issuer’s own chain caps the marks it issues: an loa mark is lowered to any assurance cap in the issuer’s chain, then to any cap in the subject’s chain. A mark is only checked against the trust anchor the subject resolved to. OCI extension.
  • TR-4.8 An entity whose OCI protocol keys are not covered by a standard metadata type (for example a credential issuer or signal transmitter) MUST publish them as a JWK Set in metadata.federation_entity.oci_jwks. OpenID Federation does not allow jwks in federation_entity metadata. Verifiers MUST take these keys only from resolved metadata, after policy. OCI extension.
  • TR-4.9 The marks data_user, data_holder and consent_manager are the roles of OCI-CONSENT-1 (CDA-3). They are issued and checked like every other OCI role mark (TR-4.1 to TR-4.5): by an issuer the trust anchor lists for that type (TR-4.2), usually the regulator of the entity’s sector, never by the entity itself. OCI-CONSENT-1 says which marks each party MUST hold (CDA-3.1, CDA-3.4). OCI extension.
  • TR-4.10 A data_user trust mark MAY carry the claim oci_cda_categories: a non-empty array of at most 64 unique data category identifiers, each matching ^[a-z][a-z0-9_]{0,63}$ (CDA-15.1). It lists the data categories the data user is accredited for (CDA-3.3). A regulator that accredits a whole data family lists that family’s categories. A data_user mark whose oci_cda_categories does not have this form is invalid (TR-4.5). Verifiers MUST ignore oci_cda_categories on every other mark type. OCI extension.
  • TR-4.11 A verifier MUST give the caller the oci_cda_categories of each valid data_user mark (§8). An entity’s accredited categories are the union of those lists. If any valid data_user mark has no oci_cda_categories, OCI-1 sets no category limit for the entity. Enforcing the limit is the data holder’s job (CDA-6.6, CDA-10.4).

5. Metadata policy and constraints

  • TR-5.1 Verifiers MUST apply the standard metadata policy operators value, add, default, one_of, subset_of, superset_of and essential, combining them from the trust anchor downward. A conflict when combining MUST fail the chain.
  • TR-5.2 Verifiers MUST enforce max_path_length, naming_constraints and allowed_entity_types. Entity types outside allowed_entity_types are removed from the resolved metadata.
  • TR-5.3 A trust anchor SHOULD set naming_constraints on each intermediate, limiting it to its own domain.
  • TR-5.4 A policy operator listed in metadata_policy_crit that the verifier does not understand MUST fail the chain. An unlisted unknown operator is ignored.

6. Cross-country recognition

Country A recognises country B by having A’s trust anchor issue a subordinate statement about B’s trust anchor. B’s trust anchor then lists A’s trust anchor in its authority_hints. Relying parties in A keep pinning only A’s trust anchor.

  • TR-6.1 A recognition statement MUST set constraints.allowed_entity_types and constraints.naming_constraints, and it SHOULD set constraints.max_path_length. It MUST set metadata.federation_entity.oci_country to the recognised country’s code (TR-2.4).
  • TR-6.2 A recognition statement MAY set oci_assurance_cap to low, substantial or high. When set, it MUST be listed in crit. Every assurance level resolved through that statement is lowered to the cap.
  • TR-6.3 To recognise country B’s assurance trust marks, A’s trust anchor MUST list B’s issuers in its own trust_mark_issuers (TR-4.2). A recognition statement does not do this on its own.
  • TR-6.4 To withdraw recognition, A stops serving the recognition statement. Trust ends no later than the statement’s exp (TR-3.4).

7. Fetching safely

Trust chain resolution fetches URLs that other parties supply, which is a server-side request forgery (SSRF) risk.

  • TR-7.1 Fetchers MUST only request https URLs. They MUST refuse IP-literal hosts, localhost, and URLs carrying credentials, unless explicitly configured for local testing.
  • TR-7.2 Fetchers MUST NOT follow redirects. They MUST time out within 10 seconds and MUST refuse responses larger than 64 KiB.
  • TR-7.3 Deployments SHOULD block requests that resolve to private, loopback or link-local addresses at the network layer.
  • TR-7.4 Fetchers MUST check the response’s content type: application/entity-statement+jwt for entity configurations and subordinate statements.
  • TR-7.5 Resolved chains MAY be cached, but no longer than the earliest exp in the chain, in the issuer chains of accepted trust marks, and in the accepted trust marks themselves.
  • TR-7.6 Fetchers MUST also refuse single-label hosts, the suffixes .local, .localhost, .internal, .home.arpa, .lan, .intranet and .localdomain, and any port other than 443. They SHOULD resolve the host and refuse private, loopback, link-local, shared and documentation addresses before connecting. Error messages MUST NOT echo network error text.
  • TR-7.7 Verifiers MUST cap the work one resolution can cause: at most 8 authority_hints per entity, at most 20 trust marks checked per entity, and at most 64 fetches in total. Responses MUST be read as a stream and abandoned once the size limit is passed.
  • TR-7.8 Statements whose claims have the wrong JSON type, or that use the keys __proto__, constructor or prototype in metadata or metadata_policy, MUST be rejected (invalid_claims). OCI extension.

8. Resolution result

A conforming verifier gives the caller:

  • the trust anchor that was used, and the chain of statements;
  • the resolved metadata, after policy and constraints;
  • the verified trust marks, with the oci_cda_categories of each data_user mark (TR-4.11), and the reasons any were rejected;
  • the OCI view: the entity’s country, the trust anchor’s country, its roles, its assurance level and any cap;
  • the chain’s expiry (the earliest exp).

9. Conformance

The reference implementation’s tests cite these clause IDs. An implementation conforms to OCI-1 0.1 when it passes every test in packages/trust/test that is tagged with a TR clause, and the OpenID Foundation’s federation tests where they apply.

10. Open questions

  • Should a country publish a signed “recognition register” document (a list of every country it recognises), in addition to the statements themselves?
  • How should trust marks be revoked: by a trust mark status endpoint, or by short lifetimes only (the 0.1 approach)?
  • OpenID4VCI 1.0 (checked 2026-11-18) defines no federation entity type for credential issuers. Until a federation profile for wallets defines one, OCI-4 issuers publish federation_entity plus an OCI role trust mark.

Changes

VersionDateWhat changed
0.1.02026-11-28First versioned release: the text of Draft 0.1 (2026-11-18). For OCI-CONSENT-1: the role marks data_user, data_holder and consent_manager, and a data user’s accredited categories in oci_cda_categories (TR-4.9 to TR-4.11).