Need to comply with the EU AI Act by 2 December 2026? New users can start with Trufo's AI Labeling Service or C2PA Certificates with your first month free.

New users: AI Labeling Service or C2PA Certificates, first month free.

Topics

Storage Options and Privacy

Control whether Trufo retains signed manifests, whether thumbnails are embedded or transmitted, which region processes your media, and how storage interacts with watermark recovery.


Summary of Privacy and Storage Levers

Control What it does Trade-off
Local mode (Python SDK or Docker) Keeps original media and ingredient bytes on your infrastructure Requires sdk-download key and Trufo Library License
skip_manifest_storage=True Prevents Trufo from storing a copy of the finished manifest Incompatible with per_embed watermarking (400 ManifestStorageRequired)
thumbnail_settings.policy Controls claim and ingredient thumbnail generation (auto, auto_no_ingredient, none) "none" shrinks manifest size and stops generated thumbnails from leaving your host, at the cost of no validator preview thumbnails
EU endpoint (eu.api.trufo.ai) Keeps Cloud-mode media processing, TASK S3 objects, and request logs in EU infrastructure Signing records and watermark IDs are shared globally; register software agents on the same region you sign against

Controlling Manifest Storage (skip_manifest_storage)

By default (skip_manifest_storage=False), Trufo stores a copy of the signed C2PA manifest so it can be retrieved later (for watermark recovery and content records).

Set skip_manifest_storage=True when you want Trufo to sign the claim without retaining a copy of the finished manifest:

from trufo import sign_c2pa_cloud

signed_bytes = sign_c2pa_cloud(
    api_key,
    media_bytes,
    skip_manifest_storage=True,
)

In Local mode (sign_c2pa_local() or trufo-local), original media and ingredient bytes never leave your machine. What does travel to Trufo:

  • Preprocess: your actions and assertions (ingredient media/data replaced by SHA-256 hashes and byte lengths), the input’s MIME type, and your policy settings.
  • Claim signing: the claim to be signed, including manifest titles and generator_info recording your host’s OS and kernel release (e.g., Linux 6.8.0-45-generic).
  • Commit: the finished manifest (thumbnails, embedded ingredient.data, prior C2PA history). It is always sent so Trufo can read its manifest ID; with skip_manifest_storage=True Trufo discards it after reading the ID instead of persisting it.

thumbnail_settings.policy="none" stops new thumbnails from being generated (thumbnails inherited from a signed input’s history are kept). For the strictest Local-mode retention, combine both:

from trufo import sign_c2pa_local
from trufo.c2pa import ManifestSettings, ThumbnailPolicy, ThumbnailSettings

signed_bytes = sign_c2pa_local(
    api_key,
    media_bytes,
    skip_manifest_storage=True,
    manifest_settings=ManifestSettings(
        thumbnail_settings=ThumbnailSettings(policy=ThumbnailPolicy.NONE),
    ),
)

Note: Every manifest signed through Trufo still includes the automatic ai.trufo.identity assertion (oid and validated legal name when OV is active), and request metadata is still metered for billing.


Thumbnail Settings (thumbnail_settings)

C2PA manifests normally embed WebP thumbnails of the signed asset and its ingredients so validators can show visual previews. Thumbnails affect both file size and privacy (if manifest storage is enabled, generated thumbnails are inside the stored manifest).

from trufo.c2pa import ManifestSettings, ThumbnailPolicy, ThumbnailSettings, ThumbnailSize

settings = ManifestSettings(
    thumbnail_settings=ThumbnailSettings(
        policy=ThumbnailPolicy.AUTO_NO_INGREDIENT,  # AUTO (default), AUTO_NO_INGREDIENT, or NONE
        size=ThumbnailSize.MEDIUM,                  # MEDIUM (512 px, default) or HIGH (1024 px)
    ),
)
Policy Claim thumbnail Ingredient thumbnails When to use
AUTO (default) Generated Generated when missing Standard provenance display in C2PA validators
AUTO_NO_INGREDIENT Generated Not generated Smaller manifests or when ingredient visuals shouldn’t be newly thumbnailed
NONE Not generated Not generated Minimum manifest overhead or strict privacy
  • Sizes: MEDIUM caps height+width at 512 px (WebP quality 80); HIGH caps at 1024 px (WebP quality 90). Alpha channels are preserved.
  • Inherited thumbnails: Existing thumbnails already present inside a signed input’s manifest history are preserved regardless of policy.

Storing for Soft-Binding (Watermark Recovery)

Invisible watermarking interacts directly with manifest storage:

  • per_embed watermarking (bound): Requires skip_manifest_storage=False (400 ManifestStorageRequired otherwise). Trufo stores the signed manifest bound to a unique watermark ID (wid) and content ID (cid) so POST /content/recover can return the full manifest even if downstream platforms strip C2PA metadata.
  • per_ai_system watermarking (unbound): Embeds a shared AI-system watermark ID without storing a per-asset soft-binding record, so it can be combined with skip_manifest_storage=True.

Stored content records can be inspected or withdrawn via /content/get, /content/list, and /content/status (see Watermarking and Recovery).


Regional Processing and Ephemeral Task Storage

  • Cloud region selection: Call https://eu.api.trufo.ai (instead of https://api.trufo.ai) to keep Cloud-mode media processing, TASK mode’s ephemeral S3 objects, and request logs in EU infrastructure. Accounts, API keys, AI system registrations, signing records, and watermark IDs are shared across regions — content signed via either endpoint is recoverable from either (see Regions). Your organization’s default_content_region setting applies to dashboard workflows only — configure the API host explicitly in your client.
  • Async S3 tasks (TASK mode): Ephemeral upload URLs expire after 1 hour; download URLs stay valid for up to 15 minutes (refreshable via GET /tasks/{task_id} for 24 hours). Ephemeral S3 input and output objects are deleted automatically after 1–2 days.

Remote Manifests

Trufo always embeds C2PA manifests directly inside its signed output files (hosting new manifests remotely at an external URL is not supported on signing).

When an incoming input file or ingredient references a remote manifest by URL (via XMP dcterms:provenance, such as files saved by Adobe Photoshop), Trufo fetches it from allowed HTTPS hosts (cai-manifests.adobe.com by default), validates it, embeds it in the signed file’s history, and removes the URL reference. Note that fetching reveals to that host that the file is being signed and from which IP address. In Local mode (trufo-provenance 2.4.1+), pass remote_manifest_settings=RemoteManifestSettings(fetch=False) to disable outbound fetches entirely or allowed_hosts=[...] to restrict them to your own hosts — see Remote Manifests.


Reference