Changelog
[3.0.0] - 2026-09-25
Breaking changes
Version
3.0.0breaks public REST API compatibility with the2.xseries: the evaluation route and the values ofdiagnosticand the fields in successful evaluation responses have changed.POST /api/v1/iad/evaluatereplacesPOST /api/v1/iad/liveness/evaluate, which is no longer registered.diagnosticreturnsNoAttackorAttackinstead ofLiveorNoLive.In
GET /api/v1/iad/metrics, thequality.livenessblock is renamed toquality.detection, and its countersliveandnoLiveare renamed tonoAttackandattack.GET /api/v1/iad/healthreturns HTTP503(ServiceUnavailable) when the service cannot handle evaluations: the service is not initialized, the license is invalid (previously, HTTP200withUnhealthy: <motivo> (code: <código>)) or the analysis engine is not responding (previously, HTTP400).POST /api/v1/iad/evaluate,POST /api/v1/iad/evaluate/customandPOST /api/v1/iad/extractreturn HTTP503(ServiceUnavailable) withEngine communication error: <detalle>when the analysis engine does not respond. Previously, they returned HTTP400withErrorProcessing(/evaluateand/evaluate/custom) or withEngine communication error: Too many retries(/extract).
Added
Endpoint
POST /api/v1/iad/evaluate/custom, which evaluates the capture using the analysis pipeline (iad_r01oriad_r00) and calibration (regularorhardened) selected by the client.Fields
transactionId(unique UUID v4 per request) andtimestamp(ISO-8601 UTC with milliseconds) in successful evaluation responses.GET /api/v1/iad/metrics/prometheusnow publishes the complete snapshot of/metrics: in addition to the HTTP-level series with the prefixfacephi_, the service's own sections (identity, status, usage, quality, and alerts) with the prefixfacephi_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 variableFACEPHI_IAD_ENGINE_HEALTH_MAX_AGE_SECONDS, 10 seconds by default): the time for whichGET /api/v1/iad/healthreuses the most recent analysis engine check.The windows
1m,5mand15min thetrafficsection ofGET /api/v1/iad/metricsincludeclientErrors,serverErrorsandunauthorized, whichGET /api/v1/iad/metrics/prometheuspublishes asfacephi_window_client_errors,facephi_window_server_errorsandfacephi_window_unauthorized.Capture operations check the license on every request: if it becomes invalid while the service is running, they respond with HTTP
400withInvalid 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_QUALITYforGET /api/v1/iad/metricsbecomesRecent 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 theLOW_QUALITYalert or leave the service in adegraded.quality.summary.lowQualitySamplesandLOW_QUALITYreflects only captures that the analysis engine could not evaluate (errorsNoneBecause*).JWT validation tolerates a 60-second clock skew when checking
expandnbf, so a token is accepted up to 60 seconds after it expires. Tokens that are not yet valid are rejected with HTTP401and the messageJWT 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/healthreuses the latest analysis engine check, whether successful or failed, forengine_health_max_age_secondsand, 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 byengine_max_retries, and responding could take several seconds.When the license is invalid,
GET /api/v1/iad/metricsreports only theLICENSE_EXPIREDalert, without also marking the analysis engine as unavailable.POST /api/v1/iad/extractnormalizes analysis engine errors the same way as/evaluate(NoneBecause*,Replay attack detectedandErrorFacialImagefor unclassified failures), instead of returning them asEngine communication error: <detalle>.GET /api/v1/iad/configwith the service uninitialized andPOST /api/v1/iad/configwith anconfig_json_stringthat cannot be loaded respond with HTTP400instead of500.The classification
degradedofGET /api/v1/iad/metricsonly considers server errors from the last 5 minutes, rather than all errors since startup. The error rate used to classify the service and triggerHIGH_ERROR_RATEexcludes captures rejected withReplay attack detected.
Removed
The fields
probability,score,faceProbability,sdkDurationandqueueDurationfrom 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_thresholdandmetrics_quality_alert_window_seconds. They are configured inconfig.jsonor with the environment variablesFACEPHI_IAD_REST_METRICS_*, and are the only parameters thatPOST /api/v1/iad/configapplies at runtime.
Changed
Updated the internal analysis engine.
The
LOW_QUALITYstops being persistent: it is deactivated when no low-quality samples are observed formetrics_quality_alert_window_seconds(900 seconds by default), andquality.summary.lowQualitySinceindicates the start of the current episode.The
saturatedandsaturation.backlogSuspectedclassifications require the number of in-flight requests to strictly exceed the configured threads, so the request reading/metricsno 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/metricsandGET /api/v1/iad/metrics/prometheusfor operational snapshots and Prometheus-format exposure.Unit and integration tests for health snapshots and metrics endpoints.
Changed
GET /api/v1/iad/healthcontinues to actively check the engine, while/metricsexposes 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/confignow reject JWT authentication keys; these values must be configured only at startup usingconfig.jsonor the environment variablesFACEPHI_IAD_REST_*.
[2.0.0] - 2026-05-26
Breaking changes
Version
2.0.0breaks public Rest API compatibility with the1.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,sdkDurationandqueueDuration.Experimental replay-attack mitigation documented as a public capability of facephi-iad-service, with startup environment variables
FACEPHI_IAD_REPLAY_ATTACK_CHECKER_ENABLEDandFACEPHI_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/evaluateand/api/v1/iad/extract.Multipart endpoints now require the field
captureat runtime and reject legacy requests that include onlyfile.Startup failures now propagate to
maininstead 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
400documentedReplay attack detected.The public evaluation documentation now lists the exact values of
reasonreturned by the service:None,Unknown,UntrustedEnvironment,SuspiciousActivity,UntrustedDevice,SdkIntegrityViolation,UntrustedCorruptedPayload,UntrustedContentandUntrustedContentLowConfidence.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::exitfrom the signal handler.
Removed
Engine-shaped public success fields
capture_liveness,capture_type,rejectionandmime_type.
[1.2.0] - 2026-04-30
Security
The values
LICENSE_IDandLICENSE_DATApresent in the license file are ignored.
Changed
The API documentation now includes IAD engine rejection reasons and mappings for
error_codevalidation for service responses.The Swagger/OpenAPI examples now document the HTTP errors
400originating from the engine forcheck-captureandextract-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-fphithroughout 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-capturefor injection attack detectionEndpoint
/api/v1/iad/extract-imagefor extracting images from validated screenshotsManagement endpoint
/api/v1/iad/versionfor the version and license statusManagement endpoint
/api/v1/iad/healthfor health monitoringManagement endpoints
/api/v1/iad/config(GET/POST) for configuration managementConnection 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