How it works
- The Miru Agent detects a new file to upload
- The Agent registers a new upload with the Miru control plane.
- Using credentials setup in the bucket connection, the control plane issues a short-lived token valid only for the exact storage object key the file will be uploaded to.
- The Agent uploads the file directly to your bucket.
File detection
The Agent uploads a file once it is confident the file has finished being written to. Completion is determined by quiescence: a file whose size and modification time have held steady for the rule’sstability_window_secs
is considered finished and eligible for upload.
While this works for any file type, it is a heuristic for detecting when a file is
finished being written to. For deterministic completion detection, write to a file location that does not match the rule’s glob and rename on completion. This ensures the Miru Agent only ever sees finished files — zero false positives.
The Agent only uploads files that are new or have changed since the rule took effect on
the device. Files that already match a rule when it is deployed are skipped. See
deployment for details.
Device data isolation
Devices’ uploads are strictly isolated from each other. For each upload, Miru renders the object key from the rule’s upload path and issues the device credentials scoped to that exact object key. Each object key in a bucket is restricted to at most one upload, so devices never receive credentials that grant any access to another device’s data. Uploads whose object key conflicts with an existing upload are given a unique fallback path to ensure the upload succeeds without overwriting existing data.Object metadata
Each uploaded object is stamped with the upload’s provenance as cloud object metadata (S3x-amz-meta-* / GCS x-goog-meta-*), so every file is self-describing in your
bucket and can be correlated back to exactly what produced it without parsing the
path.
The metadata is a generic map of string keys to string values. The keys currently
stamped are listed below, but the set may evolve. The map stays within the cloud
provider’s object-metadata size limits (roughly 2 KB on S3, 8 KB on GCS).
The version field of the release that was running when the file was detected.Example:
v1.0.0
