Skip to content

fix: harden migration edge cases, SQLite indexing, and unified DEB/RPM CI/CD release pipeline - #19

Merged
loverustfs merged 1 commit into
mainfrom
fix/audit-hardening-and-cicd
Nov 27, 2026
Merged

loverustfs merged 1 commit into
mainfrom
fix/audit-hardening-and-cicd

Conversation

@loverustfs

Copy link
Copy Markdown
Contributor

Summary

  • Config & Auth Hardening: Prevent whitespace-only env vars (BUCKET=" ") from clobbering single-bucket YAML configs; trim session_token values; normalize default :80/:443 ports across ValidatePair and BindMigration.
  • Metadata & Error Classification: Normalize omitted source Content-Type to application/octet-stream, preserve raw non-RFC1123 Expires headers (ExpiresString), reconcile lost CompleteMultipartUpload responses returning NoSuchUpload, and prevent s3client.IsCanceled substring false positives on 404 responses.
  • SQLite State, Scalability & CLI: Track seen_generation to prune deleted source rows upon completed rescans; replace idx_objects_status with composite idx_objects_status_key(status, key) to eliminate TEMP B-TREE sorting; avoid creating temp SQLite DBs in diff unless --extra/--strict is set; support read-only directory status and bracket-containing state paths.
  • Unified CI/CD & Release Packaging (.github/workflows/ci-cd.yml): Consolidate regression, MinIO→RustFS E2E, and multi-format release packaging producing:
    1. Linux amd64 standalone binary & .tar.gz
    2. Linux arm64 standalone binary & .tar.gz
    3. Windows amd64 standalone .exe & .zip
    4. Linux arm64 .deb (arm64) & .rpm (aarch64)
    5. Linux amd64 .deb (amd64) & .rpm (x86_64)
      plus verified SHA256SUMS.

…B/RPM CI/CD pipeline

- Prevent whitespace-only BUCKET/path env vars from clobbering YAML and trim session_token values
- Normalize missing source Content-Type to S3 default and preserve raw non-RFC1123 Expires headers
- Exclude structured HTTP/S3 responses from untyped IsCanceled substring matching
- Track seen_generation in SQLite and prune deleted source keys on completed rescans to unblock --strict
- Upgrade SQLite status index to (status, key) with ordered index-merge pagination and skip unneeded diff temp DBs
- Reconcile lost CompleteMultipartUpload responses when SDK retries return NoSuchUpload
- Normalize default HTTP/HTTPS ports (:80/:443) across ValidatePair and BindMigration
- Support read-only directory/snapshot status via safe immutable fallback when no uncheckpointed WAL exists
- Replace filepath.Glob in statusTargets with os.ReadDir prefix/suffix matching and deduplicate bound buckets
- Pre-check multipart part size against spool_max_bytes before CreateMultipartUpload and defer diff JSONL creation
- Consolidate CI/CD into .github/workflows/ci-cd.yml generating Linux (amd64/arm64) binaries, tar.gz, DEB & RPM packages, and Windows (amd64) exe & zip release artifacts
@loverustfs
loverustfs merged commit 168fe57 into main Nov 27, 2026
6 checks passed
@loverustfs
loverustfs deleted the fix/audit-hardening-and-cicd branch November 27, 2026 11:37
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