Skip to content

feat: add embedding extraction endpoint - #71

Draft
Dzejkop wants to merge 1 commit into
mainfrom
feat/extract-embedding
Draft

Dzejkop wants to merge 1 commit into
mainfrom
feat/extract-embedding

Conversation

@Dzejkop

@Dzejkop Dzejkop commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a sealed POST /v1/extract-embedding API for extracting an enrollment embedding from one image
  • relay requests through the untrusted host and perform extraction inside the enclave
  • return the Face Engine vector with its type, version, and inference-backend metadata
  • expose request_extract_embedding in deepface-client and document the new flow

Privacy behavior

The image, extracted embedding, and input-derived failures remain sealed end-to-end. The host learns only whether the enclave answered. Malformed inputs, unsupported protocol versions, and image-analysis failures are returned inside ExtractEmbeddingResult.

Testing

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • cargo test --workspace --locked
  • cargo clippy --workspace --all-targets --locked -- -D warnings (deepface/enclave)
  • cargo test --workspace --locked (deepface/enclave)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant