Skip to main content

Auto-generated. Fetched from SUNET/vc@main at build time via make fetch-config-docs. Do not edit this file directly — changes are overwritten on the next fetch; update the source repo's config structs instead. Looking for a specific release instead of main? Expand VC Configuration Reference in the sidebar — every published release has its own page.

Configuration Reference

Complete reference for all configuration parameters in the VC system.

Table of Contents​

Environment Variables​

These environment variables control service behavior outside of the YAML configuration file.

VariableDescriptionExample
VC_CONFIG_YAMLPath to the YAML configuration file. Each service reads this on startup.config.yaml
SSL_CERT_FILEPath to a CA certificate file that Go's crypto/x509 trusts for TLS verification. Required when services use self-signed or private CA certificates for inter-service HTTPS./pki/rootCA.crt

common (Top-level)​

Shared configuration used across all services.

common​

Path: .common

Constraint (mongo, sql, ha): Mongo.URI is required by registry unconditionally, since it connects to MongoDB whatever SQL.Backend says. For apigw and verifier it is required when SQL.Backend is 'mongo' (the default primary-store backend) or when HA.Enable is true (HA caching has no relational backend yet, so it always uses Mongo), and not required for a pure relational deployment (a non-mongo SQL.Backend with HA disabled). The issuer never needs it, having no database at all. Enforced in configuration.New rather than as a struct validation, since it depends on the running service.

FieldTypeDescriptionExampleDefaultRequired
productionboolProduction mode-trueNo
logobjectLogging configuration--No
mongoobjectMongoDB configuration--No
sqlobjectRelational database configuration, used by services that support a relational storage backend as an alternative to MongoDB.--No
tracingobjectOpenTelemetry tracing configuration--No
metricsobjectOpenTelemetry metrics configuration--No
kafkaobjectKafka message broker configuration--No
secret_file_pathstringPath to a separate YAML file containing secrets; when set, secret values in config.yaml are cleared and only non-empty fields from the secrets file are applied."/etc/vc/secrets.yaml"-No
skip_secrets_perm_checkboolSkipSecretsPermCheck disables file permission validation on the secrets file. Required for platforms like Fly.io that mount files as 0755.-falseNo
haobjectHigh-availability mode. When Enable is true, caches use MongoDB (Common.Mongo.URI) instead of in-memory storage so state is shared across instances.--No
credential_registryobjectAn optional TS11 credential metadata registry client, used as an add-on to (not a replacement for) the existing vctm_file_path/vctm_url/mddl_file_path/mddl_url per-scope configuration: disabled by default, so existing deployments are unaffected until this is explicitly enabled and at least one scope sets vct or doctype instead of a file/URL.--No
openid4vp_compatobjectOpt-in switches for wallets that predate OpenID4VP 1.0. Shared rather than per-service because both the verifier and the apigw build client_metadata, and a wallet cannot meaningfully meet two different answers from one deployment.--No
brandingobjectCustom branding configuration (logo and favicon paths)--No
credential_metadataobjectOAuth2 scope values to their credential configuration, required by apigw, issuer, and verifier Key: OAuth2 scope (e.g., "pid", "ehic", "diploma") - matches AuthorizationContext.Scope Each entry contains the VCTM reference, format, and other configuration for that credential type--No

log​

Path: .common.log

FieldTypeDescriptionExampleDefaultRequired
folder_pathstringPath to the log folder"/var/log/vc"-No

mongo​

Path: .common.mongo

FieldTypeDescriptionExampleDefaultRequired
uristringMongoDB connection URI. Required by registry unconditionally, which connects to MongoDB whatever Common.SQL.Backend says. Required by apigw and verifier when Common.SQL.Backend is "mongo" (the default primary-store backend) or when Common.HA.Enable is true (pkg/cache has no relational backend yet, so HA caching always uses Mongo regardless of the primary store's backend). Never required by the issuer, which opens no database at all. Enforced in configuration.New rather than by a validation tag here, because the requirement depends both on sibling fields of Common and on which service is starting - something a struct validation cannot see. Credentials may be embedded in the URI in the usual MongoDB way, though Common.SecretFilePath keeps them out of the main configuration. The example is deliberately credential-free: an inline userinfo component matches the secret-detection patterns some review and diff tools apply, and they redact it and then report the redaction as a malformed URI."mongodb://mongo:27017/vc"-No
tlsboolTLS for the MongoDB connection. Can also be enabled via the connection URI parameter "tls=true".-falseNo
ca_file_pathstringPath to a PEM-encoded CA certificate used to verify the MongoDB server's certificate. When empty, the system root CAs are used.--No
cert_file_pathstringPath to a PEM-encoded client certificate for mutual TLS (mTLS).--Yes (if key_file_path set)
key_file_pathstringPath to a PEM-encoded client private key for mutual TLS (mTLS).--Yes (if cert_file_path set)

sql​

Path: .common.sql

Constraint (postgres, mariadb): When Backend is 'postgres', Postgres.Host and Postgres.User are required; when Backend is 'mariadb', MariaDB.Host and MariaDB.User are required. Enforced at the SQL struct level (rather than required_if tags on PostgresConfig/MariaDBConfig themselves) because 'Backend' lives on the parent SQL struct, not on those nested structs.

support a relational storage backend as an alternative to MongoDB. Backend selection is config-time only: a running service uses exactly one backend for its whole lifetime.

FieldTypeDescriptionExampleDefaultRequired
backendstringBackend selects the storage backend for services that support relational storage. "mongo" (default, current behavior) keeps existing Mongo-backed behavior unchanged; "postgres" and "mariadb" select the corresponding relational backend.-mongoNo
postgresobjectPostgres-specific connection settings, used when Backend is "postgres".--Yes (if backend is "postgres")
mariadbobjectMariaDB/MySQL-specific connection settings, used when Backend is "mariadb".--Yes (if backend is "mariadb")

postgres​

Path: .common.sql.postgres

FieldTypeDescriptionExampleDefaultRequired
hoststringPostgres server hostname. Required when Common.SQL.Backend is "postgres"; enforced by a SQL-level struct validation rather than a plain "required_if" tag here, since "Backend" lives on the parent SQL struct, not on PostgresConfig, and required_if can only reference sibling fields."postgres"-No
portintPostgres server port-5432No
userstringPostgres connection user. Required when Common.SQL.Backend is "postgres" (see Host doc comment for why this isn't a required_if tag).--No
passwordstringPostgres connection password. May also be set via secrets.yaml (Common.SQL.Postgres.Password), following the same split as Mongo.URI.--No
databasestringPostgres database name"vc"vcNo
ssl_modestringPostgres SSL mode: disable, require, verify-ca, or verify-full-disableNo
ca_file_pathstringPath to a PEM-encoded CA certificate used to verify the server's certificate.--No
cert_file_pathstringPath to a PEM-encoded client certificate for mutual TLS (mTLS).--Yes (if key_file_path set)
key_file_pathstringPath to a PEM-encoded client private key for mutual TLS (mTLS).--Yes (if cert_file_path set)
max_open_connsintMaximum number of open connections to the database.-25No
max_idle_connsintMaximum number of idle connections in the pool.-5No

mariadb​

Path: .common.sql.mariadb

Kept as a separate struct from PostgresConfig (rather than shared) since default port and TLS parameter semantics differ enough between the two drivers to want independent validation tags.

FieldTypeDescriptionExampleDefaultRequired
hoststringMariaDB server hostname. Required when Common.SQL.Backend is "mariadb"; enforced by a SQL-level struct validation rather than a plain "required_if" tag here, since "Backend" lives on the parent SQL struct, not on MariaDBConfig, and required_if can only reference sibling fields."mariadb"-No
portintMariaDB server port-3306No
userstringMariaDB connection user. Required when Common.SQL.Backend is "mariadb" (see Host doc comment for why this isn't a required_if tag).--No
passwordstringMariaDB connection password. May also be set via secrets.yaml (Common.SQL.MariaDB.Password), following the same split as Mongo.URI.--No
databasestringMariaDB database name"vc"vcNo
tlsboolTLS for the MariaDB connection.-falseNo
ca_file_pathstringPath to a PEM-encoded CA certificate used to verify the server's certificate.--No
cert_file_pathstringPath to a PEM-encoded client certificate for mutual TLS (mTLS).--Yes (if key_file_path set)
key_file_pathstringPath to a PEM-encoded client private key for mutual TLS (mTLS).--Yes (if cert_file_path set)
max_open_connsintMaximum number of open connections to the database.-25No
max_idle_connsintMaximum number of idle connections in the pool.-5No

tracing​

Path: .common.tracing, .common.metrics

FieldTypeDescriptionExampleDefaultRequired
enableboolEnable activates OpenTelemetry tracing-falseNo
addrstringOTEL collector address"jaeger:4318"-Yes (if enabled)
timeoutint64Timeout in seconds-10No

kafka​

Path: .common.kafka

FieldTypeDescriptionExampleDefaultRequired
enableboolKafka integration-falseNo
brokers[]stringList of Kafka broker addresses["kafka0:9092", "kafka1:9092"]-Yes (if enabled)
saslobjectSASL authentication for Kafka connections--No
mtlsobjectMutual TLS (mTLS) for Kafka broker connections--No

sasl​

Path: .common.kafka.sasl

FieldTypeDescriptionExampleDefaultRequired
enableboolEnable activates SASL authentication-falseNo
mechanismstringSASL mechanism (PLAIN, SCRAM-SHA-256, SCRAM-SHA-512)-SCRAM-SHA-512No
usernamestringSASL username--Yes (if enabled)
passwordstringSASL password--Yes (if enabled)

mtls​

Path: .common.kafka.mtls

FieldTypeDescriptionExampleDefaultRequired
enableboolMTLS for the connection-falseNo
ca_cert_pathstringPath to a CA certificate for verifying the remote peer (optional; uses system roots if empty)--No
cert_file_pathstringPath to a client certificate for mutual authentication--Yes (if enabled)
key_file_pathstringPath to the client private key--Yes (if enabled)
insecure_skip_verifyboolInsecureSkipVerify disables certificate verification (TESTING ONLY — never use in production)-falseNo

ha​

Path: .common.ha

FieldTypeDescriptionExampleDefaultRequired
enableboolHA mode; when true caches are backed by MongoDB instead of in-memory storage.-falseNo
cache_database_namestringMongoDB database name used for caches.-vc_cacheNo
pubsubobjectThe optional pub/sub backend (Redis or Valkey) used for cross-node notifications in HA mode - today just the verifier's SSE fanout. Omitted entirely in standalone deployments; when omitted in HA, notifications remain in-process and do not cross nodes.--No

pubsub​

Path: .common.ha.pubsub

Supports Redis and Valkey today (both speak RESP, so the same client serves both; Backend only decides what logs and metrics identify it as). Omitted in standalone deployments; when omitted in HA, notifications stay in-process and do not cross nodes.

FieldTypeDescriptionExampleDefaultRequired
backendstringBackend selects the RESP backend; "redis" or "valkey". Defaults to "redis" when omitted.-redisNo
addrs[]stringOne or more "<host>:<port>" endpoints. A single entry yields a plain client; multiple entries yield a cluster client.["redis:6379"]-Yes
usernamestringACL username (Redis 6+ / Valkey). Optional.--No
passwordstringACL password (Redis 6+ / Valkey) or the single AUTH password on older servers. Optional.--No
dbintLogical database number used by single-node mode (ignored in cluster mode).-0No
tlsboolTLS for the client connection, using system roots.-falseNo

credential_registry​

Path: .common.credential_registry

FieldTypeDescriptionExampleDefaultRequired
enableboolRegistry-backed resolution for any scope that sets vct or doctype instead of a local file/URL. Existing vctm_file_path/vctm_url/mddl_file_path/mddl_url-configured scopes are entirely unaffected either way.-falseNo
registriesarrayOrdered list of logical (independent) registries. A later entry overrides an earlier one for the same vct/doctype. Required if Enable is true.--Yes (if enabled)
refresh_intervaldurationHow long a registry's discovery index is trusted before being re-fetched. Zero means fetch once and cache forever for the lifetime of this process.-1hNo

registries entry​

Path: .common.credential_registry.registries[]

FieldTypeDescriptionExampleDefaultRequired
mirrorsarraySet of endpoints serving this logical registry's content. At least one is required.--Yes

mirrors entry​

Path: .common.credential_registry.registries[].mirrors[]

FieldTypeDescriptionExampleDefaultRequired
base_urlstringRegistry's origin, e.g. "https://registry.siros.org"."https://registry.siros.org"-Yes
timeoutdurationTimeout bounds each HTTP request to this registry.-10sNo

openid4vp_compat​

Path: .common.openid4vp_compat

Every field defaults to the conformant behaviour, so a deployment that sets none of them is an OpenID4VP 1.0 deployment.

FieldTypeDescriptionExampleDefaultRequired
send_legacy_jarm_encryption_paramsboolSendLegacyJARMEncryptionParams re-adds the draft-era authorization_encrypted_response_alg and authorization_encrypted_response_enc members to client_metadata, alongside the encrypted_response_enc_values_supported that replaced them. Off by default, and deliberately: OpenID4VP 1.0 defines client_metadata as a closed set of members, so a request carrying these two is non-conformant - the OIDF conformance suite reports them as unknown parameters and fails the test. Turn this on only for a deployment that still has to reach a draft-era wallet, and expect conformance to fail for as long as it is on.-falseNo

branding​

Path: .common.branding

FieldTypeDescriptionExampleDefaultRequired
logo_pathstringFile path to a custom logo PNG image; when empty, the built-in SUNET logo is used--No
favicon_pathstringFile path to a custom favicon PNG image; when empty, the built-in SUNET favicon is used--No

credential_metadata entry​

Path: .common.credential_metadata.<credential scope>

FieldTypeDescriptionExampleDefaultRequired
commitmentsobjectCommitments marks claims of this credential as seed-backed: the claim's value is a commitment over a per-subject seed rather than a value from a data source. Keyed by where the value goes in the document data the issuer receives - the element identifier for mso_mdoc, which is flat, and a dotted path for the other formats. Absent means this credential has no such claim and is issued exactly as it is today.--No
vctm_file_pathstringPath to a local VCTM JSON file. When set, apigw will publish the VCTM at /type-metadata/:scope. Used for every format except mso_mdoc.--Yes (if none of vctm_url, mddl_file_path, mddl_url, vct, doctype set)
vctm_urlstringURL where the VCTM is already published externally. When set, the VCTM is fetched from this URL at startup for internal use but NOT re-published by apigw. Used for every format except mso_mdoc.--Yes (if none of vctm_file_path, mddl_file_path, mddl_url, vct, doctype set)
vctstringVct claim value to resolve via Common.CredentialRegistry (a TS11 registry client), used only when neither VCTMFilePath nor VCTMUrl is set. Requires Common.CredentialRegistry.Enable - this field being present in a scope's config does not itself turn registry lookups on. Used for every format except mso_mdoc.--Yes (if none of vctm_file_path, vctm_url, mddl_file_path, mddl_url, doctype set)
mddl_file_pathstringPath to a local MDDL (mso_mdoc) schema JSON file, as produced by registry-cli's mddl format generator.--Yes (if none of vctm_file_path, vctm_url, mddl_url, vct, doctype set)
mddl_urlstringURL where the MDDL schema is already published externally. The mso_mdoc analogue of vctm_url.--Yes (if none of vctm_file_path, vctm_url, mddl_file_path, vct, doctype set)
replace_vctboolReplaceVCT decides what happens to a local VCTM that ALREADY declares a vct: false (the default) publishes the file's own identifier, true overwrites it with the /type-metadata/{scope} URL apigw serves the document at. A file that declares NO vct always takes the hosting URL, whatever this says - there is nothing to preserve, and a Type Metadata document without a vct is not one (SD-JWT VC 6.3). So the served bytes always carry an identifier, and it is always the one the credential names. The default keeps a URN working: an identifier chosen outside this deployment survives publication. Set true when this deployment owns the type and the hosting URL is meant to be canonical. Only meaningful for a local VCTM (vctm_file_path): an external source is authoritative.falsefalseNo
doctypestringMdoc doctype value to resolve via Common.CredentialRegistry, used only when neither MDDLFilePath nor MDDLUrl is set. Requires Common.CredentialRegistry.Enable, same as VCT. Used only for mso_mdoc.--Yes (if none of vctm_file_path, vctm_url, mddl_file_path, mddl_url, vct set)
credential_types[]stringThe W3C VC types this scope ISSUES, most general first, e.g. ["VerifiableCredential", "DiplomaCredential"]. Compact terms (OID4VCI Appendix A.1). Advertised as credential_definition.type, which is also where issueVC20 reads the types it mints, so advertised and issued stay in step. A verifier constrains by CredentialTypeValues instead, which cannot be derived from this - a scope that is both issued and requested sets both. W3C formats only; defaults to the bare base type, as before. A CUSTOM term here needs CredentialContexts to define it, and the three fields only work as a set. Configuring a term with no context issues a credential whose type expands to a relative IRI, which can never equal the absolute IRI credential_type_values names - so the deployment issues credentials its own verifier refuses. A complete example: credential_types: ["VerifiableCredential", "DiplomaCredential"] credential_contexts: ["https://example.org/diploma"] credential_type_values: [["https://www.w3.org/2018/credentials#VerifiableCredential", "https://example.org/diploma#DiplomaCredential"]] where https://example.org/diploma is published and defines DiplomaCredential as that IRI.--No
credential_type_valuesarrayDCQL meta.type_values a verifier REQUESTS this credential by: alternatives, each a set of types the credential must carry all of (OpenID4VP 1.0 6.4.1). Fully expanded IRIs - ".../2018/credentials#VerifiableCredential", not "VerifiableCredential". Separate from CredentialTypes because converting between them needs a JSON-LD expansion this repo does not do; guessing would emit a query wallets cannot match. Unset leaves the scope unrequestable rather than guessed at.--No
credential_contexts[]stringJSON-LD contexts appended after the VC 2.0 base context when this credential is issued. This is what connects the two fields above. A term in credential_types that no context defines survives JSON-LD expansion as a RELATIVE IRI, so it can never equal the absolute IRI credential_type_values names, and a verifier constraining by that IRI will refuse every credential this deployment issues. Publish a context defining the term and name it here. The URL must be dereferenceable by BOTH sides, and the issuer's need is the sharper one: signing canonicalizes the credential to RDF, so an unreachable context fails issuance outright rather than degrading verification. Publish it before configuring it. The issuer also refuses to fetch a context it has not been told about - name it in issuer.jsonld_context_allowlist as well. The issuer REFUSES TO START if a W3C scope names a context its allowlist does not, because the apigw forwards this list verbatim as additional_contexts and every issuance of that credential would otherwise be rejected at request time. Resolved and PINNED at config load, which has three consequences worth knowing before configuring this. The host must be reachable when the service starts, or it will not start. The document is then fixed for the life of the process, so republishing the context does not affect a running service - restart it. And startup verifies that the context actually defines credential_types and that the result matches credential_type_values, so a mismatch is a boot failure rather than a presentation that silently never matches.--No
formatstringCredential format to issue"dc+sd-jwt"dc+sd-jwtNo
disclosure_policyobjectThe embedded disclosure policy for this credential type. Per CIR 2024/2979 Annex III and ETSI TS 119 472-3 §4.2.5. Only applicable to QEAAs and PuB-EAAs (not PIDs). Optional and off by default: when omitted, no disclosure_policy field is emitted in the credential issuer metadata.--No
attributesobjectClaim names to their source fields for credential issuance. Data sources are rename-only (attribute_mapping); value transformations belong in the target scope's derivations.--No

commitments entry​

Path: .common.credential_metadata.<credential scope>.commitments.<claim path>

What is written into the credential is commit(seed) - never the seed. The seed is not delivered to the Wallet by this server at all: a derived seed is recomputable whenever it is wanted, so there is no moment at which it has to be handed over to avoid losing it.

FieldTypeDescriptionExampleDefaultRequired
seedstringSeed names the entry in apigw.seeds that backs this claim. Required for an issuer-held commitment. A claim whose commitment the HOLDER computes names no seed source - the issuer never sees that seed - and is configured with Source instead."primary"-Yes (if source not set)
sourcestringSource names a party other than this issuer as the origin of the value. The only value is "holder": the commitment arrives in the Credential Request and is written as sent. Not implemented here - it needs a record of which commitment a subject already supplied, and the issuer has no store - so a configuration naming it is refused at startup."holder"-No
subjects[]stringORDERED list of dotted paths into the document data naming the stable subject identifiers this claim's seed is derived from. They are the only inputs that separate one person's seed from another's, so what they point at decides what "the same person" means for every pseudonym built on this credential. A list rather than one path because one identifier is frequently not an identifier on its own: a national personal number is unique within its country and a document number within its scheme, so the country or the scheme has to be derived over as well or two people in different populations collide. A deployment issuing a Swedish PID might configure the personnummer alone; one issuing across member states configures the issuing country and the personnummer, in that order. ORDER IS PART OF THE DERIVATION. ["a","b"] and ["b","a"] are different seeds, so reordering this list repseudonymises everyone as surely as changing the secret does. A one-element list derives exactly what that identifier derived on its own. Every path must resolve, to a non-empty string. There is no fallback and no skipping: deriving over "" would hand every subject whose identity did not resolve the same seed - and dropping an absent entry would be worse, since ["a",""] would then derive what ["a"] derives and hand one subject another subject's pseudonym.["issuing_country", "personal_administrative_number"]-Yes (if seed set)
commitstringCommit names the commitment function. Empty means "sha-256", which is the only one registered."sha-256"-No
contextstringContext separates populations that must not share seeds. Empty is the ordinary case and the right default: a subject has ONE seed, so two credential types issued to the same person lead back to the same person. Setting it per credential would mean they do not.--No
encodingstringHow the commitment bytes are written into the document data. Empty picks by format: base64 for mso_mdoc, whose bstr carrier is base64 in JSON, and hex for everything else."hex"-No

disclosure_policy​

Path: .common.credential_metadata.<credential scope>.disclosure_policy

Per CIR 2024/2979 Annex III, three common policy types are defined.

FieldTypeDescriptionExampleDefaultRequired
policy_typestringPolicyType identifies the disclosure policy type. One of: - "none": no policy applies (default) - "authorized_relying_parties": only RPs in the allowlist may receive this attestation - "specific_root_of_trust": only RPs with access certificates from specific roots may receive this attestation-noneNo
authorized_relying_parties[]stringList of EU-wide unique Relying Party identifiers (as found in the Wallet-Relying Party Registration Certificate). Required when policy_type is "authorized_relying_parties".--Yes (if policy_type is "authorized_relying_parties")
trusted_roots[]stringList of root or intermediate certificate SHA-256 fingerprints (hex-encoded, 64 characters) from which the RP's access certificate must be derived. Required when policy_type is "specific_root_of_trust".--Yes (if policy_type is "specific_root_of_trust")

apigw (Top-level)​

Configuration for the API Gateway service that handles credential issuance requests.

apigw​

Path: .apigw

FieldTypeDescriptionExampleDefaultRequired
api_serverobjectHTTP API server configuration--Yes
admin_ui_enableboolThe admin web UI. When false (default), the /ui routes are not registered. This must be explicitly set to true to enable the admin interface.-falseNo
key_configobjectSigning key configuration--Yes
data_sourcesobjectCredential types to their data sources--Yes
auth_providersobjectHow users authenticate (SAML, OIDC)--No
remotesobjectNamed external API connections referenced by DataSources.ExternalAPI"ladok"-No
deliveryobjectDelivery groups credential delivery to wallets (OpenID4VCI, credential offers)--Yes
issuer_metadataobjectOpenID4VCI issuer metadata--No
public_urlstringPublic URL of this service (must be valid HTTP/HTTPS URL)"https://issuer.sunet.se"-Yes
seedsobjectIssuerClient is the gRPC client config for issuer Seeds are the named per-subject seed sources this deployment can use. A seed source turns a subject's stable identifiers into that subject's permanent seed; a credential configuration then names one to back a commitment claim - see CredentialMetadata.Commitments. Empty means none is offered, and any scope asking for one refuses at startup. HERE rather than under issuer, which is where it began. The seed is derived and its commitment injected BEFORE the issuer service is called, so the issuer receives an ordinary claim and never sees the derivation secret at all. A secret that only one service needs belongs in that service's configuration, and keeping it where it is not used is how it ends up mounted somewhere it need not be.--No
issuer_clientobjectIssuer Client--Yes
registry_clientobjectGRPC client config for registry--Yes
identity_mapping_importobjectAutomatic import of identity mappings from JSON files at startup. When configured, APIGW reads JSON files and imports them into the identity mappings collection on first startup (skipped if data already exists).--No
trustobjectTrust evaluation configuration for OpenID4VP credential validation. When configured, credentials presented via VP are validated against a PDP.--No
federationobjectOpenID Federation entity configuration. When enabled, serves /.well-known/openid-federation as a self-signed JWT.--No
rate_limitobjectPer-endpoint rate limiting for the APIGW.--No
dashboardobjectThe /dashboard demo landing page.--No

api_server​

Path: .apigw.api_server, .issuer.api_server, .verifier.api_server, .registry.api_server

FieldTypeDescriptionExampleDefaultRequired
addrstringListen address for the HTTP server-:8080No
served_by_headerstringThe X-Served-By response header value for HA troubleshooting. Empty (default): header is not set. "hostname": uses os.Hostname(). Any other value is used as-is.--No
tlsobjectTLS--No
api_authobjectAPI Auth--No
corsobjectCORS--No
trust_proxy_tlsboolThe Secure flag on session cookies even when TLS is not enabled on this server. Use this when running behind a TLS-terminating reverse proxy.-falseNo

tls​

Path: .apigw.api_server.tls, .issuer.api_server.tls, .verifier.api_server.tls, .registry.api_server.tls

FieldTypeDescriptionExampleDefaultRequired
enableboolTLS-falseNo
cert_file_pathstringPath to the TLS certificate--Yes (if enabled)
key_file_pathstringPath to the TLS private key--Yes (if enabled)

api_auth​

Path: .apigw.api_server.api_auth, .issuer.api_server.api_auth, .verifier.api_server.api_auth, .registry.api_server.api_auth

Constraint (jwks, oidc): JWKS and OIDC are mutually exclusive — enable at most one.

Constraint (rules, rules_file): Authorization rules require JWKS or OIDC to be enabled.

JWKS and OIDC are mutually exclusive If neither is enabled, no authentication is applied (open access)

When Rules (and/or RulesFile) are configured, each authenticated request is checked against a SPOCP engine. A query of the form

(vc (service <SERVICE>)(method <HTTP_METHOD>)(path <REQUEST_PATH>)(subject <JWT_SUBJECT>)(authentic_source <SOURCE>)(scope <SCOPE>))

is evaluated; the request is allowed only if a matching rule exists. All six parts are required in every rule. Use * as wildcard for fields you don't want to restrict. The <SERVICE> value is supplied by the calling service at middleware registration time. When two services share endpoints, rules for one service do not grant access to the other. When no rules are configured, any valid Bearer JWT grants access.

FieldTypeDescriptionExampleDefaultRequired
jwksobjectStatic JWKS Bearer token authentication configuration When enabled, requests are validated against a manually configured JWKS URL--No
oidcobjectOIDC Bearer token authentication configuration When enabled, the JWKS endpoint is auto-discovered from the issuer's .well-known/openid-configuration and Bearer JWTs are validated locally The RP fields (client_id, redirect_uri, etc.) also enable the admin UI login flow via OIDC redirect--No
rules[]stringSPOCP S-expression authorization rules loaded into an in-process engine. All six parts (service, method, path, subject, authentic_source, scope) are mandatory in every rule — use * for wildcards. Rules apply regardless of whether JWKS or OIDC is the active auth method["(vc (service apigw)(method POST)(path /api/v1/upload)(subject alice)(authentic_source SUNET)(scope eduid))"]-No
rules_filestringOptional path to a file containing SPOCP rules (one per line) Rules from this file are loaded in addition to the inline Rules list--No

jwks​

Path: .apigw.api_server.api_auth.jwks, .issuer.api_server.api_auth.jwks, .verifier.api_server.api_auth.jwks, .registry.api_server.api_auth.jwks

Constraint (jwks_url, jwks_file_path): Exactly one of jwks_url or jwks_file_path must be set when enable is true.

FieldTypeDescriptionExampleDefaultRequired
enableboolStatic JWKS Bearer token authentication-falseNo
jwks_urlstringURL of the JSON Web Key Set used to validate token signatures."https://auth.example.com/.well-known/jwks.json"-No (mutually exclusive with jwks_file_path)
jwks_file_pathstringLocal file path to a JWKS JSON file used to validate token signatures.--No (mutually exclusive with jwks_url)
issuerstringExpected "iss" claim. Tokens with a different issuer are rejected--Yes (if enabled)
audiencestringExpected "aud" claim. Tokens that do not contain this audience are rejected--Yes (if enabled)

oidc​

Path: .apigw.api_server.api_auth.oidc, .issuer.api_server.api_auth.oidc, .verifier.api_server.api_auth.oidc, .registry.api_server.api_auth.oidc

It serves two purposes:

  • API auth: Bearer JWTs in Authorization headers are validated locally against the provider's JWKS (auto-discovered from IssuerURL).
  • Admin UI login: the RP fields (ClientID, RedirectURI, Scopes) enable an authorization-code redirect flow so admins log in via the OIDC provider.
FieldTypeDescriptionExampleDefaultRequired
enableboolOIDC authentication-falseNo
issuer_urlstringOIDC provider's issuer URL used for discovery and "iss" claim validation."https://auth.example.com"-Yes (if enabled)
audiencestringExpected "aud" claim. Tokens that do not contain this audience are rejected.--Yes (if enabled)
client_idstringOAuth2 client identifier registered with the OIDC provider.--Yes (if enabled)
client_secretstringOAuth2 client secret. May be empty for public clients.--No
redirect_uristringCallback URL for the admin UI OIDC login flow."https://apigw.example.com/ui/callback"-Yes (if enabled)
scopes[]stringOAuth2/OIDC scopes to request (default: ["openid"]).--No

cors​

Path: .apigw.api_server.cors, .issuer.api_server.cors, .verifier.api_server.cors, .registry.api_server.cors

FieldTypeDescriptionExampleDefaultRequired
allowed_origins[]stringList of allowed CORS origins["https://wallet.sunet.se", "https://app.sunet.se"][]No

key_config​

Path: .apigw.key_config, .issuer.key_config, .issuer.access_certificate.key_config, .verifier.key_config, .registry.token_status_lists.key_config

Supports both file-based and HSM-based keys with explicit control.

FieldTypeDescriptionExampleDefaultRequired
private_key_pathstringFile-based configuration--Yes (if pkcs11 not set)
chain_pathstringPath to certificate chain (optional). Should contain the signing certificate followed by intermediates, and the root certificate if it is not in the system trust store--No
pkcs11objectHSM-based configuration--Yes (if private_key_path not set)
sourceobjectSource selection (determines which config to use) If empty, tries in order: File (if FilePath set), then HSM (if HSM set)--No
enable_fileboolFile-based key loading (default: true if FilePath set)--No
enable_hsmboolHSM-based key loading (default: true if HSM set)--No
priorityarrayFallback order when both are enabled If nil, uses Source field or auto-detects based on what's configured["hsm", "file"]-No

pkcs11​

Path: .apigw.key_config.pkcs11, .apigw.issuer_metadata.credential_encryption.keys[].pkcs11, .issuer.key_config.pkcs11, .issuer.access_certificate.key_config.pkcs11, .verifier.key_config.pkcs11, .registry.token_status_lists.key_config.pkcs11

FieldTypeDescriptionExampleDefaultRequired
module_pathstringPath to the PKCS#11 library"/usr/lib/softhsm/libsofthsm2.so"-No
slot_iduintHSM slot ID0-No
pinstringUser PIN for the slot"1234"-No
key_labelstringLabel of the key to use"my-signing-key"-No
key_idstringIdentifier for the JWT kid header"key-1"-No

data_sources​

Path: .apigw.data_sources

Each key under a data source is a credential type.

FieldTypeDescriptionExampleDefaultRequired
datastoreobjectCredential types backed by a pre-loaded datastore (e.g. MongoDB)--No
assertionobjectCredential types backed by authentication assertions (SAML attributes or OIDC claims)--No
external_apiobjectCredential types backed by an external API Each credential references a named remote defined in APIGW.Remotes--No
presentationobjectCredential types whose data is derived from another credential the wallet presents via OpenID4VP during OpenID4VCI.--No

datastore​

Path: .apigw.data_sources.datastore

FieldTypeDescriptionExampleDefaultRequired
scopesobjectCredential scope names to their datastore configuration--No
importobjectAutomatic data import from JSON files at startup. When configured, APIGW reads JSON files on every startup and imports each document whose natural key is not already present, so newly added fixtures (or a whole new scope) are imported on restart.--No

scopes entry​

Path: .apigw.data_sources.datastore.scopes.<credential scope>

FieldTypeDescriptionExampleDefaultRequired
auth_providerstringAuth provider for this credential type (openid4vp, saml, oidc, or preauth). Use preauth to restrict issuance to pre-authorized credential offers only; wallet-initiated PAR/authorize requests for such a scope are rejected.--Yes
authentic_sourcestringAuthenticSource names the identity-mapping namespace used to resolve the authenticated user to an authentic_source_person_id for datastore identity lookups (oidc, saml, openid4vp). Identity mappings are scoped to an authentic source (SUNET/vc#507 made the namespace mandatory), so this must match the namespace the mappings were imported under. Not used for preauth, where the pre-authorized offer already carries the identifier. Constrained to match AuthorizationContext.AuthenticSource so a namespace that passes config load cannot later fail every authorize request."SUNET"-No
auth_claims[]stringThe normalized claim names used for datastore identity lookup when auth_provider is saml or oidc. Not used for openid4vp (use AuthScopes instead). Must be empty when auth_provider is preauth. These names must match the BSON field names under "identities." in the datastore. Use attribute_mappings (in auth_providers) to normalize provider-specific attribute names (e.g. SAML urn:oid:2.5.4.42, eIDAS date_of_birth) to these canonical names. Available identity fields: given_name, family_name, birth_date, birth_place, authentic_source_person_id, personal_administrative_number.[given_name, family_name, birth_date]-No
auth_scopesobjectCredential scope keys to their per-scope authentication config. Used only for openid4vp: the wallet must present a credential matching any one of the listed scopes (OR logic). Each entry specifies which claims to extract from that particular credential type.--No
oidc_request_paramsobjectAdditional parameters to include in the OIDC authorization request. Used to pass per-request values to the OP - see OIDCRequestParams for where those values come from, and for why they are not a statement about the authentic source. Only meaningful when auth_provider is oidc - there is no authorization request to add parameters to otherwise - and rejected at startup on a scope with any other provider. See validateOIDCOnlyScopeFields.--No
issuance_policyobjectSPOCP rules that must be satisfied by the OIDC claims for credential issuance. If configured, a SPOCP query is built from the returned claims and evaluated against these rules. A query that does not match any rule results in a hard deny. Evaluated in the OIDC callback and nowhere else, so it is rejected at startup on a scope whose auth_provider is not oidc. Accepting it there would be the worst outcome available for a security control: the configuration reads as a gate, validates, starts, and issues every credential through the SAML or pre-authorized path without ever consulting it. See validateOIDCOnlyScopeFields.--No
derivationsarrayGeneric post-verification steps that compute additional claims from the source data (see credential.ApplyDerivations).--No

auth_scopes entry​

Path: .apigw.data_sources.datastore.scopes.<credential scope>.auth_scopes.<key>

Each entry represents one acceptable credential type the wallet can present.

FieldTypeDescriptionExampleDefaultRequired
auth_claims[]stringThe identity claims to extract from this credential type.[given_name, family_name, birth_date]-Yes
identity_attributesobjectIdentityAttributes renames an auth claim to the identity-mapping attribute it is matched as (given_name, family_name, birth_date or authentic_source_person_id). Needed when the presented credential spells the attribute differently - an SD-JWT PID's "birthdate", an mdoc claim outside org.iso.18013.5.1 such as "eu.europa.ec.eudi.pid.1.given_name", or a Photo ID's "org.iso.23220.1.given_name_unicode". An auth claim without an entry is matched under its own name, as before.--No
document_claimsobjectDocumentClaims copies claims of the verified presented credential into the issued document: presented claim path -> top-level claim of the issued credential. The copied value overrides the datastore document's own. A full-date target (MDDL value_type full-date) is normalised to "YYYY-MM-DD" whatever the source shape (SD-JWT string, mdoc CBOR tag 1004/0, date-time). Every source claim is added to the DCQL request, and one that is missing from the presentation fails issuance.--No

oidc_request_params​

Path: .apigw.data_sources.datastore.scopes.<credential scope>.oidc_request_params, .apigw.data_sources.assertion.scopes.<credential scope>.oidc_request_params, .apigw.data_sources.external_api.scopes.<credential scope>.oidc_request_params

These allow per-request values to be injected into the authentication flow.

NOT AN AUTHENTIC-SOURCE ASSERTION, despite where the values nominally come from. The operator decides WHICH parameters exist and where a template may appear; the value substituted into one is whatever the PAR caller sent in PARRequest.DynamicParams, and nothing binds that to a business system - PAR authenticates the wallet/client, not the origin of a claim about an organisation. So a caller authorized to make PAR requests chooses what this service ASKS the OP to assert.

That is bounded on both sides. It is bounded here because a caller can only supply values for placeholders the operator wrote: they cannot add a parameter, override a reserved one, or inject structure into the claims JSON (resolveOIDCRequestParams escapes substitutions as JSON string content and refuses an unresolved placeholder). And it is bounded downstream because whether the OP honours the request is the OP's decision, and vc gates issuance on the claims the OP ASSERTED, never on these values - see the policy evaluation in handlers_oidcrp.go, which deliberately does not fall back to them.

The rule that follows: do not use a dynamic parameter as a security input. Treat it as a hint to the OP about what to ask for, and require the answer to come back in the token.

Templated values ("{{.org_id}}") are supplied by the caller that starts the flow, and only the PAR/VCI path carries them (PARRequest.DynamicParams). A scope configured with a template therefore CANNOT be started through POST /oidcrp/initiate: that endpoint has no dynamic-parameter field, so initiation fails with a template error naming the missing key rather than sending the literal "{{.org_id}}" to the OP. Configure templates only for scopes driven over PAR/VCI. See OIDCRPInitiateRequest for why this is a decision (SUNET/vc#380) rather than a missing feature.

FieldTypeDescriptionExampleDefaultRequired
acr_valuesstringACRValues requests specific authentication context class references from the OP. Supports Go template syntax for dynamic values: "{{.variable_name}}""urn:example:loa3"-No
claimsstringJSON string conforming to OIDC Core §5.5 claims request parameter. Supports Go template syntax for dynamic values: "{{.variable_name}}" Dynamic values are escaped as JSON string content, so a value can only affect the string it is written into and never the surrounding structure. The rendered result must be valid JSON or flow initiation fails, which also catches a template that was malformed as written. A caller value may FILL a string in and nothing else. It may not decide which branch of the template runs - {{if .org_id}} lets the caller choose what the request asks for without the value ever appearing in it - and it may not sit outside a string or name a member. All three are refused at startup. A placeholder must sit INSIDE a JSON string. The escaping makes a value safe within the string it is written into; written outside one - "value": {{.org_id}} - the same escaping inserts the caller's text as raw JSON, so a value like true,"essential":true adds members the operator never wrote and still parses. A placeholder used as an object KEY lets the caller choose which claim is requested. Both are refused at startup. DO NOT template the "value" of a claim the issuance policy reads. The value member asks the OP to assert a SPECIFIC value, and the caller that fills the template is the wallet - PAR authenticates it, not the origin of a statement about an organisation. An OP that honours the request hands the caller's own choice back in the token, where the policy reads it as the OP's word. That configuration is refused at startup; see checkPolicyClaimsAreNotCallerTemplated. Requesting the claim without a value - "org_id": null - asks the OP what it knows, which is the question worth gating on."{\"id_token\":{\"org_id\":null}}"-No
extra_scopes[]stringAdditional OAuth2 scopes to request beyond the default OIDC RP scopes.["organization", "address"]-No
custom_paramsobjectArbitrary key-value pairs to add as query parameters to the authorization request. Keys are static; values support Go template syntax for dynamic substitution. A TEMPLATED custom parameter is refused on a scope that has an issuance_policy. These are arbitrary by design, so nothing here can know what an OP does with one, and an OP that treats a parameter as a hint about the subject can echo it into any claim - there is no claim to name and so no narrower rule to write. A fixed value is the operator's and stays allowed.--No

issuance_policy​

Path: .apigw.data_sources.datastore.scopes.<credential scope>.issuance_policy, .apigw.data_sources.assertion.scopes.<credential scope>.issuance_policy, .apigw.data_sources.external_api.scopes.<credential scope>.issuance_policy

After OIDC authentication completes, a SPOCP query is built from the returned claims and evaluated against these rules. If no rule matches, issuance is denied.

A policy is rules PLUS a query_template. Rules alone are refused at startup: SPOCP matches dimensions by POSITION, so a rule cannot be read at all without knowing which dimensions the query carries and in what order. Any example showing one without the other does not describe a configuration this service will start with.

The claims it reads have to be ones the OP asserts of its own accord. oidc_request_params may ask the OP for a claim, but templating a VALUE for one this policy reads is refused at startup: the caller that fills the template is the wallet, and an OP that honours the request would hand the caller's own choice back as its word. See OIDCRequestParams.Claims.

A complete one, for a rule requiring an acr with a given prefix and any org_id:

issuance_policy:
query_template:
- dimension: acr
claim: acr
- dimension: org_id
claim: org_id
rules:
- "(credential (scope org_credential)(acr (* prefix urn:example:loa))(org_id))"

The rule's dimensions after (scope ...) are acr then org_id, in the order query_template lists them. "scope" is auto-populated with the credential type name and is never listed in query_template. "(org_id)" with no value means any value.

FieldTypeDescriptionExampleDefaultRequired
rules[]stringInline SPOCP S-expression rules (human-readable advanced form). Example: "(credential (scope org_credential)(acr (* prefix urn:example:loa))(org_id))" -- which is only half a configuration: rules without a query_template are refused at startup, so see the worked example on issuance_policy above for the query_template that rule needs. When QueryTemplate is set, each rule is validated at load time against the "credential" tag and the ("scope", <QueryTemplate dimensions>) shape -- a rule with the wrong number/order of dimensions fails startup instead of silently never matching at evaluation time. A dimension may be omitted (e.g. "(org_id)") to mean "any value".["(credential (scope org_credential)(acr (* prefix urn:example:loa))(org_id))"]-No
rules_filestringOptional path to a file containing SPOCP rules (one per line). Rules from this file are loaded in addition to the inline Rules list, and validated the same way when QueryTemplate is set.--No
query_templatearrayHow to build the SPOCP query from OIDC claims. The outer tag is always "credential". Each entry maps a SPOCP dimension name to the OIDC claim name whose value should populate it. The order of entries determines the positional order of dimensions in the SPOCP query, which must match the order used in the rules. Special dimension "scope" is auto-populated with the credential type name. Required whenever rules or rules_file is set. It used to be optional, with a fallback that emitted one dimension per claim the token happened to carry, in name order - but SPOCP matches by position, so a rule naming two claims only matched when those two sorted ahead of every other claim present. Against a real ID token (which always carries aud, iss, nonce, sub and usually auth_time) that fallback denied every request, so a policy written for it was a blanket deny that looked like a working configuration.[{dimension: acr, claim: acr}, {dimension: org_id, claim: org_id}]-No

query_template entry​

Path: .apigw.data_sources.datastore.scopes.<credential scope>.issuance_policy.query_template[], .apigw.data_sources.assertion.scopes.<credential scope>.issuance_policy.query_template[], .apigw.data_sources.external_api.scopes.<credential scope>.issuance_policy.query_template[]

Ordered slices of QueryDimension ensure deterministic query construction.

FieldTypeDescriptionExampleDefaultRequired
dimensionstringSPOCP dimension name this entry populates. Required whenever the entry exists: an entry with no dimension has nothing to place the claim under, so it can only ever widen the rule shape into one no rule matches. "scope" is reserved - it is auto-populated with the credential type name. Constrained to a bare identifier (letter first, then letters, digits, underscore or hyphen). A dimension name is written into the S-expression a rule has to match by name, so anything with whitespace or punctuation in it is either unwritable in a rule or writable in more than one way - and " scope" would slip past the reserved-name and duplicate checks, which compare the string as given, while still colliding with the auto-populated scope dimension at query time."acr"-Yes
claimstringOIDC claim whose value populates the dimension, in dot-notation for nested claims. Required for the same reason: a dimension with no claim renders empty in every query."identity.given_name"-Yes

derivations entry​

Path: .apigw.data_sources.datastore.scopes.<credential scope>.derivations[], .apigw.data_sources.assertion.scopes.<credential scope>.derivations[], .apigw.data_sources.external_api.scopes.<credential scope>.derivations[], .apigw.data_sources.presentation.scopes.<credential scope>.derivations[]

Each list entry under a scope's derivations field is keyed by primitive name (e.g. age_over_thresholds: or lowercase: { input: email }). The subsections below catalog the primitives and their parameters.

FieldTypeDescriptionExampleDefaultRequired
age_over_thresholdsobjectAgeOverThresholds emits two boolean claims per configured threshold N from an ISO YYYY-MM-DD birthdate: age_over_N (completed years at now) and over_N_this_year (reaches N at some point in now's calendar year).--No
lowercaseobjectLowercase applies strings.ToLower elementwise.--No
uppercaseobjectUppercase applies strings.ToUpper elementwise.--No
trimobjectTrim applies strings.TrimSpace elementwise.--No
country_alpha2objectCountry names or alpha-3 codes to ISO 3166-1 alpha-2 codes elementwise. Unknown inputs pass through unchanged.--No
country_alpha3objectCountry names or alpha-2 codes to ISO 3166-1 alpha-3 codes elementwise. Unknown inputs pass through unchanged.--No
yyyymmdd_to_isoobjectYYYYMMDDToISO converts a SCHAC schacDateOfBirth ("YYYYMMDD") claim to ISO full-date ("YYYY-MM-DD"). Impossible calendar dates are an error.--No
swamid_highest_assurance_levelobjectSWAMIDHighestAssuranceLevel reduces a multi-valued eduPersonAssurance claim to the strongest recognised SWAMID Assurance Framework URI.--No
randomobjectRandom writes a freshly generated random value to a claim the source data did not supply - a document identifier, typically. The only primitive here that reads nothing and is not a pure function of its input; see RandomArgs for where the value is generated and how long it lives.--No

age_over_thresholds​

Path: .apigw.data_sources.datastore.scopes.<credential scope>.derivations[].age_over_thresholds, .apigw.data_sources.assertion.scopes.<credential scope>.derivations[].age_over_thresholds, .apigw.data_sources.external_api.scopes.<credential scope>.derivations[].age_over_thresholds, .apigw.data_sources.presentation.scopes.<credential scope>.derivations[].age_over_thresholds, <scope>.derivations[].age_over_thresholds

Emits two boolean claims per threshold: age_over_N (completed years at now) and over_N_this_year (reaches N at some point in now's calendar year, i.e. year(now) - year(birthdate) >= N).

FieldTypeDescriptionExampleDefaultRequired
inputstringBirthdate claim name (value must be ISO YYYY-MM-DD).birthdate-Yes
thresholds[]intAges (in years) to expose. Each N produces age_over_N and over_N_this_year (booleans). Every entry must be positive.[13, 15, 18, 21, 65]-Yes

lowercase​

Path: .apigw.data_sources.datastore.scopes.<credential scope>.derivations[].lowercase, .apigw.data_sources.assertion.scopes.<credential scope>.derivations[].lowercase, .apigw.data_sources.external_api.scopes.<credential scope>.derivations[].lowercase, .apigw.data_sources.presentation.scopes.<credential scope>.derivations[].lowercase, <scope>.derivations[].lowercase

Scalar strings and []string are handled; other types are an error.

FieldTypeDescriptionExampleDefaultRequired
inputstringSource claim name. Supports dot-notation claim paths (e.g. "identity.email") so this primitive can target the same nested claims that AttributeMapper materialises.email-Yes

uppercase​

Path: .apigw.data_sources.datastore.scopes.<credential scope>.derivations[].uppercase, .apigw.data_sources.assertion.scopes.<credential scope>.derivations[].uppercase, .apigw.data_sources.external_api.scopes.<credential scope>.derivations[].uppercase, .apigw.data_sources.presentation.scopes.<credential scope>.derivations[].uppercase, <scope>.derivations[].uppercase

FieldTypeDescriptionExampleDefaultRequired
inputstringInputcountry-Yes

trim​

Path: .apigw.data_sources.datastore.scopes.<credential scope>.derivations[].trim, .apigw.data_sources.assertion.scopes.<credential scope>.derivations[].trim, .apigw.data_sources.external_api.scopes.<credential scope>.derivations[].trim, .apigw.data_sources.presentation.scopes.<credential scope>.derivations[].trim, <scope>.derivations[].trim

FieldTypeDescriptionExampleDefaultRequired
inputstringInputname-Yes

country_alpha2​

Path: .apigw.data_sources.datastore.scopes.<credential scope>.derivations[].country_alpha2, .apigw.data_sources.assertion.scopes.<credential scope>.derivations[].country_alpha2, .apigw.data_sources.external_api.scopes.<credential scope>.derivations[].country_alpha2, .apigw.data_sources.presentation.scopes.<credential scope>.derivations[].country_alpha2, <scope>.derivations[].country_alpha2

Unknown inputs pass through unchanged; applied element-wise on []string.

FieldTypeDescriptionExampleDefaultRequired
inputstringInputnationalities-Yes

country_alpha3​

Path: .apigw.data_sources.datastore.scopes.<credential scope>.derivations[].country_alpha3, .apigw.data_sources.assertion.scopes.<credential scope>.derivations[].country_alpha3, .apigw.data_sources.external_api.scopes.<credential scope>.derivations[].country_alpha3, .apigw.data_sources.presentation.scopes.<credential scope>.derivations[].country_alpha3, <scope>.derivations[].country_alpha3

FieldTypeDescriptionExampleDefaultRequired
inputstringInputnationalities-Yes

yyyymmdd_to_iso​

Path: .apigw.data_sources.datastore.scopes.<credential scope>.derivations[].yyyymmdd_to_iso, .apigw.data_sources.assertion.scopes.<credential scope>.derivations[].yyyymmdd_to_iso, .apigw.data_sources.external_api.scopes.<credential scope>.derivations[].yyyymmdd_to_iso, .apigw.data_sources.presentation.scopes.<credential scope>.derivations[].yyyymmdd_to_iso, <scope>.derivations[].yyyymmdd_to_iso

Impossible calendar dates surface as a hard error.

FieldTypeDescriptionExampleDefaultRequired
inputstringSource claim name (must be a non-empty YYYYMMDD string).birthdate-Yes

swamid_highest_assurance_level​

Path: .apigw.data_sources.datastore.scopes.<credential scope>.derivations[].swamid_highest_assurance_level, .apigw.data_sources.assertion.scopes.<credential scope>.derivations[].swamid_highest_assurance_level, .apigw.data_sources.external_api.scopes.<credential scope>.derivations[].swamid_highest_assurance_level, .apigw.data_sources.presentation.scopes.<credential scope>.derivations[].swamid_highest_assurance_level, <scope>.derivations[].swamid_highest_assurance_level

swamid_highest_assurance_level primitive. Reduces a multi-valued eduPersonAssurance claim to the strongest recognised SWAMID URI; hard errors if the input is present but no SWAMID URI is recognised.

FieldTypeDescriptionExampleDefaultRequired
inputstringSource claim (string or list of strings).assurance_level-Yes

random​

Path: .apigw.data_sources.datastore.scopes.<credential scope>.derivations[].random, .apigw.data_sources.assertion.scopes.<credential scope>.derivations[].random, .apigw.data_sources.external_api.scopes.<credential scope>.derivations[].random, .apigw.data_sources.presentation.scopes.<credential scope>.derivations[].random, <scope>.derivations[].random

It writes a freshly generated random value to a claim the source data did not supply. The use case is a claim a credential requires but authentication cannot provide - a document identifier that has to be unique across issued credentials being the one this was written for (SUNET/vc#736).

Where the value is generated decides how long it lives, because a derivation runs where its data source runs it:

  • assertion sources (SAML, OIDC) run derivations in the ACS or callback, BEFORE the document is cached, so one value is generated per authentication and every credential issued from that session carries it - including each credential of a batch.
  • other sources run derivations per credential request, so each request mints a new value, and a re-issuance will not match the first.

For an identifier meant to name a credential dataset, the first is what is wanted, which is also the case the issue describes.

Presentation sources are refused at config load. They run derivations twice from the same verified claims, with nothing carried between them - once to build the consent preview and again to build the credential - so a non-deterministic primitive would show the holder one identifier and issue another. Every other primitive is a function of its input and so agrees across both runs. See configuration.checkRandomDerivations.

Nothing here checks that a value has not been issued before. Uniqueness rests on the generator: a version 4 UUID has 122 random bits, and hex and base64url take theirs from crypto/rand. That is the same basis every other identifier in this system uses, and it is a statistical claim rather than an enforced one.

FieldTypeDescriptionExampleDefaultRequired
outputstringTarget claim name. Supports dot-notation claim paths (e.g. "identity.document_id") so this primitive can target the same nested claims that AttributeMapper materialises. There is no Input: this primitive reads nothing.document_id-Yes
formatstringFormat selects the shape of the value: "uuid" (the default), "hex" or "base64url".uuid-No
bytesintHow many random bytes back a "hex" or "base64url" value, between 8 and 64. Ignored for "uuid", whose length the format fixes. Defaults to 16.16-No
overwriteboolOverwrite replaces a value the source data already supplied. False by default, and deliberately: this primitive exists to fill a claim authentication could not provide, and silently replacing a real identifier with a random one is a worse failure than leaving the derivation with nothing to do. Set it only where the claim is meant to be random every time regardless of what arrived.--No

import​

Path: .apigw.data_sources.datastore.import

FieldTypeDescriptionExampleDefaultRequired
file_paths[]stringJSON files to import into the datastore. Each JSON file should contain a map of person IDs to CompleteDocument objects. On every startup each document is imported only if one with the same natural key is not already present; existing documents are left untouched.["./bootstrapping/pid.json", "./bootstrapping/ehic.json"]-Yes
users[]stringUsers limits which person IDs to import. If empty, all persons are imported.["100", "102"]-No
replace_existingboolReplaceExisting makes the import overwrite documents whose natural key is already present with the fixture content. Use it only for shipped, generator-owned fixtures so corrected content (e.g. regenerated validity dates) reaches deployments that already hold the previous version. Leave it false (the default) for operator-edited data, which keeps the insert-only behaviour so existing documents are never overwritten.false-No

assertion​

Path: .apigw.data_sources.assertion

FieldTypeDescriptionExampleDefaultRequired
scopesobjectCredential scope names to their assertion configuration--No

scopes entry​

Path: .apigw.data_sources.assertion.scopes.<credential scope>

The data comes directly from the SAML attributes or OIDC claims.

FieldTypeDescriptionExampleDefaultRequired
auth_providerstringAuth provider for this credential type (saml or oidc)--Yes
oidc_request_paramsobjectAdditional parameters to include in the OIDC authorization request. Used to pass per-request values to the OP - see OIDCRequestParams for where those values come from, and for why they are not a statement about the authentic source. Only meaningful when auth_provider is oidc - there is no authorization request to add parameters to otherwise - and rejected at startup on a scope with any other provider. See validateOIDCOnlyScopeFields.--No
issuance_policyobjectSPOCP rules that must be satisfied by the OIDC claims for credential issuance. If configured, a SPOCP query is built from the returned claims and evaluated against these rules. A query that does not match any rule results in a hard deny. Evaluated in the OIDC callback and nowhere else, so it is rejected at startup on a scope whose auth_provider is not oidc. Accepting it there would be the worst outcome available for a security control: the configuration reads as a gate, validates, starts, and issues every credential through the SAML or pre-authorized path without ever consulting it. See validateOIDCOnlyScopeFields.--No
defaultsobjectClaim values injected into the assertion document for credential-level fields the authentication assertion cannot supply (e.g. issuing_authority, issuing_country, date_of_expiry). Merged after attribute_mapping — real attributes always win.--No
expiry_durationstringExpiryDuration, if set, computes date_of_expiry at issuance time as now+duration (formatted as ISO YYYY-MM-DD) and overrides any static date_of_expiry in Defaults. Prevents freshly issued credentials from shipping pre-expired when a static date is left un-rotated. Uses Go duration syntax; example: "8760h" for one year."8760h"-No
derivationsarrayGeneric post-verification steps that compute additional claims from the assertion (see credential.ApplyDerivations).--No

external_api​

Path: .apigw.data_sources.external_api

FieldTypeDescriptionExampleDefaultRequired
scopesobjectCredential scope names to their external API configuration--No

scopes entry​

Path: .apigw.data_sources.external_api.scopes.<credential scope>

FieldTypeDescriptionExampleDefaultRequired
remotestringName of a remote defined in Remotes--Yes
auth_providerstringAuth provider to identify the user (saml or oidc)--Yes
attribute_mappingobjectHow to map API response data to credential claims--No
oidc_request_paramsobjectAdditional parameters to include in the OIDC authorization request. Used to pass per-request values to the OP - see OIDCRequestParams for where those values come from, and for why they are not a statement about the authentic source. Only meaningful when auth_provider is oidc - there is no authorization request to add parameters to otherwise - and rejected at startup on a scope with any other provider. See validateOIDCOnlyScopeFields.--No
issuance_policyobjectSPOCP rules that must be satisfied by the OIDC claims for credential issuance. If configured, a SPOCP query is built from the returned claims and evaluated against these rules. A query that does not match any rule results in a hard deny. Evaluated in the OIDC callback and nowhere else, so it is rejected at startup on a scope whose auth_provider is not oidc. Accepting it there would be the worst outcome available for a security control: the configuration reads as a gate, validates, starts, and issues every credential through the SAML or pre-authorized path without ever consulting it. See validateOIDCOnlyScopeFields.--No
derivationsarrayGeneric post-verification steps that compute additional claims from the API response (see credential.ApplyDerivations).--No

attribute_mapping entry​

Path: .apigw.data_sources.external_api.scopes.<credential scope>.attribute_mapping.<attribute>, .apigw.auth_providers.saml.attribute_mapping.<attribute>, .apigw.auth_providers.oidc.attribute_mapping.<attribute>

Generic across protocols (SAML, OIDC, etc.) - uses protocol-specific identifiers as keys. AttributeConfig is a pure rename + presence step. Any value transformation (canonicalisation, case folding, date reformatting, etc.) is expressed as a derivation on the target scope; see the Derivation Primitives catalog (pkg/credential/primitives).

FieldTypeDescriptionExampleDefaultRequired
claimstringTarget claim name (supports dot-notation for nesting)"identity.given_name"-Yes
requiredboolRequired indicates if this attribute must be present in the assertion/response-falseNo
defaultstringOptional default value if attribute is missing--No
as_arrayboolAsArray wraps a scalar value in a single-element array before setting the claim. No-op when the value is already a slice (e.g. multi-valued OIDC claim).--No

presentation​

Path: .apigw.data_sources.presentation

FieldTypeDescriptionExampleDefaultRequired
scopesobjectCredential scope names to their presentation configuration.--No

scopes entry​

Path: .apigw.data_sources.presentation.scopes.<credential scope>

another credential presented by the wallet via OpenID4VP during OpenID4VCI.

FieldTypeDescriptionExampleDefaultRequired
from_scopestringFromScope names the credential scope the wallet must present (e.g. "eduid"). The presented credential is verified against the issuer trust chain before its claims are consumed."eduid"-Yes
auth_providerstringFixed to "openid4vp" for now; kept as a field for symmetry with the other data sources and so future providers can be added without a config-shape change.-openid4vpNo
required_claimsobjectA claim path on the presented credential to an allow-list of exact-match values. Empty list = presence-only (any value passes). Populated list = the claim's value must equal one of the listed strings (or, when the claim is an array, at least one array element must match). Every key must be present on the presented credential's verified claims; missing keys fail issuance.--Yes
defaultsobjectClaim values injected into the derived credential document for fields the presented credential does not carry (e.g. issuing_authority, issuing_country).--No
expiry_durationstringExpiryDuration, if set, computes date_of_expiry at issuance time as now+duration (formatted as ISO YYYY-MM-DD). Same semantics as AssertionScope.ExpiryDuration."8760h"-No
derivationsarrayGeneric post-verification steps that compute additional claims from the presented credential's own claims (see credential.ApplyDerivations).--No

auth_providers​

Path: .apigw.auth_providers

FieldTypeDescriptionExampleDefaultRequired
samlobjectThe SAML SP auth provider--No
oidcobjectThe OIDC RP auth provider--No
preauthobjectThe pre-authorized credential offer flow (data_sources scopes with auth_provider: preauth).--No

saml​

Path: .apigw.auth_providers.saml

Constraint (mdq_server, static_idp_metadata): Exactly one of mdq_server or static_idp_metadata must be set when enable is true. Mutual exclusivity is enforced by field tags.

FieldTypeDescriptionExampleDefaultRequired
enableboolSAML support (default: false)-falseNo
entity_idstringSAML SP entity identifier (typically the metadata URL)"https://issuer.sunet.se/saml/metadata"-Yes (if enabled)
metadata_urlstringPublic URL where SP metadata is served (optional, auto-generated if empty)--No
mdq_serverstringBase URL for MDQ (Metadata Query Protocol) server (must end with /)"https://md.sunet.se/entities/"-No (mutually exclusive with static_idp_metadata)
static_idp_metadataobjectA single static IdP as alternative to MDQ--No (mutually exclusive with mdq_server)
certificate_pathstringPath to X.509 certificate for SAML signing/encryption TODO(pki): Migrate to pki.KeyConfig for consistency with other services and to enable HSM-backed SAML signing keys in the future.--Yes (if enabled)
private_key_pathstringPath to private key for SAML signing/encryption TODO(pki): See CertificatePath TODO — both fields would be replaced by a single KeyConfig.--Yes (if enabled)
acs_endpointstringAssertion Consumer Service URL where IdP sends SAML responses"https://issuer.sunet.se/saml/acs"-Yes (if enabled)
session_durationintMaximum time in seconds an in-flight SAML authentication flow (AuthnRequest → Response) may remain active before it expires-300No
attribute_mappingobjectAttributeMapping normalizes provider-specific attribute names (e.g. SAML OIDs) to canonical claim names. Applied to ALL attributes in the assertion. Which normalized attributes are used depends on the data source: - assertion: VCTM determines which go into the credential - datastore: auth_claims determines which are used for DB identity lookup--Yes (if enabled)
metadata_signing_cert_pathstringPath to the X.509 certificate used to verify metadata signatures. When set, all fetched metadata (MDQ and static) must carry a valid XML signature from this certificate.--No
allow_unsigned_metadataboolAllowUnsignedMetadata permits MDQ/URL metadata without signature verification. This is INSECURE (MITM → fake IdP) and should only be used in development. When false (default), MDQ and URL metadata sources require MetadataSigningCertPath. Local metadata files are allowed unsigned regardless (with a startup warning).-falseNo
metadata_cache_ttlintMetadataCacheTTL in seconds (default: 3600) - how long to cache IdP metadata from MDQ--No
metadataobjectMetadata carries the federation-facing description of this SP that goes into the published SAML metadata (mdui:UIInfo, md:Organization, md:ContactPerson). Required for SWAMID acceptance; harmless when empty.--No

static_idp_metadata​

Path: .apigw.auth_providers.saml.static_idp_metadata

FieldTypeDescriptionExampleDefaultRequired
entity_idstringIdP entity identifier--Yes
metadata_pathstringFile path to IdP metadata XML--Yes (if metadata_url not set; mutually exclusive)
metadata_urlstringHTTP(S) URL to fetch IdP metadata from (mutually exclusive with MetadataPath)--No

metadata​

Path: .apigw.auth_providers.saml.metadata

Constraint (contact_persons): When contact_persons is set, SWAMID Tech 6.1.4 requires at least one 'technical' and one 'administrative' contact. Other types (support, billing, other) may appear alongside them.

These descriptors are not populated by crewjam/saml by default; the samlsp service serializes them into the published SP metadata XML.

FieldTypeDescriptionExampleDefaultRequired
organizationobjectOrganization becomes md:Organization on the EntityDescriptor.--No
contact_personsarrayContactPersons becomes one or more md:ContactPerson on the EntityDescriptor. SWAMID requires at least types "technical" and "administrative".--No
ui_infoobjectUIInfo becomes mdui:UIInfo inside md:Extensions on the SPSSODescriptor.--No

organization​

Path: .apigw.auth_providers.saml.metadata.organization

A single language tag applies to all three localized fields; SWAMID Tech 6.1.4 mandates at least "en".

FieldTypeDescriptionExampleDefaultRequired
namestringName--Yes
display_namestringDisplay Name--Yes
urlstringURL--Yes
langstringLang-enNo

contact_persons entry​

Path: .apigw.auth_providers.saml.metadata.contact_persons[]

FieldTypeDescriptionExampleDefaultRequired
typestringType--Yes
companystringCompany--No
given_namestringGiven Name--No
sur_namestringSur Name--No
emailstringEmail--No
phonestringPhone--No

ui_info​

Path: .apigw.auth_providers.saml.metadata.ui_info

A single language tag applies to all localized child elements.

FieldTypeDescriptionExampleDefaultRequired
display_namestringDisplay Name--Yes
descriptionstringDescription--Yes
information_urlstringInformation URL--Yes
privacy_statement_urlstringPrivacy Statement URL--Yes
logoobjectLogo--No
langstringLang-enNo

Path: .apigw.auth_providers.saml.metadata.ui_info.logo

FieldTypeDescriptionExampleDefaultRequired
urlstringURL--Yes
heightintHeight--Yes
widthintWidth--Yes

oidc​

Path: .apigw.auth_providers.oidc

Constraint (scopes): The 'openid' scope is mandatory when OIDC RP is enabled.

FieldTypeDescriptionExampleDefaultRequired
enableboolOIDC RP support (default: false)-falseNo
registrationobjectHow the client obtains credentials from the OIDC Provider. Exactly one of preconfigured or dynamic must be set: - preconfigured: pre-registered client_id and client_secret - dynamic: RFC 7591 dynamic client registration (credentials obtained at startup)--Yes (if enabled)
redirect_uristringCallback URL where the OIDC Provider sends the authorization response"https://issuer.sunet.se/oidcrp/callback"-Yes (if enabled)
issuer_urlstringOIDC Provider's issuer URL for discovery Used for .well-known/openid-configuration discovery"https://accounts.google.com"-Yes (if enabled)
scopes[]stringOAuth2/OIDC scopes to request-["openid", "profile", "email"]No
session_durationintMaximum time in seconds an in-flight OIDC authorization flow (state, nonce, PKCE verifier) may remain active before it expires-300No
client_namestringHuman-readable name for the OIDC client, shown during dynamic registration or consent--No
client_uristringURL to the client's homepage, used for display during consent--No
logo_uristringURL to the client's logo image, shown during consent screens--No
contacts[]stringList of email addresses for responsible parties of this client--No
tos_uristringURL to the client's Terms of Service document--No
policy_uristringURL to the client's Privacy Policy document--No
attribute_mappingobjectAttributeMapping normalizes OIDC claim names to canonical claim names. Optional: when omitted, OIDC claims pass through as-is (standard names already match). Which normalized attributes are used depends on the data source: - assertion: VCTM determines which go into the credential - datastore: auth_claims determines which are used for DB identity lookup--No

registration​

Path: .apigw.auth_providers.oidc.registration

FieldTypeDescriptionExampleDefaultRequired
preconfiguredobjectPreconfigured uses pre-registered client credentials. Set this when the client is already registered with the OIDC Provider.--Yes (if dynamic not set; mutually exclusive)
dynamicobjectDynamic uses RFC 7591 dynamic client registration. Set this when the client should register itself at startup.--Yes (if preconfigured not set; mutually exclusive)

preconfigured​

Path: .apigw.auth_providers.oidc.registration.preconfigured

FieldTypeDescriptionExampleDefaultRequired
enableboolEnable activates preconfigured client credentials--No
client_idstringOIDC client identifier--Yes (if enabled)
client_secretstringOIDC client secret--Yes (if enabled)

dynamic​

Path: .apigw.auth_providers.oidc.registration.dynamic

When set, client credentials are obtained automatically at startup and persisted in the database.

FieldTypeDescriptionExampleDefaultRequired
enableboolEnable activates dynamic client registration--No
initial_access_tokenstringBearer token for registration Required by some OIDC Providers (e.g., Keycloak)--Yes (if enabled)

preauth​

Path: .apigw.auth_providers.preauth

FieldTypeDescriptionExampleDefaultRequired
enable_pinboolEnablePIN, when true, generates a numeric transaction code (PIN) for each pre-authorized credential offer created via /api/v1/datastore/preauth_offer. The wallet must include the PIN in the token request. Default: false.-falseNo

remotes entry​

Path: .apigw.remotes.<remote name>

FieldTypeDescriptionExampleDefaultRequired
typestring (eduapi|ooapi|oeapi)API protocol type--Yes
base_urlstringBase URL of the API endpoint"https://api.ladok.se/eduapi"-Yes
token_urlstringOAuth 2.0 token endpoint for Client Credentials Grant"https://api.ladok.se/oauth2/token"-Yes
client_idstringOAuth 2.0 client identifier--Yes
client_secretstringOAuth 2.0 client secret--Yes
scopes[]stringOAuth 2.0 scopes to request--No
timeoutdurationHTTP client timeout-10sNo

delivery​

Path: .apigw.delivery

FieldTypeDescriptionExampleDefaultRequired
openid4vciobjectThe OpenID4VCI Authorization Server for wallet credential issuance--Yes
credential_offersobjectCredential offer wallet configurations--Yes
emit_credential_metadata_on_responseboolEmitCredentialMetadataOnResponse adds the issued Credential's credential_metadata to the Credential Response, as OpenID4VCI 1.1 permits (WE BUILD CS-01 §7.5, a MAY on both sides). Off by default for size, not for interop: it repeats the scope's issuer metadata on every issuance, and a 1.0 wallet ignores an unrecognised member, so emitting it cannot break one. That is also why this is NOT in OpenID4VCICompat - nothing about it is a compatibility switch, and it needs no flipping when 1.1 is Final. Worth having because of the precedence 1.1 defines: a wallet prefers what arrives here over the Credential Format's own mechanism, and both over the published Issuer Metadata. An issuer that wants to say something about THIS credential has no other way to.-falseNo
openid4vci_compatobjectOpt-in switches for wallets that do not encode OpenID4VCI 1.0 requests the way the specification does.--No
interactive_authorizationobjectOpenID4VCI 1.1's Interactive Authorization. Absent means the mechanism is not offered at all.--No

openid4vci​

Path: .apigw.delivery.openid4vci

FieldTypeDescriptionExampleDefaultRequired
token_endpointstringOAuth2 token endpoint URL"https://verifier.sunet.se/token"-Yes
clientsobjectOAuth2 client configurations--Yes
allow_unverified_client_assertionboolAccepting client_assertion (private_key_jwt) WITHOUT signature verification. This is INSECURE and only intended for conformance testing environments. When false (default), client_assertion is rejected. TODO(security): Remove this flag once full RFC 7523 verification is implemented.-falseNo
grant_types[]stringList of grant types this issuer supports. Supported values: authorization_code, urn:ietf:params:oauth:grant-type:pre-authorized_code, refresh_token-["authorization_code", "urn:ietf:params:oauth:grant-type:pre-authorized_code"]No
refresh_token_durationintRefresh token duration in seconds. Only applicable when grant_types includes "refresh_token".-86400No

clients entry​

Path: .apigw.delivery.openid4vci.clients.<client id>, .verifier.inbound.openid4vp.clients.<client id>

FieldTypeDescriptionExampleDefaultRequired
typestringClient type per RFC 6749 Section 2.1 ("public" or "confidential"). Defaults to "public" since registered clients are wallets (native/web apps) that cannot securely store credentials and rely on PKCE instead.-publicNo
redirect_uri[]stringList of allowed redirect URIs for the client. Accepts either a single string or an array of strings in YAML/JSON."https://example.com/callback"-Yes
scopes[]stringList of OAuth2 scopes allowed for the client--Yes
jwks_uristringURL to the client's JWKS for verifying client_assertion signatures (RFC 7523). Required for confidential clients using private_key_jwt authentication.--Yes (if type is "confidential")

credential_offers​

Path: .apigw.delivery.credential_offers

FieldTypeDescriptionExampleDefaultRequired
issuer_urlstringIssuer IDENTIFIER published as credential_issuer inside each credential offer. It MUST be byte-identical to apigw.public_url - a trailing slash on one of them is a mismatch, because both are published verbatim - and config load refuses anything else: issuer metadata is generated from public_url and declares that as its own credential_issuer, so a wallet resolving an offer - inserting the well-known suffix at the credential_issuer's host root per RFC 8615, see openid4vci.WellKnownURL - would otherwise reach an origin serving no metadata, or metadata naming a different issuer. It is still not where offers are RETRIEVED from. A by-reference offer (credential_offer_uri) is built from apigw.public_url, because that field is the statement about where this service answers; this one is an identity claim that happens to hold the same string.--Yes
walletsobjectWallet redirect configurations--Yes

wallets entry​

Path: .apigw.delivery.credential_offers.wallets.<wallet name>

FieldTypeDescriptionExampleDefaultRequired
labelstringDisplay label for the wallet--Yes
redirect_uristringWallet redirect URI"eudi-wallet://credential-offer"-Yes

openid4vci_compat​

Path: .apigw.delivery.openid4vci_compat

Two kinds live here, and they point opposite ways. One kind accepts something a non-conformant WALLET sends that the specification does not allow. The other emits something a NEWER specification defines that the published one does not. What they have in common is the default: every field is false, and false is what the currently published specification says, so a deployment that sets none of them is a plain OpenID4VCI 1.0 deployment.

A field of the second kind names the version that would make it unnecessary, and is deleted when that version is published.

FieldTypeDescriptionExampleDefaultRequired
accept_non_standard_authorization_details_arraysboolAcceptNonStandardAuthorizationDetailsArrays accepts two further encodings of authorization_details in a query string or form body, alongside the single URL-encoded JSON array that OpenID4VCI 1.0 §5.1.1 and RFC 9396 §2 define and that is always accepted: repeated key: authorization_details={..}&authorization_details={..} bracketed key: authorization_details[]={..}&authorization_details[]={..} Off by default, and deliberately. RFC 6749 §3.1 says a request parameter MUST NOT be included more than once, so the repeated form is a protocol violation rather than a dialect: once it is accepted, this server and anything in front of it (a reverse proxy, a WAF) can read different authorization_details out of one request. Turn this on only for a deployment that has to reach a wallet which cannot send the specified encoding, and expect to turn it off again once it can. See SUNET/vc#710 for the interop reports that motivated it.-falseNo
emit_invalid_tx_code_errorboolEmitInvalidTXCodeError returns the OpenID4VCI 1.1 invalid_tx_code error for a wrong Transaction Code, instead of 1.0's invalid_grant. Off by default because 1.1 is not published: it is an editor's draft, adopted pre-flight by WE BUILD CS-01 §7.4. Turning it on changes what an unmodified wallet receives on a mistyped PIN, so it is a deliberate, announced change rather than a silent one - which is also why this is the only 1.1 item in this struct that needed a switch at all. The rest are additive. Flip it to true, and delete the switch, once OpenID4VCI 1.1 is Final. Note what it does NOT change. invalid_grant still means the Pre-Authorized Code itself is finished - unknown, expired, already redeemed, or invalidated by too many failed attempts - and a wallet relies on exactly that split to tell a remaining attempt from an exhausted offer.-falseNo

interactive_authorization​

Path: .apigw.delivery.interactive_authorization

The mechanism lets an Issuer qualify the Holder before issuing, and name what that takes, instead of sending the wallet to a browser and hoping the browser leg establishes enough. The two interactions differ in exactly that respect:

  • openid4vp_presentation is browserless. The wallet presents a Credential over the challenge endpoint itself and no browser is involved at any point.
  • auth_via_web is not. It hands the wallet a request_uri to open in a browser, and the browser leg - consent, the IdP, the redirect back - is this server's ordinary one. What Interactive Authorization adds is that the wallet was TOLD a browser step is required, rather than discovering it by being redirected.

It is OPTIONAL in the specification and in WE BUILD CS-01 §7.9, and it is off here until Enable is set.

Most of the fields below exist because OpenID4VCI 1.1 is an editor's draft that contradicts itself, not because an operator should expect to tune them. Two contradictions are recorded as CS-01 NOTES CS01_07 and CS01_08 and reported upstream as openid/OpenID4VCI#811 and #812. Keeping the affected strings in configuration means a resolution either way costs a config change rather than a release, which is the whole reason this profile can be adopted pre-flight at all. Leave them alone unless testing against a counterparty that reads the draft the other way.

FieldTypeDescriptionExampleDefaultRequired
enableboolEnable exposes the Authorization Challenge Endpoint and advertises it in Authorization Server metadata. Its presence there is what tells a wallet the mechanism is available.-falseNo
require_interactive_authorizationboolRequireInteractiveAuthorization advertises that this server accepts ONLY Interactive Authorization for issuance. It excludes every wallet that does not implement the mechanism, so it must not be set in a shared deployment while that is the common case (CS-01 §7.7). Setting it without Enable is refused at config load: the specification forbids the parameter without the endpoint, and advertising a requirement for a mechanism this server does not expose is unusable rather than merely wrong.-falseNo
interaction_type_prefixstringNamespace of the interaction type URNs. CS01_07: the 1.1 change log records a rename to "iae", which its own normative text does not apply.-urn:openid:dcp:ia:No
binding_prefixstringBindingPrefix prefixes the value a presentation is bound to, so that the audience of an Interactive Authorization presentation cannot be confused with an ordinary Verifier's. CS01_07: the change log says "iae:", the normative text says "ia:".-ia:No
response_mode_unencryptedstringResponseModeUnencrypted and ResponseModeEncrypted name the two response modes an Interactive Authorization request may ask for. Only the encrypted one is ever asked for - see InteractiveAuthorization.ResponseMode for why. Its unencrypted counterpart is configured beside it so that both spellings move together if the working group renames them. CS01_07: the change log says "iae_post".-ia_postNo
response_mode_encryptedstringResponse Mode Encrypted-ia_post.jwtNo
metadata_endpoint_parameterstringMetadataEndpointParameter and MetadataRequireParameter name the two Authorization Server metadata members. CS01_07 lists these alongside the rest, and they are the awkward ones: the metadata document is SIGNED, so renaming a member after marshalling would leave the served JSON and the signed claims disagreeing, and every verifier checking the JWT would fail. Both documents are therefore produced from one place that applies these names - see oauth2.AuthorizationServerMetadata.WithInteractiveAuthorizationNames.-authorization_challenge_endpointNo
metadata_require_parameterstringMetadata Require Parameter-require_interactive_authorizationNo
mdoc_handover_labelstringFixed identifier inside the mdoc SessionTranscript handover for this flow. CS01_07 again, and from the other side: the normative mdoc section spells this one "IAE" while every other normative section says "ia". Whatever the working group settles on, this is the string that has to move with it - it is hashed into the transcript, so a mismatch fails DeviceAuth with nothing to point at.-OpenID4VCIIAEHandoverNo
sdjwt_binding_scopestringSDJWTBindingScope decides what an SD-JWT VC presentation's Key Binding JWT audience is bound to: the derived Origin of the Authorization Challenge Endpoint, or the endpoint URL. CS01_08: the 1.1 text says derived Origin in the normative sentence and shows the full endpoint URL in that sentence's own example, and the other three credential formats all say endpoint URL. CS-01 pins "origin" for testing, following the normative words over the example. "endpoint" exists so a run against a counterparty that read it the other way is a config change.-originNo
auth_session_ttl_secondsintAuthSessionTTLSeconds bounds how long one Interactive Authorization exchange may take. Capped at MaxAuthSessionTTLSeconds, because the exchange cannot outlive the authorization context and ephemeral key it runs on. Configuring more would advertise a longer exchange than this server can hold open, and the wallet would come back to find its auth_session gone with nothing having gone wrong.-300No
interaction_types_supported[]stringInteractionTypesSupported names the interaction types this server can require, as suffixes joined to InteractionTypePrefix. Empty means every type the build implements, which is the right default: what this server can actually do is a property of the code, not of configuration. Set it to narrow that - to run an interop test against one interaction, or to stop offering one whose counterparty has a known problem. Entries are the two SUFFIXES this build implements, not full URNs: the namespace comes from InteractionTypePrefix, so writing one here would never match. Restricted to those two because this list can only ever narrow what the code can do - a typo or an unimplemented name adds nothing, and silently leaves the affected scope unservable at an endpoint the metadata still advertises.--No

issuer_metadata​

Path: .apigw.issuer_metadata

FieldTypeDescriptionExampleDefaultRequired
registration_certificateobjectRegistrationCertificate optionally points at a Registrar-issued WRPRC to advertise in the issuer_info metadata parameter, attesting what this Credential Issuer is registered to provide. Under CIR (EU) 2025/848 a PID or attestation provider is a registered wallet-relying party in its own right, so the document is the same kind a verifier presents in verifier_info - see Verifier.RegistrationCertificate. The signature and the issuing chain are verified at startup, exactly as on the verifier. The ARF RPRC_16 binding is not: it compares this document against the presenting party's access certificate, which the issuer service holds rather than the apigw, and the rule is not settled enough to justify a cross-service check. A correctly-signed certificate naming a different organisation would therefore be accepted, so configure one that describes this deployment. Left unset by deployments outside an ARF trust framework.--No
authorization_servers[]stringThe authorization server URLs--No
deferred_credential_endpointstringDeferred credential endpoint--No
notification_endpointstringNotification endpoint--No
cryptographic_binding_methods_supported[]stringThe supported binding methods--No
credential_signing_alg_values_supported[]stringThe supported signing algorithms--No
proof_signing_alg_values_supported[]stringThe supported proof algorithms--No
proof_types_supported[]stringProofTypesSupported narrows which key proof types this issuer advertises in credential_configurations_supported. Empty (the default) advertises every proof type this issuer actually implements: "jwt" and "attestation". Both are real - attestation proofs are signature-verified against the x5c in their own header, see openid4vci.ProofAttestation.Verify - so advertising both is a truthful statement of capability, which is what OpenID4VCI 1.0 12.2.4 asks of this parameter. Narrow it only for a wallet that cannot cope with a proof type it does not have to use. The German EUDI Wallet was one such in September 2026 (SUNET/vc#671): its own attestation support was incomplete and advertising "attestation" made issuance fail there. Set ["jwt"] for such a deployment, and remove the setting once the wallet catches up.--No
credential_response_encryptionobjectNo longer written by hand. It used to let an operator state the algorithms this issuer would accept for an encrypted Credential Response - which nothing implemented, so the metadata asserted a capability the Credential Endpoint did not have. Both encryption objects are now derived from CredentialEncryption below, from keys that have actually been loaded, so the metadata and the endpoint cannot say different things. Config load refuses a deployment that still sets this, rather than ignoring it: silently dropping an operator's encryption settings is exactly the failure this replaces. See SUNET/vc#707.--No
credential_encryptionobjectJWE encryption of Credential and Deferred Credential messages.--No
batch_credential_issuanceobjectBatch issuance configuration--No
displayarrayDisplay metadata--No
mdoc_iacas_uristringURL where IACA certificates are published for mDOC verification. When configured, this is included in .well-known/openid-credential-issuer metadata so verifiers can dynamically discover trust anchors for ISO 18013-5 credentials.--No
include_signed_metadata_in_jsonboolIncludeSignedMetadataInJSON re-adds the draft-era signed_metadata member to the unsigned JSON metadata document. Off by default, and deliberately. OpenID4VCI 1.0 §12.2.2 returns the signed form as the whole response - a JWT served as application/jwt, selected by the wallet's Accept header - and §12.2.4 does not define a signed_metadata parameter at all, so carrying one inside the JSON document is a draft-era shape rather than a 1.0 one. The signed document is still served, at the same URL, to a wallet that asks for application/jwt. Turn this on only for a deployment that has to reach a wallet which still reads signed_metadata out of the JSON, and expect to turn it off again once it can send an Accept header instead. See SUNET/vc#708.-falseNo

registration_certificate​

Path: .apigw.issuer_metadata.registration_certificate, .verifier.registration_certificate

vc does not issue these. A national Registrar in the eIDAS ecosystem issues a WRPRC out of band, attesting what the party is registered to do; this configuration points at the resulting file.

The same document travels in both directions, which is why one type serves both:

  • a verifier conveys it in the OpenID4VP verifier_info request parameter, attesting what it is registered to request;
  • a credential issuer conveys it in the OpenID4VCI issuer_info metadata parameter, attesting what it is registered to provide.

Either way it informs the wallet's consent dialog and policy checks.

FieldTypeDescriptionExampleDefaultRequired
file_pathstringPath to the Registrar-issued WRPRC, a compact JWT with media type "rc-wrp+jwt"."/etc/vc/registration-certificate.jwt"-No
formatstringFormat identifier advertised alongside the certificate in the verifier_info parameter. Defaults to "rc-wrp+jwt"; override only for an ecosystem that has profiled a different identifier for the same document."rc-wrp+jwt"-No
trusted_roots_pathstringTrustedRootsPath optionally points at a PEM bundle of the Registrar's root certificates. When set, the certificate's own x5c chain is evaluated against it at startup. When unset, the document is still signature-checked and parsed, but nothing establishes that its issuer is a Registrar we accept. The ARF RPRC_16 binding needs both this and an access certificate: it compares the two documents' organisation identifiers, so it is skipped when key_config supplies no certificate chain to compare against.--No
revocationobjectChecking this certificate against the Token Status List named in its own status claim. A WRPRC that carries no status reference cannot be checked at all, which reads as "could not determine" rather than as "not revoked".--No

revocation​

Path: .apigw.issuer_metadata.registration_certificate.revocation, .issuer.access_certificate.revocation, .verifier.registration_certificate.revocation

This is operational hygiene rather than a security control. An operator who wants to present a revoked certificate can switch it off, and a wallet checks independently regardless. What it buys is finding out ourselves instead of finding out from users, because a revoked certificate means wallets reject us.

This type is the policy half only: it decides what a check result means. Nothing here runs a check. Deciding when to check - at startup, and on what schedule after that - belongs to each service's lifecycle, and that wiring is not in place yet, so configuring this today records the intended policy without any check being performed.

FieldTypeDescriptionExampleDefaultRequired
modestringOne of "off", "warn" or "fail". warn is the default, and deliberately so. An unreachable CRL or status list is evidence of nothing: not that the certificate is revoked, and not that it is valid. Reading it as revoked would turn a Registrar outage into ours; reading it as valid would make a fetch failure a silent pass. It is reported as undetermined and warn proceeds anyway, while fail is available for deployments that would rather stop than carry on without an answer."warn"warnNo
refresh_intervaldurationHow often the check should repeat after startup. Revocation is a fact that changes while a process runs, so a boot-time-only check goes stale. Zero disables rechecking. No scheduler reads this yet - see RevocationCheck. It is the interval the service lifecycle will use once the checks are wired in."1h"1hNo

credential_response_encryption​

Path: .apigw.issuer_metadata.credential_response_encryption

FieldTypeDescriptionExampleDefaultRequired
alg_values_supported[]stringAlgValuesSupported: REQUIRED. Array containing a list of the JWE [RFC7516] encryption algorithms (alg values) [RFC7518] supported by the Credential and Batch Credential Endpoint to encode the Credential or Batch Credential Response in a JWT [RFC7519].--Yes
enc_values_supported[]stringEncValuesSupported: REQUIRED. Array containing a list of the JWE [RFC7516] encryption algorithms (enc values) [RFC7518] supported by the Credential and Batch Credential Endpoint to encode the Credential or Batch Credential Response in a JWT [RFC7519].--Yes
zip_values_supported[]stringZipValuesSupported: OPTIONAL. A non-empty array containing a list of the JWE [RFC7516] compression algorithms (zip values) [RFC7518] supported by the Credential Endpoint to compress the Credential Response prior to encryption. If absent then compression is not supported.--No
encryption_requiredboolEncryptionRequired: REQUIRED. Boolean value specifying whether the Credential Issuer requires the additional encryption on top of TLS for the Credential Response. If the value is true, the Credential Issuer requires encryption for every Credential Response and therefore the Wallet MUST provide encryption keys in the Credential Request. If the value is false, the Wallet MAY chose whether it provides encryption keys or not.--No

credential_encryption​

Path: .apigw.issuer_metadata.credential_encryption

Per OpenID4VCI 1.0 §8.3 and §12.2.4, for both the Credential and the Deferred Credential messages.

With no key configured, neither credential_request_encryption nor credential_response_encryption appears in the issuer metadata and the Credential Endpoint refuses an encrypted request - an issuer that cannot do this says so by staying silent, rather than by advertising it and failing later.

FieldTypeDescriptionExampleDefaultRequired
keysarrayThis Credential Issuer's key-agreement keys. Their public halves are published in credential_request_encryption.jwks, each with a kid derived as its RFC 7638 thumbprint, so rotation is adding a key, waiting for cached metadata to expire, and removing the old one. Each key is a P-256 key held either in a PEM file or in a PKCS#11 token. The type is deliberately narrower than pki.KeyConfig: this is a key-agreement key, not a signing key, so the curve is fixed by the one algorithm pair §8.3 is implemented for here (ECDH-ES+A256KW with A256GCM).--No
request_encryption_requiredboolRequestEncryptionRequired publishes credential_request_encryption.encryption_required. When true, a Credential Request that arrives unencrypted is refused. False by default: turning the key on should not break every wallet that does not do JWE on the same day.-falseNo
response_encryption_requiredboolResponseEncryptionRequired publishes credential_response_encryption.encryption_required. When true, a Credential Request without credential_response_encryption is refused. False by default, for the same reason.-falseNo

keys entry​

Path: .apigw.issuer_metadata.credential_encryption.keys[]

The key is held either in a PEM file or in a PKCS#11 token, and exactly one of private_key_path and pkcs11 must be set. That is checked when the keys are loaded rather than by a struct tag: the constraint is "one of these two", which a tag states as required_without/excluded_with and which the validator then reports in its own words, before the check that can name both settings and say which combination was written.

FieldTypeDescriptionExampleDefaultRequired
private_key_pathstringPath to a PEM file holding an ECDSA P-256 private key."/etc/vc/credential-encryption.pem"-No
pkcs11objectAlternative to private_key_path: the key stays in an HSM, which performs the ECDH-ES key agreement with CKM_ECDH1_DERIVE. The key must be an EC P-256 private key with CKA_DERIVE set; it is found by key_label, and key_id is unused here (it names a JWT kid, and the kid of an encryption key is its RFC 7638 thumbprint). SECURITY: this keeps the long-term private key inside the token, but not the per-request shared secret. The derivation uses CKD_NULL, so the agreed secret Z is read back out of the token and the RFC 7518 §4.6.2 Concat KDF, the AES key unwrap and the content decryption all run in this process. An attacker who can read this process's memory can therefore recover the content encryption key of a request being decrypted - but not the private key, and not any other request's, each of which needs its own agreement through the token. Running the whole unwrap inside the token would need CKD_SHA256_KDF_CONCATENATE with a module-specific encoding of the JWE OtherInfo, which PKCS#11 v2.40 does not standardize. Weigh that against a PEM file on disk, where the long-term key is readable, before choosing either. Not every module will do this: the derived generic secret is created with CKA_EXTRACTABLE true and CKA_SENSITIVE false, and a token configured to refuse extractable keys will refuse the derivation. Neither that nor the CKA_DERIVE the private key needs can be seen from the published metadata, so the service performs one throwaway agreement while loading this key and refuses to start if the token will not do it. The alternative is an issuer that starts, publishes a JWK, and fails every encrypted request built from it.--No

batch_credential_issuance​

Path: .apigw.issuer_metadata.batch_credential_issuance

FieldTypeDescriptionExampleDefaultRequired
batch_sizeintBatchSize: REQUIRED. Integer value specifying the maximum array size for the proofs parameter in a Credential Request.--Yes

display entry​

Path: .apigw.issuer_metadata.display[]

FieldTypeDescriptionExampleDefaultRequired
namestringName: OPTIONAL. String value of a display name for the Credential Issuer.--No
localestringLocale: OPTIONAL. String value that identifies the language of this object represented as a language tag taken from values defined in BCP47 [RFC5646]. There MUST be only one object for each language identifier.--No
logoobjectLogo: OPTIONAL. Object with information about the logo of the Credential Issuer. Below is a non-exhaustive list of parameters that MAY be included:--No

logo​

Path: .apigw.issuer_metadata.display[].logo

FieldTypeDescriptionExampleDefaultRequired
uristringURI: REQUIRED. String value that contains a URI where the Wallet can obtain the logo of the Credential Issuer. The Wallet needs to determine the scheme, since the URI value could use the https: scheme, the data: scheme, etc.--Yes
alt_textstringAltText: OPTIONAL. String value of the alternative text for the logo image.--No

seeds entry​

Path: .apigw.seeds.<seed source name>

The seed itself is never issued, logged or returned: what reaches a credential is a commitment over it. The issuer keeps the ability to reproduce a subject's seed, which is what makes anything derived from it

  • a pseudonym, typically - remappable to a person later.
FieldTypeDescriptionExampleDefaultRequired
modelstringHow a subject's seed comes about. "derived" is the only one: the seed is computed from Secret and the subject identifiers, so nothing is stored and it is recomputable forever."derived"-Yes
secret_pathstringFile holding the derivation secret, base64url-encoded (padding and trailing whitespace are tolerated), whose DECODED value must be at least 32 bytes. Preferred where a file can be mounted, since it keeps the secret out of the rendered config entirely. Base64url rather than raw bytes, matching BBSConfig.SecretKeyPath: 32 raw bytes in this file decode to 24 or fail outright, which is a confusing way to find out the format was not what you assumed. `head -c 32 /dev/urandombasenc --base64urltr -d '='` produces one. THE SECRET IS PERMANENT. Every commitment ever written under it is a function of it, so replacing it gives every subject a new seed and a new pseudonym, and losing it destroys the ability to reproduce any seed this deployment has ever issued over. Back it up; do not rotate it. There is deliberately no key identifier and no rotation mechanism, because having one would suggest otherwise."/etc/vc/seed/issuer.key"
seed_bytesintLength of the seeds this source produces. 0 means 16, which is what the nym_auth rulebook specifies. It is part of the derivation, not just its output size, so changing it changes every seed - the same irreversible act as changing the secret. 16 is also the MINIMUM. The seed is the opening of a published commitment, so a short one is a small search space rather than a short key: at 1 byte there are 256 possible openings and the commitment is trivially opened, however strong the secret is.16-No

issuer_client​

Path: .apigw.issuer_client, .apigw.registry_client, .issuer.registry_client

FieldTypeDescriptionExampleDefaultRequired
addrstringGRPC server address"issuer:8090"-Yes
tlsboolTLS-falseNo
cert_file_pathstringClient certificate for mTLS--No
key_file_pathstringClient private key for mTLS--No
ca_file_pathstringCA certificate to verify the server--No
server_namestringServer name for TLS verification (optional)--No

identity_mapping_import​

Path: .apigw.identity_mapping_import

FieldTypeDescriptionExampleDefaultRequired
file_paths[]stringJSON files containing identity mappings to import. Each JSON file should contain a map of person IDs to arrays of IdentityMapping objects. On every startup each mapping is imported only if it is not already present; existing mappings are left untouched.["./bootstrapping/identity_mappings.json"]-Yes
users[]stringUsers limits which person IDs to import. If empty, all persons are imported.["100", "102"]-No

trust​

Path: .apigw.trust, .verifier.trust

This is used for validating W3C VC Data Integrity proofs and other trust-related operations.

Trust evaluation operates in one of two modes:

  • When PDPURL is configured: "default deny" mode - all trust decisions go through the PDP
  • When PDPURL is empty: "allow all" mode - keys are resolved but always considered trusted
FieldTypeDescriptionExampleDefaultRequired
pdp_urlstringURL of the AuthZEN PDP (Policy Decision Point) service for trust evaluation. When set, operates in "default deny" mode - trust decisions require PDP approval. When empty, operates in "allow all" mode - resolved keys are always considered trusted."https://trust.sunet.se/pdp"-No
local_did_methods[]stringWhich DID methods can be resolved locally without go-trust. Self-contained methods like "did:key" and "did:jwk" are always resolved locally.-["did:key", "did:jwk"]No
trust_policiesobjectPer-role trust evaluation policies. The key is the role (e.g., "issuer", "verifier") and the value contains policy settings.--No
allowed_signature_algorithms[]stringAllowedSignatureAlgorithms restricts which JWT signature algorithms are accepted. If empty, defaults to a secure set: ES256, ES384, ES512, RS256, RS384, RS512, PS256, PS384, PS512, EdDSA. The "none" algorithm is NEVER allowed regardless of configuration.["ES256", "ES384", "ES512", "EdDSA"]-No
wallet_attestationobjectWallet attestation-based client authentication. This is a trust-evaluation mechanism (delegates to the PDP above), so it lives here rather than under delivery.openid4vci.--No

trust_policies entry​

Path: .apigw.trust.trust_policies.<role>, .verifier.trust.trust_policies.<role>

FieldTypeDescriptionExampleDefaultRequired
trust_frameworks[]stringThe accepted trust frameworks for this role.["did:web", "did:ebsi", "etsi-tl", "openid-federation", "x509"]-No
trust_anchors[]stringTrusted root entities for this role. Format depends on the trust framework (e.g., DID for did:web, federation entity for OpenID Fed).--No
require_revocation_checkboolRequireRevocationCheck enforces revocation status checking for this role. Default: false-falseNo

wallet_attestation​

Path: .apigw.trust.wallet_attestation, .verifier.trust.wallet_attestation

FieldTypeDescriptionExampleDefaultRequired
enabledboolWallet attestation-based authentication. When true and PDPURL is configured, wallets can authenticate using a provider-signed attestation JWT instead of pre-registration in Clients. The PDP validates the wallet provider against configured trust lists/federation. PKCE remains mandatory as the primary code-binding mechanism.-falseNo
policyobjectSPOCP-based authorization for wallet attestation. When configured, after the PDP validates the wallet provider, the SPOCP engine checks whether the attestation tier (attestation_source) is authorized for the requested scope. When empty, all trusted wallets are authorized (default open).--No
modestringMode restricts which WIA trust model this deployment accepts, matching the same "etsi"/"ietf" terminology used by go-wallet-backend's WIAConfig.Mode: - "etsi": require x5c (EC TS03 v1.5.2 / ETSI TS 119 472-3 model, identity verified against the Trusted List for Wallet Providers). A WIA without x5c is rejected before signature verification. - "ietf": require iss + no x5c (the plain IETF draft-ietf-oauth-attestation-based-client-auth format, resolved via JWKS discovery — no ARF/ETSI counterpart). A WIA with x5c is rejected before signature verification. - "" (default): accept either format, as determined by whether the WIA carries an x5c header or an iss claim — preserves pre-Mode behavior for deployments that haven't opted into pinning one trust model. Any other value is treated the same as "" (a warning is logged, not a startup failure — this package has no config.Validate() convention to hard-fail against). Pinning this matters beyond documentation: without it, an operator expecting only ARF-conformant ("etsi") wallets would still silently accept an iss/JWKS-based ("ietf") WIA from a misconfigured or malicious wallet, trusting a JWKS discovery chain instead of the Trusted List for Wallet Providers PKI anchor.--No

policy​

Path: .apigw.trust.wallet_attestation.policy, .verifier.trust.wallet_attestation.policy

Each rule is an S-expression of the form:

(wallet (attestation_source <tier>)(scope <scope>)(issuer <provider>))

Use * as wildcard. When no rules are configured, any trusted wallet is authorized. Example rules:

(wallet (attestation_source ios_app_attest)(scope pid)(issuer *)) — allow iOS Tier 4+ for PID (wallet (attestation_source android_play_integrity)(scope pid)(issuer *)) — allow Android Tier 4+ for PID (wallet (attestation_source *)(scope ehic)(issuer *)) — allow any tier for EHIC

FieldTypeDescriptionExampleDefaultRequired
rules[]stringInline SPOCP rules.--No
rules_filestringPath to a file containing SPOCP rules (one per line, # comments).--No

federation​

Path: .apigw.federation, .verifier.federation

FieldTypeDescriptionExampleDefaultRequired
enabledboolThe federation entity configuration endpoint.-falseNo
entity_idstringEntity identifier (defaults to PublicURL if empty).--No
authority_hints[]stringSuperior authority entity identifiers.--No
organization_namestringHuman-readable organization name.--No
logo_uristringOrganization logo URL.--No
trust_marksarrayTrustMarks contains pre-issued trust mark JWTs.--No
ttlint64Validity period of the entity configuration in seconds. Default: 86400 (24 hours).-86400No

trust_marks entry​

Path: .apigw.federation.trust_marks[], .verifier.federation.trust_marks[]

FieldTypeDescriptionExampleDefaultRequired
idstringTrust mark identifier.--Yes
jwtstringTrust mark JWT string.--Yes

rate_limit​

Path: .apigw.rate_limit

FieldTypeDescriptionExampleDefaultRequired
token_requests_per_minuteintMaximum token endpoint requests per minute per IP. Default: 20-20No
credential_requests_per_minuteintMaximum credential endpoint requests per minute per IP. Default: 30-30No
datastore_requests_per_minuteintMaximum datastore endpoint requests per minute per IP. Default: 60-60No
credential_offer_requests_per_minuteintMaximum issuer-UI credential offer creation requests (GET /offers/:scope) per minute per IP. Default: 20-20No
authorization_challenge_requests_per_minuteintMaximum Authorization Challenge Endpoint requests per minute per IP. Default: 20 The endpoint is unauthenticated in the sense that matters here: anyone who can reach it with a public client's parameters and a fresh DPoP proof gets an authorization context plus an ephemeral P-256 key persisted for the whole auth_session lifetime. Request volume is therefore storage growth, and the limit is what bounds it.-20No

dashboard​

Path: .apigw.dashboard

Intended for dev/demo environments; opt in by setting enable: true. Off by default so no shared-config deployment starts exposing its service inventory to anonymous callers without an explicit action from the operator.

FieldTypeDescriptionExampleDefaultRequired
enableboolEnable serves GET /dashboard. Default: false (opt-in).-falseNo
titlestringTitle overrides the page heading. Default: "SUNET Verifiable Credentials".-SUNET Verifiable CredentialsNo
servicesarrayServices optionally augments or overrides the auto-discovered service list. Entries with a Name that matches an auto-discovered service replace it; other entries are appended.--No

services entry​

Path: .apigw.dashboard.services[]

FieldTypeDescriptionExampleDefaultRequired
namestringDisplay name and match key (e.g. "apigw", "issuer").--Yes
urlstringPrimary public URL for the service.--Yes
descriptionstringOptional free-form text shown under the service name.--No
linksarrayOrdered list of extra labelled URLs (health, metadata, UIs, ...).--No

links entry​

Path: .apigw.dashboard.services[].links[]

FieldTypeDescriptionExampleDefaultRequired
labelstringLabel--Yes
urlstringURL--Yes
typestringHow the dashboard follows this link. "json" opens the response in an in-page viewer (pretty-printed, no navigation). "page" (default) opens in a new tab.-pageNo

issuer (Top-level)​

Configuration for the Issuer service that signs and issues verifiable credentials.

issuer​

Path: .issuer

FieldTypeDescriptionExampleDefaultRequired
api_serverobjectHTTP API server configuration--Yes
grpc_serverobjectGRPC server configuration--Yes
key_configobjectSigning key configuration--Yes
jwt_attributeobjectJWT credential attribute configuration--Yes
issuer_urlstringIssuer identifier URL"https://issuer.sunet.se"-Yes
registry_clientobjectRegistry gRPC client config--No
mdocobjectMDL/mdoc configuration--No
audit_logobjectAudit log configuration--No
jsonld_context_allowlist[]stringJSONLDContextAllowlist names the JSON-LD context URLs this issuer may dereference when signing a W3C credential. additional_contexts arrives over gRPC from the caller, and signing canonicalizes the credential to RDF, which FETCHES every context in it. Without an allowlist that is a caller-directed outbound request from the issuer - reachable hosts include anything the issuer's network can reach, which is the part a scheme check cannot address. Empty means no additional context may be used: a request carrying one is refused, and an issuer configured with a W3C scope will not start, since common.credential_metadata.<scope>.credential_contexts is forwarded here on every issuance. Nothing is lost by that default, since a deployment using custom W3C types has to publish its context anyway and can name it here. Matching is exact."https://example.org/diploma"-No
sign_metadata_rate_limitobjectThe rate limiter for the SignMetadata gRPC endpoint. In HA setups each APIGW node refreshes two documents (VCI+OAuth2), so the defaults should accommodate the expected cluster size. Default: 2 req/s, burst 20.--No
pseudonym_seedboolPseudonymSeed, if true, makes the issuer attach a random seed as the pseudonym_seed claim.--No
access_certificateobjectThe EUDI access certificate (WRPAC) the issuer presents to wallets, optionally with its own key separate from KeyConfig. Off by default; deployments outside an ARF trust framework are unaffected.--No
bbsobjectBlind BBS issuance configuration. Absent disables the "jwp" credential format entirely.--No
zk_circuitsobjectThe zk-circuits catalog the issuer resolves a credential's ZK wire-shape requirements from - today the IssuerSignedItem salt length an mdoc schema's declared zk_systems demand (SUNET/vc#723). The same catalog, and the same client, the verifier uses: these are mirrors of one service, and a vendored local mirror is a file:// URL here (see developer_tools/scripts/vendor_zk_circuits). Unlike the verifier, the issuer only ever reads the few-KB descriptors - it runs no ZK code and never downloads a prover or verifier key. Consulted only by schemas that declare zk_systems; a deployment issuing no ZK-provable mdocs never reaches it.--No

grpc_server​

Path: .issuer.grpc_server, .registry.grpc_server

FieldTypeDescriptionExampleDefaultRequired
addrstringGRPC server listen address-:8090No
tlsobjectMTLS configuration--No

tls​

Path: .issuer.grpc_server.tls, .registry.grpc_server.tls

FieldTypeDescriptionExampleDefaultRequired
enableboolEnable-falseNo
cert_file_pathstringServer certificate-/pki/grpc_server.crtNo
key_file_pathstringServer private key-/pki/grpc_server.keyNo
client_ca_pathstringCA to verify client certificates (for mTLS)-/pki/client_ca.crtNo
allowed_client_fingerprintsobjectSHA256 fingerprint -> friendly namea1b2c3...: issuer-prod-No
allowed_client_dnsobjectFriendly name -> Certificate Subject DNapigw-prod: CN=apigw,O=SUNET-No

jwt_attribute​

Path: .issuer.jwt_attribute

In a later state this should be placed under authentic source in order to issue credentials based on that configuration.

FieldTypeDescriptionExampleDefaultRequired
issuerstringIssuer of the tokenhttps://issuer.sunet.se-Yes
static_hoststringStatic host of the issuer, expose static files, like pictures.--No
enable_not_beforeboolThe time not before which the token is valid-falseNo
valid_durationint64Valid duration of the token in seconds-3600No
verifiable_credential_typestringVerifiableCredentialType URLhttps://credential.sunet.se/identity_credential-Yes
statusstringStatus status of the Verifiable Credential--No
kidstringKid key id of the signing key--No

mdoc​

Path: .issuer.mdoc

FieldTypeDescriptionExampleDefaultRequired
certificate_chain_pathstringPath to the PEM certificate chain TODO(pki): Consider folding into pki.KeyConfig.ChainPath to unify certificate chain loading with the standard key material configuration pattern.--Yes
default_validitydurationDefault credential validity (default: 365 days)-8760hNo
digest_algorithmstringDigest algorithm: "SHA-256", "SHA-384", or "SHA-512"-SHA-256No

audit_log​

Path: .issuer.audit_log

FieldTypeDescriptionExampleDefaultRequired
enableboolAudit logging-falseNo
destinations[]stringList of log destinations (console/stdout, file path, or HTTP URL)["stdout", "/var/log/audit.log", "https://audit.sunet.se/webhook"]-Yes (if enabled)
file_sync_intervaldurationFsync behavior for file destinations. 0 = fsync after every write (strict durability, lower throughput). >0 = periodic batched fsync at the given interval (better throughput, bounded data-loss window). Has no effect on console or webhook destinations.-5sNo

sign_metadata_rate_limit​

Path: .issuer.sign_metadata_rate_limit

FieldTypeDescriptionExampleDefaultRequired
requests_per_secondfloat64Sustained rate limit in requests per second. Default: 2-2No
burstintMaximum number of requests allowed in a single burst. Default: 20-20No

access_certificate​

Path: .issuer.access_certificate

Under CIR (EU) 2025/848 a PID or attestation provider is a registered wallet-relying party in its own right, so the certificate that authenticates the issuer to a wallet is a WRPAC, governed by the same profile the verifier uses.

The access certificate is kept separate from Issuer.KeyConfig on purpose. The credential key is published in /jwks and signs credentials; an mdoc document-signer certificate chains to an IACA under an entirely different profile; and the two have independent rotation lifecycles. Conflating them means a WRPAC rotation forces a credential-key rotation.

When KeyConfig is unset the issuer falls back to signing metadata with the credential key, logging a warning. That keeps an existing single-key deployment booting across an upgrade rather than failing on start.

FieldTypeDescriptionExampleDefaultRequired
validateboolValidate enforces the WRPAC certificate profile at startup: subjectAltName must carry contact information (URI or email), and certificatePolicies must contain a WRPAC policy OID. Startup fails when the certificate does not conform.--No
allowed_policy_oids[]stringAllowedPolicyOIDs optionally narrows which WRPAC certificate policy OIDs are accepted, for a deployment that must assert a specific assurance level. When empty, all four TS 119 411-8 WRPAC policy OIDs are accepted.["0.4.0.194118.1.3","0.4.0.194118.1.4"]-No
key_configobjectSigning key and certificate chain for the access certificate. When set, issuer metadata is signed with this key and the chain is advertised in the JWT's x5c header; credentials continue to be signed with Issuer.KeyConfig.--No
revocationobjectChecking this certificate against the CRL distribution points it names. A certificate naming none cannot be checked, which reads as "could not determine" rather than as "not revoked".--No

bbs​

Path: .issuer.bbs

Separate from Issuer.KeyConfig, and unavoidably so. Every other key this issuer signs with is an ECDSA key that signs a digest, which is what pki.KeyConfig and PKCS#11 are built around. A BBS secret key is a BLS12-381 scalar consumed inside the signing algebra itself, so it cannot be handed to an HSM that only offers "sign these bytes" — mainstream HSMs do not implement the curve at all. It is therefore a software key, which is a known and accepted property of this format rather than an oversight.

FieldTypeDescriptionExampleDefaultRequired
secret_key_pathstringFile holding the raw BLS12-381 secret scalar, base64url-encoded. Preferred where a file can be mounted, since it keeps the key out of the rendered config entirely."/etc/vc/bbs/issuer.sk"-No
public_key_pathstringFile holding the matching public key, base64url-encoded. Preferred over PublicKey for the same reason as SecretKeyPath, though the public half is not secret."/etc/vc/bbs/issuer.pk"-No
secret_keystringSame value inline, base64url-encoded. Exists because not every deployment can mount an arbitrary file. A Helm chart that models specific named secret volumes has no way to add one for a key it does not know about, so a path-only configuration cannot be deployed there at all without changing the chart. An inline value goes wherever the rest of the config goes, and the usual secret-injection machinery (env-var substitution into the rendered config) already handles it. Prefer SecretKeyPath where a file is possible: this puts the key in the config document, so it is only as protected as that document is. Exactly one of secret_key_path and secret_key must be set. Both, or neither, is refused at startup rather than resolved by precedence: a deployment with two sources of truth for a signing key has no way to tell which one is live, and an operator editing the half that is not would see no effect at all.--No
public_keystringMatching public key inline, base64url-encoded. The same exactly-one rule applies to this half independently: exactly one of public_key_path and public_key must be set. The two halves are resolved separately, so a path for one and an inline value for the other is fine - which is what a deployment that can mount the public key but must inject the secret one will want.--No
default_validitydurationHow long an issued credential is valid for (default: 365 days), used to derive the exp header member.-8760hNo

zk_circuits​

Path: .issuer.zk_circuits

catalog Sources the verifier uses, plus CacheTTL. CacheTTL lives here rather than on the shared ZkCircuitsConfig because only the issuer's resolver honours it - the verifier reads Sources alone, so a cache_ttl under verifier.zk_circuits would be a silent no-op.

FieldTypeDescriptionExampleDefaultRequired
sources[]stringZk-circuits catalog mirror base URLs, tried in order until one succeeds (see pkg/mdoc/zkcircuit.Client - these are mirrors of the SAME catalog, not distinct registries). Defaults to the live deployed service if empty. A "file:///path/to/mirror" entry is a vendored local mirror: a directory laid out like the service itself, as written by developer_tools/scripts/vendor_zk_circuits. Artifact hashes are verified against the descriptors exactly as they are for a remote source, so vendoring pins the bytes as far as the mirror filesystem is itself trusted.["https://zk-circuits.fly.dev","file:///etc/vc/zk-circuits"]["https://zk-circuits.fly.dev"]No
cache_ttlintHow long a fetched manifest is reused before the issuer refreshes it, in seconds. Issuance must not become a catalog round trip per credential. Zero means the package default (1 hour). A refresh that fails keeps serving the last manifest that parsed, so the catalog being briefly unreachable does not stop issuance; what does stop it is having never reached the catalog at all, for a schema that declares a zk_system and pins nothing.3600-No

verifier (Top-level)​

Configuration for the Verifier service that verifies credentials and acts as an OIDC Provider.

verifier​

Path: .verifier

FieldTypeDescriptionExampleDefaultRequired
api_serverobjectHTTP API server configuration--Yes
public_urlstringPublic URL of this service (must be valid HTTP/HTTPS URL)"https://verifier.sunet.se"-Yes
key_configobjectSigning key configuration--Yes
client_id_schemestringClientIDScheme determines how the verifier identifies itself to wallets. Supported values: "x509_san_dns" (default), "x509_hash", "did". When "did", the DID field must be set and /.well-known/did.json is served. When "x509_hash" (the scheme the EUDI ARF mandates for Relying Party authentication), the client_id is the base64url SHA-256 of the signing certificate, so key_config must supply one and it is always sent in x5c.-x509_san_dnsNo
didstringVerifier's DID identity."did:web:verifier.example.com"-Yes (if client_id_scheme is "did")
access_certificateobjectAccessCertificate validates the verifier's own wallet-facing certificate as an EUDI Relying Party access certificate (WRPAC, ETSI TS 119 411-8). Off by default; deployments outside an ARF trust framework are unaffected.--No
registration_certificateobjectRegistrationCertificate points at a Relying Party registration certificate (WRPRC, ETSI TS 119 475) issued to this verifier by a national Registrar, to be presented to wallets in the OpenID4VP verifier_info parameter. vc does not issue these.--No
preferred_vp_formatsobjectInformational VP formats and algorithms supported by wallets--No
supported_walletsobjectSupported wallet configurations--No
inboundobjectInbound groups inbound credential verification--No
outboundobjectOutbound groups outbound identity assertion--No
digital_credentialsobjectW3C Digital Credentials API configuration--No
authorization_page_cssobjectAuthorization page styling configuration--No
credential_displayobjectCredential display settings--No
trustobjectTrust evaluation configuration--No
federationobjectOpenID Federation entity configuration. When enabled, serves /.well-known/openid-federation as a self-signed JWT.--No
presetsobjectPredefined verification request presets shown in the UI. The map key is the human-readable label; see PresetDefinition for what each entry configures."PID":{"credentials":{"pid":null}},"PID + EHIC":{"credentials":{"pid":null,"ehic":null},"category":"Combined"}-No
combined_presentationobjectCombined presentation verification (ARF 3.0 §6.6.3.10). When multiple credentials are presented, this verifies they belong to the same holder.--No
revocationobjectCredential revocation checking at presentation time (ARF 3.0 §6.6.3.7). When enabled, the Verifier checks Token Status List references in presented credentials.--No
zk_circuitsobjectThe zk-circuits catalog service used to resolve "mso_mdoc_zk" (Longfellow ZK/PPID) proof circuits for native verification. Only consulted by builds with the "zknative" Go build tag (see pkg/mdoc/zk_native_cgo.go) - ignored by the default build.--No
zk_key_cacheobjectThe on-disk Vega verifier-key store. Verifier only: these keys exist to verify a presented proof, and the issuer never touches one.--No

access_certificate​

Path: .verifier.access_certificate

This validates the certificate the verifier already signs request objects with - it does not introduce a second certificate. Deployments not participating in an ARF trust framework can leave it disabled and are unaffected.

FieldTypeDescriptionExampleDefaultRequired
validateboolValidate enforces the WRPAC certificate profile at startup: subjectAltName must carry contact information (URI or email), and certificatePolicies must contain a WRPAC policy OID. Startup fails when the certificate does not conform.--No
allowed_policy_oids[]stringAllowedPolicyOIDs optionally narrows which WRPAC certificate policy OIDs are accepted, for a deployment that must assert a specific assurance level (e.g. only the qualified policies). When empty, all four TS 119 411-8 WRPAC policy OIDs are accepted.["0.4.0.194118.1.3","0.4.0.194118.1.4"]-No

preferred_vp_formats​

Path: .verifier.preferred_vp_formats

Used in client_metadata and Wallet metadata to indicate supported formats and algorithms.

FieldTypeDescriptionExampleDefaultRequired
ldp_vcobjectConfiguration for W3C VC Data Integrity format (ldp_vc)--No
jwt_vc_jsonobjectConfiguration for JWT-based W3C VC format (jwt_vc_json)--No
dc+sd-jwtobjectConfiguration for SD-JWT VC format (dc+sd-jwt)--No
mso_mdocobjectConfiguration for ISO mdoc format (mso_mdoc)--No

ldp_vc​

Path: .verifier.preferred_vp_formats.ldp_vc

FieldTypeDescriptionExampleDefaultRequired
proof_type_values[]stringNon-empty array containing identifiers of proof types supported. If present, the proof type of the presented VC/VP MUST match one of the array values.["DataIntegrityProof", "Ed25519Signature2020"]-No
cryptosuite_values[]stringNon-empty array containing identifiers of crypto suites supported. Used when one of the algorithms in ProofTypeValues supports multiple crypto suites.["ecdsa-rdfc-2019", "ecdsa-sd-2023", "eddsa-rdfc-2022", "bbs-2023"]-No

jwt_vc_json​

Path: .verifier.preferred_vp_formats.jwt_vc_json

FieldTypeDescriptionExampleDefaultRequired
alg_values[]stringNon-empty array containing identifiers of cryptographic algorithms supported. If present, the alg JOSE header of the presented VC/VP MUST match one of the array values.--No

dc+sd-jwt​

Path: .verifier.preferred_vp_formats.dc+sd-jwt

FieldTypeDescriptionExampleDefaultRequired
sd-jwt_alg_values[]stringNon-empty array containing cryptographic algorithm identifiers supported for the Issuer-signed JWT of an SD-JWT.--No
kb-jwt_alg_values[]stringNon-empty array containing cryptographic algorithm identifiers supported for a Key Binding JWT (KB-JWT).--No

mso_mdoc​

Path: .verifier.preferred_vp_formats.mso_mdoc

FieldTypeDescriptionExampleDefaultRequired
issuerauth_alg_values[]intNon-empty array containing cryptographic algorithm identifiers supported for IssuerAuth COSE signatures.--No
deviceauth_alg_values[]intNon-empty array containing cryptographic algorithm identifiers supported for DeviceAuth COSE signatures or MACs.--No

inbound​

Path: .verifier.inbound

FieldTypeDescriptionExampleDefaultRequired
openid4vpobjectOpenID4VP configuration for accepting wallet presentations--Yes

openid4vp​

Path: .verifier.inbound.openid4vp

FieldTypeDescriptionExampleDefaultRequired
presentation_timeoutintHow long, in seconds, a wallet has to complete a presentation. It is the deadline on both the standalone verification session and the OIDC authorization session, and the authorization context is retained for at least this long plus code_duration.-300No
supported_credentialsarraySupported credential configurations--Yes
presentation_requests_dirstringOptional directory with presentation request templates--No
token_endpointstringOAuth2 token endpoint URL used for VP token exchange"https://verifier.sunet.se/token"-Yes
clientsobjectOAuth2 client configurations for RP interactions--Yes
response_modestringOpenID4VP response mode for request objects served behind the QR code and the same-device link - the flow whose response comes back to /verification/oidc-direct_post. Only direct_post and direct_post.jwt are meaningful here. A dc_api mode is not: those are defined solely for a request delivered through the browser's Digital Credentials API, where the response returns inside the browser call and the transcript binds to the calling origin. A request that arrives as a link has neither, so a wallet is right to refuse it. Leave unset to keep deriving it from digital_credentials.response_mode, which is what this flow used to read - see Verifier.OIDCRelyingPartyResponseMode."direct_post.jwt"-No

supported_credentials entry​

Path: .verifier.inbound.openid4vp.supported_credentials[]

FieldTypeDescriptionExampleDefaultRequired
vctstringVerifiable credential type"urn:eudi:pid:1"-Yes
scopes[]stringOIDC scopes that grant access to this credential--Yes

outbound​

Path: .verifier.outbound

FieldTypeDescriptionExampleDefaultRequired
oidc_providerobjectOIDC Provider configuration for asserting verified identity to downstream RPs--No

oidc_provider​

Path: .verifier.outbound.oidc_provider

This configures how the verifier issues ID tokens and access tokens to relying parties. Note: This is NOT related to verifiable credential issuance (see IssuerConfig for VC issuance). The signing key is shared from the parent Verifier.KeyConfig.

FieldTypeDescriptionExampleDefaultRequired
issuerstringOIDC Provider identifier that appears in ID tokens and discovery metadata. This identifies the verifier as an OpenID Provider. Must match the 'iss' claim in all issued ID tokens."https://verifier.sunet.se"-Yes
session_durationintLifetime in seconds of the verifier_user_session cookie - the OP's own session with the end user. Distinct from openid4vp.presentation_timeout, which bounds a single presentation.-3600No
code_durationintAuthorization code duration in seconds-300No
access_token_durationintAccess token duration in seconds-3600No
id_token_durationintID token duration in seconds-3600No
require_pkceboolOP's PKCE policy for CONFIDENTIAL clients. Default true, which is what OAuth 2.1 4.1.1, RFC 9700 2.1.1 and the HAIP verifier profile all require: every client using the authorization code grant uses PKCE. Set false only to accommodate a confidential client that cannot send a code_challenge yet. It does NOT reach public clients - a client with token_endpoint_auth_method "none" always needs PKCE, because without a client secret PKCE is the only thing binding the code to the requester, and nothing here can waive that. A POINTER, so that an explicit false survives: defaults.Set fills any field still at its zero value, and false is the zero value of a bool, so a plain bool with default:"true" can never be set to false at all.-trueNo
subject_typestringSubject type: "public" or "pairwise"--Yes
subject_saltstringSalt for pairwise subject generation--Yes
enable_userinfoboolWhether the verifier-OP advertises a userinfo_endpoint in its discovery metadata and issues JWT access tokens (RFC 9068 at+jwt). When true (default), the OP advertises userinfo_endpoint in discovery and returns an access token alongside the ID token. The userinfo endpoint is stateless: it validates the JWT signature and returns the embedded claims. When false, only ID tokens are returned — no access_token or userinfo endpoint. A pointer for the same reason as RevocationConfig.FailOpen: with a plain bool, defaults.Set cannot tell "the operator wrote false" from "the operator wrote nothing", so enable_userinfo: false was ignored (SUNET/vc#753). nil means the default.-trueNo
static_clientsarrayList of pre-configured OIDC clients These clients are checked in addition to dynamically registered clients--No
dynamic_registration_authobjectAuthorization for POST /register (RFC 7591). Modes: - open: no authorization required (default) - static: require a bearer token loaded from a local file - jwt: require a signed JWT validated against configured JWKS/issuer/audience Future option (not implemented yet): introspection via external authorization server.--No

static_clients entry​

Path: .verifier.outbound.oidc_provider.static_clients[]

Static clients are configured in YAML and do not require dynamic registration. These clients are checked in addition to dynamically registered clients stored in the database.

FieldTypeDescriptionExampleDefaultRequired
client_idstringUnique identifier for the client--Yes
client_secretstringClient secret for authentication. Can be defined in the secrets file under verifier.oidc_op.static_clients as a map of client_id to client_secret.--Yes (unless token_endpoint_auth_method is "none")
redirect_uris[]stringList of allowed redirect URIs for this client--Yes
allowed_scopes[]stringList of scopes this client is allowed to request. If empty, defaults to standard OIDC scopes (openid, profile, email, address, phone).--No
token_endpoint_auth_methodstringAuthentication method for the token endpoint. Supported values: client_secret_basic, client_secret_post, none (public client) Default: "client_secret_basic"-client_secret_basicNo
grant_types[]stringList of allowed grant types. Supported values: authorization_code - the only grant the verifier-OP's token endpoint implements and the only one its discovery document advertises. Default: ["authorization_code"]-["authorization_code"]No
response_types[]stringList of allowed response types. Supported values: code Default: ["code"]-["code"]No
client_namestringOptional human-readable name for the client--No
require_pkceboolRequirePKCE overrides the OP's require_pkce policy for this client alone. Unset inherits the policy, which defaults to true. Use it to exempt one lagging confidential client without relaxing the policy for every other. Setting it false on a client whose token_endpoint_auth_method is "none" has no effect: a public client always needs PKCE. A pointer so that an explicit false is distinguishable from unset.--No

dynamic_registration_auth​

Path: .verifier.outbound.oidc_provider.dynamic_registration_auth

FieldTypeDescriptionExampleDefaultRequired
modestringRegistration authorization behavior. Supported values: open, static, jwt. Future option (not implemented yet): introspection, which the validator rejects until it is.-openNo
static_bearer_token_filestringStaticBearerTokenFile points to a file containing the expected bearer token (single line). Required when Mode=static.--Yes (if mode is "static")
jwtobjectJWT config for Mode=jwt.--Yes (if mode is "jwt")

jwt​

Path: .verifier.outbound.oidc_provider.dynamic_registration_auth.jwt

FieldTypeDescriptionExampleDefaultRequired
jwks_uristringURL to fetch signing keys from. HTTPS only. This key set is the trust root for every registration token accepted in jwt mode: whoever controls the bytes it returns decides which signatures verify. Over plaintext that is anyone on the network path, who can then mint a token this verifier accepts and register clients at will - so the signature check would be theatre, not protection.--Yes
issuerstringRequired issuer claim (iss). HTTPS only, both because OpenID Connect Discovery requires it and because an http issuer paired with an https key set is a sign the deployment was copied from a plaintext one.--Yes
audiencestringRequired audience claim (aud).--Yes
allowed_signing_algs[]stringAllowedSigningAlgs restricts accepted JWT signing algorithms. Asymmetric only, enforced at startup. The key set behind jwks_uri is PUBLISHED, so a symmetric algorithm turns it into a secret handout: configure HS256 and serve an oct key, and anyone who can fetch the key set can mint registration tokens for this endpoint. "none" is the same hole with no key at all. Unrecognised algorithms are refused for the same reason rather than forwarded to go-oidc, which is how the symmetric family would get in.-["RS256","ES256"]No
clock_skew_secondsintHow far the token's exp may lie in the past and still be accepted, for a client whose clock runs behind ours. The underlying verifier (coreos/go-oidc) has no leeway setting, so this is applied by moving the clock it reads. That clock serves two checks, and the effect on each is opposite: exp is relaxed by this much, and go-oidc's own fixed five-minute nbf leeway is reduced by the same amount. Keep it well under five minutes, or a token whose nbf is legitimately a little in the future stops being accepted. iat is not validated at all. Zero disables both effects, and the upper bound is one second short of go-oidc's nbf leeway - at or past it the leeway is gone and a token with a legitimately future nbf starts being rejected, which is the opposite of what raising a skew tolerance is meant to achieve. A pointer so that an explicit zero survives. Defaults are applied after unmarshalling and creasty/defaults fills any field still at its zero value, so as a plain int, clock_skew_seconds: 0 - the one value an operator writes on purpose, to turn the tolerance off - is indistinguishable from the key being absent and gets overwritten with 60. Unset stays nil until the default is applied; zero stays zero.-60No

digital_credentials​

Path: .verifier.digital_credentials

FieldTypeDescriptionExampleDefaultRequired
enableboolW3C Digital Credentials API support in browser-falseNo
preferred_formats[]stringThe order of preference for credential formats Supported values: "vc+sd-jwt", "dc+sd-jwt", "mso_mdoc" Default: ["vc+sd-jwt", "dc+sd-jwt", "mso_mdoc"]-["vc+sd-jwt", "dc+sd-jwt", "mso_mdoc"]No
response_modestringThe OpenID4VP response mode for DC API flows Supported values: "dc_api.jwt" (encrypted), "direct_post.jwt" (signed), "direct_post" Default: "dc_api.jwt"-dc_api.jwtNo
allow_qr_fallbackboolAutomatic fallback to QR code if DC API is unavailable Default: true-trueNo
auto_attemptboolWhether the presentation-definition UI calls navigator.credentials.get() as soon as a presentation request starts, before it renders the same-device wallet link and QR screen. With false the UI goes straight to that screen and never calls the native API. (Enable alone only controls whether the native API is available to attempt at all, not whether the UI attempts it first.) Set to false to skip straight to the same-device "open in wallet" link/QR fallback instead - confirmed via live testing that Android's OS-level DC API credential matcher can reject a non-standard format (e.g. the ZK-mdoc "mso_mdoc_zk" extension) with its own system dialog before any application code runs, with no JS-catchable failure to fall back from. Default: true (existing behavior, unaffected).-trueNo
deep_link_schemestringDeepLinkScheme for mobile wallet integration"eudi-wallet://"-No

authorization_page_css​

Path: .verifier.authorization_page_css

FieldTypeDescriptionExampleDefaultRequired
custom_cssstringInline CSS that will be injected into the authorization page Allows deployers to override default styling without modifying templates--No
css_filestringPath to an external CSS file to include If both CustomCSS and CSSFile are provided, both are included--No
themestringPredefined color scheme: "light" (default), "dark", "blue", "purple"-lightNo
primary_colorstringPrimaryColor overrides the primary brand color"#667eea"-No
secondary_colorstringSecondaryColor overrides the secondary brand color"#764ba2"-No
logo_urlstringA URL to a custom logo image--No
titlestringTitle overrides the page title (default: "Wallet Authorization")--No
subtitlestringSubtitle overrides the page subtitle--No

credential_display​

Path: .verifier.credential_display

FieldTypeDescriptionExampleDefaultRequired
enableboolUsers to optionally view credential details before completing authorization When enabled, a checkbox appears on the authorization page-falseNo
require_confirmationboolUsers to review credentials before proceeding When true, the credential display step is mandatory (checkbox is pre-checked and disabled)-falseNo
show_raw_credentialboolThe raw VP token/credential in the display page Useful for debugging and technical users-falseNo
show_claimsboolThe parsed claims that will be sent to the RP Recommended for transparency and user consent-trueNo
allow_editboolUsers to redact certain claims before sending to RP (future feature) Currently not implemented-falseNo

presets entry​

Path: .verifier.presets.<preset label>

It holds the credentials the preset requests, plus optional metadata for how the UI should group and order it. The parent Presets map's key serves as the human-readable label.

FieldTypeDescriptionExampleDefaultRequired
credentialsobjectCredential_metadata scopes to optional overrides. At least one scope is required - see VerificationPreset's own doc comment for what a nil scope value means.--Yes
categorystringCategory groups this preset under a UI heading shared with every other preset carrying the same Category string. Presets with no Category fall into a generic catch-all group. Purely cosmetic - does not affect matching/verification behavior in any way.--No
orderintThis preset's position within its Category, ascending; ties (including the default 0) are broken alphabetically by label. Purely cosmetic.--No
featuredboolFeatured presets are always shown; the rest are revealed progressively (grouped by Category, initially collapsed) so an operator with a large preset catalog doesn't force every wallet integrator to scan a long flat list before finding the common cases.-falseNo

credentials entry​

Path: .verifier.presets.<preset label>.credentials.<key>

FieldTypeDescriptionExampleDefaultRequired
claimsarraySpecific claims to request. If empty, all VCTM claims are used.--No
exclude_claimsarrayClaims to exclude from the DCQL query.--No
validationsarrayOptional rules applied server-side after claims extraction--No
formatstringFormat overrides the scope's own credential_metadata format (e.g. requesting "mso_mdoc_zk" - a zero-knowledge proof - over a scope whose credential_metadata format is the plain "mso_mdoc" it's actually issued as). Empty means use the scope's own format unchanged.--No
zk_system_typearrayZKSystemType overrides meta.zk_system_type - required whenever Format is set to "mso_mdoc_zk" (openid4vp.FormatMsoMdocZk), since a ZK-mdoc DCQL query has no other way to say which proof system/circuit a verifier accepts. See openid4vp.ZKSystemTypeSpec's own doc comment.--No

claims entry​

Path: .verifier.presets.<preset label>.credentials.<key>.claims[], .verifier.presets.<preset label>.credentials.<key>.exclude_claims[]

FieldTypeDescriptionExampleDefaultRequired
path[]stringClaim path segments["birthdate"], ["address", "locality"]-Yes

validations entry​

Path: .verifier.presets.<preset label>.credentials.<key>.validations[]

FieldTypeDescriptionExampleDefaultRequired
rulestringValidation rule to apply, e.g., "age_over"."age_over"-Yes
path[]stringClaim path to validate, e.g., ["birthdate"].["birthdate"]-Yes
valueobjectThreshold or expected value for the validation.18-Yes

zk_system_type entry​

Path: .verifier.presets.<preset label>.credentials.<key>.zk_system_type[]

array — a verifier's declaration of one ZK proof system + circuit variant it is willing to accept, mirroring multipaz's ZkSystemSpec wire shape ({"id": ..., "system": ..., ...params}, e.g. {"id": "longfellow-libzk-v1_8_1_4259_2945", "system": "longfellow-libzk-v1", "num_attributes": 1, "circuit_hash": "...", "block_enc_hash": ..., "block_enc_sig": ...}).

Params is a flat string->string bag (all non-id/system JSON members of the wire object). Numeric wire values (e.g. num_attributes, block_enc_hash) are carried through as their JSON text representation - callers that need a specific field as an int/int64 should parse it themselves. This mirrors the DCQL CredentialQuery model overall: format-specific "meta" properties are intentionally loosely typed at this layer.

FieldTypeDescriptionExampleDefaultRequired
idstringID identifies this specific system+circuit combination (e.g. "longfellow-libzk-v1_8_1_4259_2945"). A presented ZK document's own zkSystemId (pkg/mdoc.ZkDocumentDataMdoc.ZkSystemID) is expected to equal one of a request's ZKSystemType[].ID entries - this is how a verifier confirms the wallet actually used a circuit it offered, rather than some other one.--Yes
systemstringZK proof system identifier (e.g. "longfellow-libzk-v1"). Params other than "id"/"system" are format-specific (circuit_hash, num_attributes, block_enc_hash, block_enc_sig for Longfellow).--Yes

combined_presentation​

Path: .verifier.combined_presentation

FieldTypeDescriptionExampleDefaultRequired
enabledboolEnabled activates combined presentation binding verification.--No
enforcementstring (enforce|warn|disabled)Enforcement determines how binding verification results are handled: - "enforce": reject the presentation if binding cannot be established - "warn": log a warning but allow the presentation through (per ARF 3.0 ACP_08) - "disabled": skip binding verification entirely-warnNo
binding_attributesarrayAttribute-based binding checks.--No
key_binding_enabledboolKeyBindingEnabled activates key-based binding (cnf.jwk / device key comparison). Cross-format comparison (SD-JWT cnf.jwk vs mDoc device key) is always supported since both are converted to RFC 7638 JWK thumbprints.--No

binding_attributes entry​

Path: .verifier.combined_presentation.binding_attributes[]

FieldTypeDescriptionExampleDefaultRequired
paths[]stringClaim paths that must ALL match across credentials (AND semantics).["family_name", "birth_date", "place_of_birth.locality"]-Yes

revocation​

Path: .verifier.revocation

FieldTypeDescriptionExampleDefaultRequired
enabledboolEnabled activates revocation status checking for presented credentials.--No
cache_ttlintDuration in seconds to cache fetched status list tokens.-300No
fail_openboolFailOpen determines behavior when the status list is unreachable or unparseable: - true: log warning and allow the credential through (fail-open) - false: reject the credential (fail-closed) Note: explicitly revoked/suspended credentials are always rejected regardless of this setting. A POINTER, and not for style: creasty/defaults fills any field still at its zero value, and the zero value of a bool is false - which is exactly the value an operator writes to turn this off. A plain bool with default:"true" therefore cannot be set to false at all, and a verifier configured to fail CLOSED on an unreachable status list quietly failed open (SUNET/vc#753). nil means the default.-trueNo
skip_scopes[]stringCredential scopes exempt from revocation checking (e.g., short-lived credentials valid < 24 hours per ARF 3.0 §6.6.3.7).--No

zk_circuits​

Path: .verifier.zk_circuits

(pkg/mdoc/zkcircuit). The verifier uses it to resolve a presented "mso_mdoc_zk" document's zkSystemId to a downloadable circuit artifact; the issuer resolves wire-shape constraints from the same sources through its own IssuerZkCircuitsConfig, which adds a resolver cache.

FieldTypeDescriptionExampleDefaultRequired
sources[]stringZk-circuits catalog mirror base URLs, tried in order until one succeeds (see pkg/mdoc/zkcircuit.Client - these are mirrors of the SAME catalog, not distinct registries). Defaults to the live deployed service if empty. A "file:///path/to/mirror" entry is a vendored local mirror: a directory laid out like the service itself, as written by developer_tools/scripts/vendor_zk_circuits. Artifact hashes are verified against the descriptors exactly as they are for a remote source, so vendoring pins the bytes as far as the mirror filesystem is itself trusted.["https://zk-circuits.fly.dev","file:///etc/vc/zk-circuits"]["https://zk-circuits.fly.dev"]No

zk_key_cache​

Path: .verifier.zk_key_cache

Process-local, in pkg/mdoc's vegaKeyStore, and consulted only by builds carrying the "zknative" Go build tag.

A key is ~100MB and the store is keyed by circuit revision, so what this bounds is real disk. It is per PROCESS, not per deployment: under common.ha each verifier instance has its own, since these are immutable public artifacts that gain nothing from being shared and could not go in the Mongo-backed cache anyway (BSON documents cap at 16MiB).

FieldTypeDescriptionExampleDefaultRequired
dirstringWhere the store creates its own subdirectory. Empty means the OS temp directory, which is right for most deployments. Set it when the OS temp directory is small or memory-backed - putting a few hundred MB of verifier keys on a tmpfs gives back the memory this store exists to stop using. The store creates and removes its own subdirectory under this; the directory itself is left alone. A clean shutdown removes that subdirectory. A crash or a SIGKILL cannot, so each one holds an advisory lock file and every start sweeps away sibling subdirectories whose lock nobody holds - without which repeated abnormal restarts would strand up to max_bytes apiece here, outside the bound this section promises. The sweep needs flock, so on a platform that has none (Windows) a persistent directory set here has to be cleaned up from outside the process."/var/cache/vc-verifier/zk-keys"-No
max_bytesint64MaxBytes bounds what the store HOLDS. Peak disk use can exceed it for as long as a verification still has an evicted key open: that file is kept until its last holder is finished, because deleting it would fail a presentation that was already under way. The excess is bounded by the verifications in flight, one key each. MaxBytes bounds what the store keeps on disk. Zero means the package default, 512MiB - room for about five circuit revisions. A working set one key larger than the bound makes every request evict the key the next one needs, which fails quietly: no error, nothing in the logs but latency. A negative value is a configuration error, not a smaller bound: the runtime ignores anything at or below zero, so without this check an operator who wrote -1 would get the 512MiB default and no indication that their setting did nothing. The default tag states the same 512MiB the package falls back to, so the generated reference reports it instead of "-". Behaviour is unchanged either way: 512<<20 IS 536870912, so a config that omits the key gets the same bound whether defaults.Set fills it or the store applies its own.536870912536870912No
prewarmboolPrewarm downloads every currently-active Vega circuit's verifier key at startup, in the background, instead of leaving the first presentation of each revision to pay for it inline - while a holder waits, at the very end of a presentation, after selecting credentials and signing (SUNET/vc#656). Defaults to TRUE, because a build carrying the zknative tag is a deployment that does ZK verification, and the alternative is N unlucky users per rollout with load balancing choosing which. Set it false where startup bandwidth matters more than one holder's latency, or where the catalog is not reachable from the instance at boot. A failed warm is logged and never fatal; the key then loads lazily exactly as it did before.-trueNo

registry (Top-level)​

Configuration for the Registry service that manages credential status.

registry​

Path: .registry

FieldTypeDescriptionExampleDefaultRequired
api_serverobjectHTTP API server configuration--Yes
public_urlstringPublic URL of this service (must be valid HTTP/HTTPS URL)"https://registry.sunet.se"-Yes
grpc_serverobjectGRPC server configuration--Yes
token_status_listsobjectToken Status List configuration--Yes
admin_guiobjectAdmin GUI configuration--No

token_status_lists​

Path: .registry.token_status_lists

FieldTypeDescriptionExampleDefaultRequired
key_configobjectKey configuration for signing Token Status List tokens.--Yes
token_refresh_intervalint64How often (in seconds) new Token Status List tokens are generated. Default: 43200 (12 hours). Min: 301 (>5 minutes), Max: 86400 (24 hours)-43200No
section_sizeint64Number of entries (decoys) per section. Default: 1000000 (1 million)-1000000No
rate_limit_requests_per_minuteintMaximum requests per minute per IP for token status list endpoints. Default: 60-60No

admin_gui​

Path: .registry.admin_gui

FieldTypeDescriptionExampleDefaultRequired
enableboolThe admin GUI-falseNo
usernamestringAdmin username-adminNo
passwordstringAdmin password--Yes (if enabled)

Secrets File Reference​

The structure of the separate secrets file.

Secrets file structure​

Path: (root)

When Common.SecretFilePath is set, ApplySecrets merges these values into the main config: the Mongo URI is only used when the main config has none. For each service section (apigw, registry, verifier) that is present in the secrets file, the corresponding secret fields in the main config are cleared and replaced by the secrets-file values. Sections omitted from the secrets file are left untouched.

FieldTypeDescriptionExampleDefaultRequired
commonobjectCommon--No
apigwobjectAPIGW--No
registryobjectRegistry--No
verifierobjectVerifier--No
issuerobjectIssuer--No

common​

Path: .common

FieldTypeDescriptionExampleDefaultRequired
mongoobjectMongo--No
sqlobjectSQL--No
haobjectCredentials for the HA-mode pub/sub backend (Redis / Valkey).--No

mongo​

Path: .common.mongo

FieldTypeDescriptionExampleDefaultRequired
uristringMongoDB connection string, which may include authentication credentials--No

sql​

Path: .common.sql

FieldTypeDescriptionExampleDefaultRequired
postgresobjectPostgres connection password--No
mariadbobjectMariaDB connection password--No

postgres​

Path: .common.sql.postgres

FieldTypeDescriptionExampleDefaultRequired
passwordstringPostgres connection password--No

mariadb​

Path: .common.sql.mariadb

FieldTypeDescriptionExampleDefaultRequired
passwordstringMariaDB connection password--No

ha​

Path: .common.ha

FieldTypeDescriptionExampleDefaultRequired
pubsubobjectRedis / Valkey ACL credentials used by the HA pub/sub bus. Omitted entirely when the backend is unauthenticated.--No

pubsub​

Path: .common.ha.pubsub

FieldTypeDescriptionExampleDefaultRequired
usernamestringACL username (Redis 6+ / Valkey). Optional.--No
passwordstringACL password (Redis 6+ / Valkey) or the single AUTH password on older servers.--No

apigw​

Path: .apigw

FieldTypeDescriptionExampleDefaultRequired
api_serverobjectAPI Server--No
auth_providersobjectAuth Providers--No
seedsobjectSeeds carries the derivation secret for each named seed source, keyed exactly as apigw.seeds is in the main configuration.--No

api_server​

Path: .apigw.api_server

FieldTypeDescriptionExampleDefaultRequired
api_authobjectAPI Auth--No

api_auth​

Path: .apigw.api_server.api_auth

FieldTypeDescriptionExampleDefaultRequired
oidcobjectOIDC--No

oidc​

Path: .apigw.api_server.api_auth.oidc

FieldTypeDescriptionExampleDefaultRequired
client_secretstringOAuth2 client secret for the OIDC provider--No

auth_providers​

Path: .apigw.auth_providers

FieldTypeDescriptionExampleDefaultRequired
oidcobjectOIDC--No

oidc​

Path: .apigw.auth_providers.oidc

FieldTypeDescriptionExampleDefaultRequired
registrationobjectRegistration--No

registration​

Path: .apigw.auth_providers.oidc.registration

FieldTypeDescriptionExampleDefaultRequired
preconfiguredobjectPreconfigured--No
dynamicobjectDynamic--No

preconfigured​

Path: .apigw.auth_providers.oidc.registration.preconfigured

FieldTypeDescriptionExampleDefaultRequired
client_secretstringShared secret for the pre-configured OIDC RP client--No

dynamic​

Path: .apigw.auth_providers.oidc.registration.dynamic

FieldTypeDescriptionExampleDefaultRequired
initial_access_tokenstringBearer token required by the OP for dynamic client registration--No

seeds entry​

Path: .apigw.seeds.<key>

FieldTypeDescriptionExampleDefaultRequired
secretstringBase64url-encoded derivation secret, the same value apigw.seeds.<name>.secret takes in the main configuration. This is where it belongs when it cannot be a mounted file: the secrets file is how this deployment keeps secrets out of the rendered config, and a derivation secret is the most permanent one an issuer has - every commitment ever written under it is a function of it.--No

registry​

Path: .registry

FieldTypeDescriptionExampleDefaultRequired
admin_guiobjectAdmin GUI--No

admin_gui​

Path: .registry.admin_gui

FieldTypeDescriptionExampleDefaultRequired
passwordstringAdmin GUI login password--No

verifier​

Path: .verifier

FieldTypeDescriptionExampleDefaultRequired
outboundobjectOutbound--No

outbound​

Path: .verifier.outbound

FieldTypeDescriptionExampleDefaultRequired
oidc_providerobjectOIDC Provider--No

oidc_provider​

Path: .verifier.outbound.oidc_provider

FieldTypeDescriptionExampleDefaultRequired
subject_saltstringSecret value used to derive pairwise subject identifiers for OIDC clients--No
static_clientsobjectClient_id to client_secret for static OIDC clients. Only clients listed here will have their secrets applied; clients not present in this map keep whatever value the main config provides (which will be empty after ApplySecrets clears them).<client_id>: "<client_secret>"-No

issuer​

Path: .issuer

Empty today: the seed derivation secrets it used to carry moved to APIGWSecrets when derivation moved to the apigw. Kept as a type so the section still parses, and so adding an issuer secret later does not have to re-introduce the plumbing.

Example secrets.yaml​

Path: file referenced by .common.secret_file_path

common:
mongo:
uri: "mongodb://mongo:27017/vc"
sql:
postgres:
password: "change-me-in-production"
mariadb:
password: "change-me-in-production"
ha:
pubsub:
username: "<secret-value>"
password: "change-me-in-production"
apigw:
api_server:
api_auth:
oidc:
client_secret: "your-oidc-client-secret"
auth_providers:
oidc:
registration:
preconfigured:
client_secret: "your-oidc-client-secret"
dynamic:
initial_access_token: "<secret-value>"
seeds:
<key>:
secret: "<secret-value>"
registry:
admin_gui:
password: "change-me-in-production"
verifier:
outbound:
oidc_provider:
subject_salt: "random-salt-for-pairwise-subjects"
static_clients:
<client_id>: "<client_secret>"

Derivation Primitives​

One post-verification claim computation configured on a scope; exactly one field must be set and that field's Apply method runs.

Each list entry under a scope's derivations field is keyed by primitive name (e.g. age_over_thresholds: or lowercase: { input: email }). The subsections below catalog the primitives and their parameters.

age_over_thresholds​

Path: <scope>.derivations[].age_over_thresholds

AgeOverThresholds emits two boolean claims per configured threshold N from an ISO YYYY-MM-DD birthdate: age_over_N (completed years at now) and over_N_this_year (reaches N at some point in now's calendar year).

FieldTypeDescriptionExampleDefaultRequired
inputstringBirthdate claim name (value must be ISO YYYY-MM-DD).birthdate-Yes
thresholds[]intAges (in years) to expose. Each N produces age_over_N and over_N_this_year (booleans). Every entry must be positive.[13, 15, 18, 21, 65]-Yes

lowercase​

Path: <scope>.derivations[].lowercase

Lowercase applies strings.ToLower elementwise.

FieldTypeDescriptionExampleDefaultRequired
inputstringSource claim name. Supports dot-notation claim paths (e.g. "identity.email") so this primitive can target the same nested claims that AttributeMapper materialises.email-Yes

uppercase​

Path: <scope>.derivations[].uppercase

Uppercase applies strings.ToUpper elementwise.

FieldTypeDescriptionExampleDefaultRequired
inputstringInputcountry-Yes

trim​

Path: <scope>.derivations[].trim

Trim applies strings.TrimSpace elementwise.

FieldTypeDescriptionExampleDefaultRequired
inputstringInputname-Yes

country_alpha2​

Path: <scope>.derivations[].country_alpha2

Country names or alpha-3 codes to ISO 3166-1 alpha-2 codes elementwise. Unknown inputs pass through unchanged.

FieldTypeDescriptionExampleDefaultRequired
inputstringInputnationalities-Yes

country_alpha3​

Path: <scope>.derivations[].country_alpha3

Country names or alpha-2 codes to ISO 3166-1 alpha-3 codes elementwise. Unknown inputs pass through unchanged.

FieldTypeDescriptionExampleDefaultRequired
inputstringInputnationalities-Yes

yyyymmdd_to_iso​

Path: <scope>.derivations[].yyyymmdd_to_iso

YYYYMMDDToISO converts a SCHAC schacDateOfBirth ("YYYYMMDD") claim to ISO full-date ("YYYY-MM-DD"). Impossible calendar dates are an error.

FieldTypeDescriptionExampleDefaultRequired
inputstringSource claim name (must be a non-empty YYYYMMDD string).birthdate-Yes

swamid_highest_assurance_level​

Path: <scope>.derivations[].swamid_highest_assurance_level

SWAMIDHighestAssuranceLevel reduces a multi-valued eduPersonAssurance claim to the strongest recognised SWAMID Assurance Framework URI.

FieldTypeDescriptionExampleDefaultRequired
inputstringSource claim (string or list of strings).assurance_level-Yes

random​

Path: <scope>.derivations[].random

Random writes a freshly generated random value to a claim the source data did not supply - a document identifier, typically. The only primitive here that reads nothing and is not a pure function of its input; see RandomArgs for where the value is generated and how long it lives.

FieldTypeDescriptionExampleDefaultRequired
outputstringTarget claim name. Supports dot-notation claim paths (e.g. "identity.document_id") so this primitive can target the same nested claims that AttributeMapper materialises. There is no Input: this primitive reads nothing.document_id-Yes
formatstringFormat selects the shape of the value: "uuid" (the default), "hex" or "base64url".uuid-No
bytesintHow many random bytes back a "hex" or "base64url" value, between 8 and 64. Ignored for "uuid", whose length the format fixes. Defaults to 16.16-No
overwriteboolOverwrite replaces a value the source data already supplied. False by default, and deliberately: this primitive exists to fill a claim authentication could not provide, and silently replacing a real identifier with a random one is a worse failure than leaving the derivation with nothing to do. Set it only where the claim is meant to be random every time regardless of what arrived.--No