Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Changelog

[3.0.0] - 2026-09-25

Breaking changes

  • Version 3.0.0 breaks public REST API compatibility with the 2.xseries: the evaluation route and the values of diagnostic and the fields in successful evaluation responses have changed.

  • POST /api/v1/iad/evaluate replaces POST /api/v1/iad/liveness/evaluate, which is no longer registered.

  • diagnostic returns NoAttack or Attack instead of Live or NoLive.

  • In GET /api/v1/iad/metrics, the quality.liveness block is renamed to quality.detection, and its counters live and noLive are renamed to noAttack and attack.

  • GET /api/v1/iad/health returns HTTP 503 (ServiceUnavailable) when the service cannot handle evaluations: the service is not initialized, the license is invalid (previously, HTTP 200 with Unhealthy: <motivo> (code: <código>)) or the analysis engine is not responding (previously, HTTP 400).

  • POST /api/v1/iad/evaluate, POST /api/v1/iad/evaluate/custom and POST /api/v1/iad/extract return HTTP 503 (ServiceUnavailable) with Engine communication error: <detalle> when the analysis engine does not respond. Previously, they returned HTTP 400 with ErrorProcessing (/evaluate and /evaluate/custom) or with Engine communication error: Too many retries (/extract).

Added

  • Endpoint POST /api/v1/iad/evaluate/custom, which evaluates the capture using the analysis pipeline (iad_r01 or iad_r00) and calibration (regular or hardened) selected by the client.

  • Fields transactionId (unique UUID v4 per request) and timestamp (ISO-8601 UTC with milliseconds) in successful evaluation responses.

  • GET /api/v1/iad/metrics/prometheus now publishes the complete snapshot of /metrics: in addition to the HTTP-level series with the prefix facephi_, the service's own sections (identity, status, usage, quality, and alerts) with the prefix facephi_iad_.

  • The engine integrated into the Docker image loads by default all supported pipeline and calibration combinations POST /api/v1/iad/evaluate/custom.

  • Parameter engine_health_max_age_seconds (environment variable FACEPHI_IAD_ENGINE_HEALTH_MAX_AGE_SECONDS, 10 seconds by default): the time for which GET /api/v1/iad/health reuses the most recent analysis engine check.

  • The windows 1m, 5m and 15m in the traffic section of GET /api/v1/iad/metrics include clientErrors, serverErrors and unauthorized, which GET /api/v1/iad/metrics/prometheus publishes as facephi_window_client_errors, facephi_window_server_errors and facephi_window_unauthorized.

  • Capture operations check the license on every request: if it becomes invalid while the service is running, they respond with HTTP 400 with Invalid license: <motivo> (code: <código>) without analyzing the capture.

  • Unit and integration tests for the new endpoint and the new response contract.

Changed

  • The alert message LOW_QUALITY for GET /api/v1/iad/metrics becomes Recent evaluation results show degraded quality.

  • A verdict of Attack, and its accompanying low scores, no longer count as low-quality samples: detecting an attack no longer triggers the LOW_QUALITY alert or leave the service in a degraded. quality.summary.lowQualitySamples and LOW_QUALITY reflects only captures that the analysis engine could not evaluate (errors NoneBecause*).

  • JWT validation tolerates a 60-second clock skew when checking exp and nbf, so a token is accepted up to 60 seconds after it expires. Tokens that are not yet valid are rejected with HTTP 401 and the message JWT token is not yet valid, rather than being treated as expired.

  • The public documentation describes the service exclusively as injection attack detection.

  • GET /api/v1/iad/health reuses the latest analysis engine check, whether successful or failed, for engine_health_max_age_seconds and, when it expires, runs it again with a single attempt lasting no more than 5 seconds. Previously, the engine was checked on every call, with retries controlled by engine_max_retries, and responding could take several seconds.

  • When the license is invalid, GET /api/v1/iad/metrics reports only the LICENSE_EXPIREDalert, without also marking the analysis engine as unavailable.

  • POST /api/v1/iad/extract normalizes analysis engine errors the same way as /evaluate (NoneBecause*, Replay attack detected and ErrorFacialImage for unclassified failures), instead of returning them as Engine communication error: <detalle>.

  • GET /api/v1/iad/config with the service uninitialized and POST /api/v1/iad/config with an config_json_string that cannot be loaded respond with HTTP 400 instead of 500.

  • The classification degraded of GET /api/v1/iad/metrics only considers server errors from the last 5 minutes, rather than all errors since startup. The error rate used to classify the service and trigger HIGH_ERROR_RATE excludes captures rejected with Replay attack detected.

Removed

  • The fields probability, score, faceProbability, sdkDuration and queueDuration from successful evaluation responses.

Fixed

  • The service's memory usage no longer grows with each request. Previously, it kept all the analysis engine output in memory while running (about 20 KB per invalid capture), which could exhaust the container's memory.

  • The service no longer keeps running without an analysis engine when the engine process terminates (for example, because the system stops it due to low memory). It now stops accepting requests, releases the license, and exits with code 1, so the container's restart policy starts the service and engine again. Previously, it returned errors until the container was restarted manually. If the engine terminates during startup, the service exits without opening the port.

[2.3.0] - 2026-09-22

Added

  • Configurable thresholds for status classification and GET /api/v1/iad/metrics: metrics_saturation_queue_p95_ms, metrics_saturation_min_inflight_ratio, metrics_error_rate_warning, metrics_idle_rps_threshold and metrics_quality_alert_window_seconds. They are configured in config.json or with the environment variables FACEPHI_IAD_REST_METRICS_*, and are the only parameters that POST /api/v1/iad/config applies at runtime.

Changed

  • Updated the internal analysis engine.

  • The LOW_QUALITY stops being persistent: it is deactivated when no low-quality samples are observed for metrics_quality_alert_window_seconds (900 seconds by default), and quality.summary.lowQualitySince indicates the start of the current episode.

  • The saturated and saturation.backlogSuspected classifications require the number of in-flight requests to strictly exceed the configured threads, so the request reading /metrics no longer counts as pending work.

Fixed

  • When stopping the container (docker stop, docker compose down), the service receives the stop signal and shuts down cleanly, releasing the license it was using. Previously, Docker eventually forced the container to stop, and with offline licensing using a local server, the floating license remained reserved until its lease expired.

[2.2.0] - 2026-08-12

Added

  • Public endpoints GET /api/v1/iad/metrics and GET /api/v1/iad/metrics/prometheus for operational snapshots and Prometheus-format exposure.

  • Unit and integration tests for health snapshots and metrics endpoints.

Changed

  • GET /api/v1/iad/health continues to actively check the engine, while /metrics exposes cached snapshots and in-memory counters suitable for frequent scraping.

  • Updated the internal engine.

[2.1.0] - 2026-07-20

Added

  • Optional support for JWT authentication.

  • Unit tests covering runtime JWT configuration precedence and the configuration endpoint's redaction/rejection behavior.

Changed

  • Public configuration endpoints now omit JWT authentication keys from responses to GET /api/v1/iad/config.

  • Public configuration updates via POST /api/v1/iad/config now reject JWT authentication keys; these values must be configured only at startup using config.json or the environment variables FACEPHI_IAD_REST_*.

[2.0.0] - 2026-05-26

Breaking changes

  • Version 2.0.0 breaks public Rest API compatibility with the 1.x.x: endpoint names, multipart request fields, and correct response payloads have changed and require client-side migration.

Added

  • Mapping of the public evaluation response to Facephi-style fields diagnostic, reason, probability, score, sdkDuration and queueDuration.

  • Experimental replay-attack mitigation documented as a public capability of facephi-iad-service, with startup environment variables FACEPHI_IAD_REPLAY_ATTACK_CHECKER_ENABLED and FACEPHI_IAD_REPLAY_ATTACK_TOLERANCE_TIME.

  • Unit tests for mapping the Engine success payload and preventing public field leaks.

  • Unit tests for the required multipart field contract capture.

Changed

  • The public operational routes now use /api/v1/iad/liveness/evaluate and /api/v1/iad/extract.

  • Multipart endpoints now require the field capture at runtime and reject legacy requests that include only file.

  • Startup failures now propagate to main instead of terminating from the service startup code.

  • Internal IAD validation errors are normalized to Facephi/SelphID-style response values.

  • Expired captures rejected by the experimental replay protection now return the documented public HTTP message 400 documented Replay attack detected.

  • The public evaluation documentation now lists the exact values of reason returned by the service: None, Unknown, UntrustedEnvironment, SuspiciousActivity, UntrustedDevice, SdkIntegrityViolation, UntrustedCorruptedPayload, UntrustedContent and UntrustedContentLowConfidence.

  • The public documentation and OpenAPI examples now describe the new public response contract instead of internal payloads.

Fixed

  • Signal handling no longer invokes logging, shutdown routines, or std::exit from the signal handler.

Removed

  • Engine-shaped public success fields capture_liveness, capture_type, rejection and mime_type.

[1.2.0] - 2026-04-30

Security

  • The values LICENSE_ID and LICENSE_DATA present in the license file are ignored.

Changed

  • The API documentation now includes IAD engine rejection reasons and mappings for error_code validation for service responses.

  • The Swagger/OpenAPI examples now document the HTTP errors 400 originating from the engine for check-capture and extract-image.

  • The demo documentation was improved by adding instructions for changing the IP addresses of the required services.

Fixed

  • The public documentation and version metadata now consistently reference version 1.2.0 .

  • The installation and OpenAPI examples were aligned with the current runtime defaults and endpoint routes /api/v1/iad/*.

[1.1.1] - 2026-03-30

Changed

  • Updated the IAD engine to version 2.5.3.

Fixed

  • Corrected the Docker registry paths to use docker-pro-fphi throughout the documentation and release notes.

  • Updated the OpenAPI specification with accurate request/response schemas that match the actual endpoint behavior.

  • Improved the API documentation with examples of the configuration and health check endpoints.

[1.1.0] - 2026-03-20

Added

  • Runtime configuration overrides using environment variables.

  • License error translation utilities and normalized license error reporting for clearer operational diagnostics.

Changed

  • Updated the IAD engine to version 2.5.2.

  • License handling improvements to support offline validation scenarios and provide clearer error reporting.

  • Simplified Dockerfile: changed base image, improved package management, and runtime dependency handling.

Fixed

  • Docker runtime and base image hardening updates.

  • REST proxy error normalization and consistent error creation/reporting routes.

  • Reduced excessive detailed logging in Docker checks and engine activation flows.

[1.0.0] - 2026-02-03

Added

  • Automatic engine activation from license metadata

  • Docker environment detection and automatic engine initialization

  • ProcessExecutor facade for background process management

  • GCC 7 filesystem compatibility layer

Changed

  • BREAKING CHANGE: All endpoints were standardized with the prefix /iad (for example, /api/v1/iad/check-capture)

  • Unified namespace structure across all endpoints

  • Improved engine health check timeouts

  • Improved logging in the engine activation process

  • Simplified ProcessExecutor implementation

  • Refactored internal REST proxy logging

Removed

  • BREAKING CHANGE: The endpoint was removed /extract_data (functionality consolidated)

Fixed

  • Filesystem compatibility issues with older GCC versions

  • Timing synchronization during engine initialization in Docker environments

[0.0.1] - 2026-01-29

Added

  • Initial release of the IAD Service REST API

  • Endpoint /api/v1/iad/check-capture for injection attack detection

  • Endpoint /api/v1/iad/extract-image for extracting images from validated screenshots

  • Management endpoint /api/v1/iad/version for the version and license status

  • Management endpoint /api/v1/iad/health for health monitoring

  • Management endpoints /api/v1/iad/config (GET/POST) for configuration management

  • Connection pool for communication with the engine

  • Automatic retry mechanism with configurable backoff

  • Dynamic configuration updates without restarting the service

  • Docker-based deployment with Ubuntu 24.04

  • Support for online and offline license validation

  • Comprehensive logging with configurable levels and rotation

  • OpenAPI 3.0 specification (Swagger documentation)

Last updated