🤖 AI-Generated Changelog
Added
- Enforce S3 archive budgets with bounded oldest-first cleanup and minimum retention guard
- Reject audio stream additions after MP4 header is written
- Support long directory names in migration staging paths
- Add indexed due-order deletion sweep for more predictable storage cleanup
- Populate camera-scoped detection track and zone metadata in query results
- Exercise MP4 writer watchdog coverage in CI
Changed
- Upgrade dependencies and import go2rtc v1.10.0
- Use completed segment timestamp for recording metadata
- Use short publication directory names with recoverable staging paths
- Serialize migration recovery across active workers to prevent race conditions
- Make MP4 segment duration, heartbeat, and FPS reset atomic across reader and configuration
- Honor policy retention ahead of global age cutoff in deletion decisions
- Use indexed due order for deletion sweeps
- Apply detection maximum age with explicit time bounds for camera-scoped and global queries
- Bound archive disconnect cleanup by elapsed time
- Drain queued archive deletions without idle waits
Fixed
- Fix detection camera identity binding and bound label walk
- Fix RTSP writer cleanup and safe thread join
- Fix TOTP test helper and avoid valid-code collisions
- Fix bounded per-stream detection pruning
- Fix detection lookup consistency and indexed retention batching
- Fix replica cursor persistence and migration failure matching
- Fix go2rtc method test request fields and authorization expectations
- Fix session-token helper call in MFA test
- Fix matching-step indexing in detection interruption test
- Fix MP4 audio stream rejection after header is written
- Preserve detection metadata in readonly row queries
- Preserve open motion intervals in bounded stream pruning
- Preserve captured camera identity when linking detections
- Preserve interrupted migration recovery and recheck retry capacity
- Correct readonly detection filter expectations
- Reject stale deletion lease completions
- Retain unowned migration destinations after cancellation
- Retain all corrupt destination fixture cases
- Accept uppercase SHA-256 digests when verifying S3 downloads
- Honor wildcard
If-Matchconditions in the S3 fixture - Reject dot-only S3 bucket names
- Avoid false S3 low-speed timeouts
- Avoid blocking on migration source opens and preserve restore cancellation
- Avoid blocking on nonregular migration hash inputs
- Recheck deletion eligibility when claiming objects
- Recheck destination before source deletion and reclaim private staging
- Reverify S3 destination before migration commit and after source probe
- Bind restore staging to downloader-owned inode before download
- Bind migration source and destination identities across retries
- Pin archive range reads to a single S3 ETag to prevent drift
- Classify archive source verification conflicts as permanent errors
- Classify migration database failures and retry transient commits distinctly
- Clear migration staging ownership after verified publication
- Atomically enforce migration archive capacity at job creation
- Release deletion database lock between claimed objects
- Renew deletion leases while removing storage objects
- Detect same-inode changes during migration verification
- Count only verified source files actually removed
- Count only active reader stops in recovery watchdog test
- Publish stopped MP4 writer state without ineffective mutex locking
- Remove unused MP4 writer packet recycling
- Remove obsolete HTML path rewrite hook and missing app module workaround
- Handle S3 fixture query routing and SigV4 plus sign encoding
- Handle deletion ledger SQL and directory errors
- Keep open point detections bounded to their timestamp
- Keep verified destination bound through migration source cleanup
- Keep latest API reference language load and lifecycle reentry fetching a fresh document
- Keep storage maintenance running during migrations
- Keep API reference cleanup safe if vendor teardown throws
Security
- Validate S3 checksums and require signed S3 dates for multipart uploads
- Require a checksum before multipart S3 upload proceeds
- Prevent S3 migration uploads from replacing concurrent objects
- Validate multipart source checksums before upload setup
- Validate methods and API paths in browser fixture
🔗 Full Changelog: v0.49.2...v0.50.0