Configure the CoRIM verifier#
Note: The CoRIM verifier is experimental. It is the direction for NVIDIA’s attestation-verification workflow, but its behavior, interfaces, supported evidence, and EAR output may change.
This page describes configuration for the CoRIM verifier. It is separate from the legacy attestation configuration, which uses an attestation context and a claims collection. For the end-to-end CoRIM workflow, see the CoRIM verifier guide.
HTTP and TLS#
The CoRIM store, OCSP client, and remote EAR verification APIs accept
nvat_http_options_t. Pass NULL to use the SDK defaults, or create options
with nvat_http_options_create_default() to configure retries, backoff,
connection and request timeouts, and custom TLS CA locations. Use the same
options handle for the components that should share those settings.
CoRIM sources#
Create nvat_corim_store_t before the local verifier. A new store includes
the NVIDIA RIM allowlist prefix. Configure the store before passing it to
nvat_local_corim_verifier_create(), which takes ownership on success.
Use nvat_corim_store_add_allowed_url_prefix() to permit additional
HTTPS rim-locator prefixes. The prefix check applies to the URL provided in the
evidence, before any rewrite.
Use nvat_corim_store_add_url_rewrite() when an allowed locator must be
fetched from a mirror. A rewrite substitutes the first
matching prefix; rules are evaluated in insertion order. Because the original
URL is still allowlisted, a rewrite does not broaden which evidence-supplied
locators are accepted.
For repeated appraisals, enable the store cache:
rc = nvat_corim_store_enable_in_memory_cache(
store, 16 * 1024 * 1024, 300); /* 16 MiB, five minutes */
The cache is bounded by total entry size. Select the size and lifetime to match the deployment’s reference-manifest update and availability requirements.
Negative caching is disabled by default. Enable it to avoid repeating HTTP requests for missing CoRIMs:
rc = nvat_corim_store_enable_negative_cache(store, 1024 * 1024, 600);
Both caches use the effective URL after authorization and rewrites as the key.
The negative cache stores completed HTTP 404 responses. Requests for a cached
URL return NVAT_RC_RIM_NOT_FOUND without a network call. Transport failures,
other HTTP errors, and local file failures are not negatively cached.
The negative cache has its own capacity and TTL, independent of the cache for successful responses. Capacity counts one URL and a boolean marker per entry, excluding cache bookkeeping. Cache hits do not extend the TTL. A newly published CoRIM may remain unavailable until its cached 404 expires.
Set TTL to 0 to disable the negative cache and clear its entries. Capacity
must be positive even when disabling the cache. Each cache belongs to the
store and is not shared across processes.
Trust roots#
The local verifier starts with built-in NVIDIA production roots for device identity and CoRIM signing. Add a root CA certificate in PEM form to the appropriate store after creating the verifier:
rc = nvat_local_corim_verifier_add_device_identity_trust_root_pem(
verifier, device_root_pem);
rc = nvat_local_corim_verifier_add_rim_signing_trust_root_pem(
verifier, rim_root_pem);
The device store anchors device identity and attestation-key chains. The RIM
store anchors CoRIM and fetched CoEV signing chains. Each call adds one root
to that verifier; it does not remove the built-in root. Load the PEM text in
the host application and call the function once for each additional root.
Malformed PEM, certificates that are not root CAs, and PEM containing more
than one certificate return NVAT_RC_BAD_ARGUMENT. The verifier does not add
the rejected certificate to its trust store.
These stores are separate from the TLS CA settings in nvat_http_options_t,
which authenticate HTTPS servers used for RIM retrieval and OCSP.
Verification controls#
CoRIM signature verification and certificate-revocation checking are enabled by default. Keep both enabled in production:
nvat_local_corim_verifier_set_verify_rim_signature()accepts unsigned CoRIMs when disabled.nvat_local_corim_verifier_set_verify_revocation()skips device and CoRIM signing-chain revocation checks when disabled.
These controls are intended for controlled development fixtures, not as a way to work around trust or availability failures in a deployed verifier.
Fallback inputs and input digests#
When evidence has no RIM locators, register fallback locators with
nvat_local_corim_verifier_add_backup_rim_locator(). When SPDM evidence
does not provide ECTs, set fallback ConciseEvidence with
nvat_local_corim_verifier_set_backup_spdm_coev(). These are fallbacks;
they do not replace valid data supplied by the evidence.
If no RIM locator is available after discovery and fallbacks, the EAR reports
NVAT_RC_RIM_LOCATOR_UNAVAILABLE (109). This differs from
NVAT_RC_RIM_NOT_FOUND (104), which reports a missing RIM at a locator, and
NVAT_RC_RIM_MEASUREMENT_NOT_FOUND (107), which reports missing reference
measurements in a fetched RIM. Specific locator-construction errors are retained.
The verifier emits ear_nvidia_inputs.digests using SHA-256 by default when a
request does not specify digest algorithms. Change the default with
nvat_local_corim_verifier_set_default_hash_algorithms(), or pass zero
algorithms to disable this output. Algorithms requested by the input take
precedence over the default.
Signed EAR verification#
At a remote relying-party boundary, use the HTTP options above with
nvat_verify_ear(). Its optional nvat_jwt_validation_options_t controls
the allowed clock skew for iat, nbf, and exp; a default options handle
uses 60 seconds. See Signed EARs at a remote relying party
for the authentication and policy flow.