Archives
Archives are versioned snapshots of provider IP ranges shipped with EdgeTrust (under package resources) and refreshed by sync tooling.
Why archives exist
- Offline / bundled mode without calling provider APIs from production traffic
- Deterministic deploys: the same package version includes the same CIDR sets until you sync
- Safe fallbacks for hybrid mode when a live fetch fails
- CI-driven updates that validate before tagging a release
What an archive contains
Typical archive contents (exact on-disk layout may evolve with package releases):
- Per-provider CIDR lists (IPv4 / IPv6)
- Manifest metadata: fetched-at timestamps, source URLs, counts
- Checksums used during validation and atomic install
Updating archives
In your application
php artisan edge-trust:sync
# alias / related:
php artisan edge-trust:updateThese commands fetch enabled providers, validate payloads, and write archives atomically. On failure, the previous archive is preserved.
In package maintenance (upstream)
The repository CI runs the Symfony Console entrypoint php bin/update-archives.php (or composer update-archives) on a schedule. That command fetches via the same provider classes as the package, writes archive files, and exports commit/release summary artifacts. The workflow only runs tests, commits with the exported message, and publishes the exported release notes.
Integrity
Updates are all-or-nothing by default for a given sync operation unless you explicitly allow partial success. Validation rejects empty sets and global ranges (0.0.0.0/0, ::/0). See Validation.
Inspecting state
php artisan edge-trust:status
php artisan edge-trust:liststatus summarizes mode and freshness; list prints resolved CIDRs for enabled providers.