26.153. waltid-verifier(1)#

26.153.1. Name#

waltid-verifier - walt.id verifier-api2 service for EU Digital Identity Wallets

26.153.2. Synopsis#

waltid-verifier [–KEY=VALUE …]

26.153.3. Description#

waltid-verifier runs walt.id’s verifier service (waltid-verifier-api2 of the walt.id Community Stack, waltid-identity), the Ktor service that verifies what an EU Digital Identity Wallet presents over OpenID for Verifiable Presentations 1.0: an EU PID as an SD-JWT VC or as an ISO mdoc, the holder binding to the request, and whatever policies the caller attaches to the session – the issuer’s trust, the validity, the revocation status. kych-oauth2-gateway(1) creates a session on its management API for every identification with the EU PID that a [helper-*] section of TYPE = waltid-verifier2 serves, attaching those policies, and reads the result when walt.id calls its webhook or when the browser polls; the person’s wallet fetches the request object from it and posts its response to it. KyCH runs it as one of three interchangeable helpers whose results its differential tests compare.

walt.id’s signature policy checks a signature, not who made it, so KyCH always sends a trust policy along: x509-trust with the anchors of kych-trust(1), or etsi-trust-list with the list itself, which the service then fetches and checks (TRUST in kych.conf(5)).

This program starts the service with the Java runtime it was built for: $JAVA_HOME if it is set, else a Java 21 under /usr/lib/jvm, else java from $PATH. Before that it assembles the service’s configuration (see below) in config/ of the systemd runtime directory, a directory only the service user can read, since verifier-api2 reads config/NAME.conf relative to its working directory. Arguments are passed on to the service. The package’s systemd unit runs it as user waltid-verifier with group www-data.

26.153.4. Interfaces#

The service listens on one Unix domain socket, webUnixSocket in web.conf (a patch of ours), with two interfaces behind it that belong on different sides of a firewall:

GET, POST /verification-session/ID/request and POST /verification-session/ID/response

The request object of a session (by GET, or by POST as request_uri_method=post advertises for signed requests) and its response endpoint (direct_post or direct_post.jwt), which the wallets use. The reverse proxy publishes these, and only these, over HTTPS at urlPrefix.

everything else

POST /verification-session/create, GET .../ID/info, .../ID/events, DELETE .../ID, /vical/, /api.json (whose info.version KyCH reports), /livez: the management API. It authenticates nobody, so it must be reachable by KyCH alone; the reverse proxy must not publish it. The example site in /usr/share/waltid-verifier/nginx/waltid-verifier.conf proxies exactly the wallet’s paths, and gives walt.id’s webhook a loopback way to KyCH.

26.153.5. Configuration#

All configuration is HOCON, one file per configuration the service knows, in /etc/waltid-verifier/:

web.conf

webUnixSocket = "/run/waltid-verifier/http.sock": the socket. The unit creates /run/waltid-verifier; a stale socket is removed at start; its mode follows the umask (UMask=0007: 0770, read-write for owner and group). Without it, the service listens on webHost and webPort (loopback, 7004).

verifier-service.conf

The service’s own settings (a conffile): urlHost = "haip-vp://", the wallet invocation of the QR code; clientMetadata; sessionRetention = 1h, how long a used session is kept (upstream: ten years); maxInMemorySessions and maxInMemoryBytes, the bounds of its in-memory session store; vicalFetchEnabled = false.

local.conf

The administrator’s additions to verifier-service.conf, appended to it, so that a key set here wins. urlPrefix, the public HTTPS URL of the wallet’s paths including /verification-session, belongs here and is required.

secrets/*.conf

Appended after local.conf: the request signing key and its identity, clientId (x509_hash:HASH – HAIP’s, the base64url SHA-256 of the leaf certificate’s DER – or x509_san_dns:NAME), key (a JWK, {"type": "jwk", "jwk": {...}}) and x5c (the chain, base64 DER, leaf first), all of the relying party’s access certificate. The service refuses an x509_hash that does not match the leaf. 0640 root:waltid-verifier.

network-fetch-guard.conf

Which destinations the service may reach when a URL comes from a request or a credential: status lists, lists of trusted entities, and the webhook. Loopback and private addresses are refused by default. KyCH’s webhook (its NOTIFY_URL, e.g. http://localhost:18444/notification, a loopback location of the reverse proxy) needs trustedHostSuffixes = ["localhost"]; without a webhook, KyCH polls instead.

_features.conf, transaction-data-profiles.conf

Upstream’s optional features (proximity-verifier and dev-mode stay off) and transaction data types, as upstream ships them.

The service keeps every session in memory only. A restart loses those in flight; KyCH fails such a session, and the person starts again.

26.153.6. Patches#

The package builds upstream’s release with these patches (waltid-verifier/patches/ in KyCH’s source):

  • listening on a Unix domain socket;

  • signed lists of trusted entities fetched by URL: the service took a compact-JWS list (ETSI TS 119 602, as the Commission publishes its lists) for an unknown format before decoding it, so etsi-trust-list could only read such a list given as content;

  • services without a status are granted: the EU profiles of TS 119 602 forbid ServiceStatus – being listed is the grant – and the service took a missing status for “not trusted”, refusing every issuer on the Commission’s lists;

  • trust for a separate status provider: the credential-status policy accepted a status list only from the credential’s own signer, or from a status-signing certificate of a CA named in the credential’s own chain, which under HAIP (no trust anchor in x5c) excludes a status provider certified by the listed CA. The policy now takes signerTrustRoots (as x509-trust) or signerTrustLists (as etsi-trust-list) for the status list’s signer, which KyCH fills with kych-trust’s PIDStatus anchors or the PID list.

26.153.7. Files#

/usr/share/waltid-verifier/bin/, /usr/share/waltid-verifier/lib/

The service, as Gradle’s installDist lays it out.

/usr/share/waltid-verifier/nginx/waltid-verifier.conf

An example nginx site that publishes the wallet’s paths only, with KyCH beside it and a loopback server for the webhook.

/run/waltid-verifier/http.sock

The socket, waltid-verifier:www-data 0770.

/run/waltid-verifier/config/

The assembled configuration, secrets included; 0700.

26.153.8. Environment#

JAVA_HOME

The Java runtime to use.

WALTID_VERIFIER_CONFIG_DIR, WALTID_VERIFIER_HOME

Instead of /etc/waltid-verifier and /usr/share/waltid-verifier, for a service run by hand.

WALTID_VERIFIER_JAVA_OPTS

Further options for the JVM.

26.153.9. See Also#

kych-oauth2-gateway(1), kych.conf(5), kych-trust(1), eudi-verifier(1), walt-id/waltid-identity

26.153.10. Bugs#

Report bugs by using https://bugs.taler.net/ or by sending electronic mail to <taler@gnu.org>.