Architecture
How OpenEPCIS handles identity, isolation, events and GS1 conformance, the four concerns that distinguish the platform.
Four cross-cutting concerns shape every OpenEPCIS module.
- Authentication: one identity, three ways in
- Multi-tenant isolation at the data layer
- Live events without polling
- GS1 conformance contract
Authentication: one identity, three ways in
A customer's users can sign in with whichever credential their organisation already uses:
- OIDC bearer token for systems integrated with the customer's identity provider.
- Session cookie for browser-based access to admin or operator UIs.
- API key + secret for service-to-service traffic and SDK calls.
All three flows converge on a single authenticated identity. Each customer (tenant) lives in its own Keycloak realm, resolved automatically from the request's hostname. Roles travel on the identity and gate the REST endpoints.
For one-off sharing, for example sending a regulator a direct link to a specific batch, the platform mints short-lived capability tokens scoped to one URL and one HTTP method. Such a token grants no broader account access.
Wallet-agnostic Verifiable Credentials (OID4VC)
The credential layer has two issuers and one authorisation model. Keycloak, which handles sign-in, issues the identity-near credentials whose claims are user attributes (employee and organisation membership, as SD-JWT VC) through its native OID4VCI support. The platform's own credential service issues the data-heavy ones: product passports, EPCIS event attestations and the organisation identity anchor, signed with W3C Data Integrity ecdsa-rdfc-2019 or VC-JOSE under the environment's did:web key. Its OID4VCI metadata names Keycloak as the authorisation server, so a wallet signs in once and can request both kinds.
Selective disclosure is part of SD-JWT VC: a holder can disclose the claims a reader needs and keep the rest back. For passports, tier slicing signs one credential per access tier and hash-chains the non-public slices to the public anchor.
The platform's credential service is also the OID4VP verifier. When a reader asks the resolver for a higher access tier, the resolver answers with an OID4VP challenge; the wallet presents a role credential to the verifier, which checks it, writes the grant to the audit log and returns a short-lived signed access receipt that the resolver accepts. OpenEPCIS does not ship a wallet and is not tied to one. The formal acceptance test against the EUDI reference wallet is still open, and ISO mdoc is not supported.
Trusted subjects
A credential is useful only when the verifier can be certain that the issuer is who they claim to be. The verifier evaluates trust in layers: signature and key binding, validity and revocation status, then trust roots and the issuer's authority over the subject. The trust roots are the platform's trusted issuer registry, published as a signed list at /.well-known/vc-trusted-issuers, and the GS1 Digital Licence chain, which ties an issuer to its GS1 company prefix.
Signed Passports lists which of these parts run on epc.is today, and the Credentials API page shows the calls. Automatic issuance when an event is captured is not built; issuance is always an explicit request.
Multi-tenant isolation at the data layer
Tenant isolation is the central design decision of the architecture.
The application forwards the authenticated identity to OpenSearch, and OpenSearch's Security plugin enforces Document-Level Security server-side. Queries carry no tenant filter injected by the application, so even an error in the application's authorisation code leaves the data layer correct.
Background workloads (capture pipelines, scheduled subscriptions) use an explicit admin path, so privileges never change silently at runtime.
Scope of isolation
Access is scoped per tenant, and a user sees what their organisation owns. Row-level scoping (GLN-, EPC-range- or biz-location-bound visibility) extends the same DLS mechanism down to individual sites.
Live events without polling
EPCIS subscriptions in OpenEPCIS are live: matches fire at the moment an event is indexed. The same model serves WebSocket clients and HTTP webhooks.
For clients that want batch-style delivery, such as nightly digests or periodic compliance pulls, scheduled (cron-style) subscriptions are available alongside streaming, and clients opt into them explicitly.
Pagination on long-running queries survives client reconnects, so a regulator pulling six months of events can drop and resume without restarting the scan.
GS1 conformance contract
Three rules apply platform-wide. Together they make every OpenEPCIS deployment conformant with GS1 EPCIS 2.0 and the GS1 Conformant Resolver standard.
1. Identifiers are GS1 Digital Link at rest
Every EPC, business location and read point is stored as a Digital Link URI (e.g. https://id.example.com/01/04012345999990/21/123456). Clients that still expect EPC URN form get it on demand at query time, while Digital Link remains the canonical form that all comparisons use.
2. Masterdata lives on the resolver
EPCIS documents are lean and carry identifiers. The descriptive payload (product name, organisation details, place data, certifications) sits on the resolver, and the consumer that needs it fetches it there. Masterdata is registered once via POST /products/{gtin}, POST /organizations/{gln} and POST /places/{loc}, and from that single record the resolver automatically derives a dozen standard GS1 link types (gs1:pip, gs1:productImage, gs1:audioFile, gs1:relatedVideo, gs1:safetyInfo, gs1:certificationInfo, gs1:nutritionalInfo, gs1:instructions, gs1:recallStatus, gs1:serviceInfo, gs1:productSustainabilityInfo).
3. The deployment is self-describing
A working OpenEPCIS instance publishes the discovery document the GS1 Conformant Resolver standard expects at the spec-mandated path /.well-known/gs1resolver. Any downstream system, such as GS1's own Global Office resolver, a partner registry or a market-surveillance tool, can therefore find the deployment automatically and read what it offers without manual configuration. This is what "GS1 Conformant" means in the standard's sense.
See also
- Feature matrix: capabilities by edition.
- Modules → Resolver: the GS1 conformance surface.
- Modules → EPCIS Events: capture, query and streaming subscriptions in context.