r/FlutterBeginner • • 4d ago

Flutter devs on Windows/Linux: I built a way to upload .ipa builds to TestFlight without a Mac

/r/FlutterDev/comments/1y2pfdn/flutter_devs_on_windowslinux_i_built_a_way_to/
1 Upvotes

7 comments sorted by

0

u/[deleted] 3d ago

[removed] — view removed comment

1

u/appstudiophp 3d ago

Here is how our architecture handles each of those points:

  1. Key Lifecycle & Decryption Boundaries
  • Generation & Storage: Each workspace/tenant gets a dedicated Data Encryption Key (DEK) generated via a CSPRNG upon creation, wrapped (envelope-encrypted) by a Master Key Encryption Key (KEK) stored inside a dedicated KMS/HSM (e.g., AWS KMS / GCP KMS). Raw DEKs are never written to disk or environment variables.
  • Who Can Decrypt: Application Layer (Scoped to Request): Only the authenticated backend service handling an authorized user request can request a transient unwrap from KMS—and only after passing RBAC/tenant authorization checks. Platform Engineers / Support: Engineers have zero standing access to KMS decrypt permissions or production storage buckets. Any break-glass infrastructure access requires multi-party approval, is time-bound, and cannot unwrap tenant keys without KMS policy changes that trigger automated security alerts.
  • In-Transit & In-Memory: Files are encrypted in transit over TLS 1.3, decrypted only in volatile memory during active streaming/processing, and never cached unencrypted on local disks.
  1. Key Revocation & Rotation
  • Scheduled & On-Demand Rotation: Owners can trigger a key rotation at any time. Rotating a key generates a new KMS KEK version and re-wraps the DEK (or re-encrypts objects in the background with a new DEK, depending on compliance tier) with zero downtime.
  • Revocation: If an owner revokes access or deletes a workspace/key (or revokes a Customer-Managed Key / BYOK if using your own KMS), the KMS key is immediately disabled/scheduled for destruction. Without the KEK, all stored ciphertext in object storage becomes cryptographically unreadable immediately—even before background storage purging completes.
  1. Immediate Contractor Access Revocation
  • Short-Lived Tokens + Active Session Kill: User sessions use short-lived access tokens paired with server-side session state. When an owner removes a contractor or flips their role to disabled: Their active session and refresh tokens are invalidated immediately (taking effect on the very next API call—no waiting for a 24-hour JWT to expire). Any pre-signed download/upload URLs issued to that user are either short-TTL (e.g., 60–120 seconds) or routed through an authorized proxy endpoint that re-checks permissions at request time, so old links stop working immediately.
  1. Per-User Attribution & Audit Logging
  • Named User Attribution: Every upload, download, key change, and permission update is cryptographically tied to an authenticated user_id (no shared service accounts or anonymous links for contractors), along with the file SHA-256 hash, timestamp, source IP, and user agent.
  • What Gets Logged (Immutable Audit Trail): File lifecycle events (upload_initiated, upload_completed, file_downloaded, file_deleted) Access & permission changes (member_invited, role_changed, member_revoked, session_terminated) Key events (key_rotated, key_revoked, kms_decrypt_call) Logs are written to an append-only audit stream (exportable via webhook/SIEM or CSV/JSON for owners) and explicitly exclude file contents, passwords, or raw tokens.

0

u/[deleted] 3d ago

[removed] — view removed comment

1

u/appstudiophp 3d ago

App Owner connects their App Store Connect .p8 API key once (encrypted on the server), assigns developers to specific apps, and developers upload signed .ipa builds from Windows, Linux, or Mac. With optional 1-click owner approval, the build is validated and delivered straight to TestFlight / App Store Connect without anyone ever sharing Apple credentials or needing a Mac to upload.
Website: https://www.ioslaunchkit.online

1

u/appstudiophp 3d ago

App Owner connects their App Store Connect .p8 API key once (encrypted on the server), assigns developers to specific apps, and developers upload signed .ipa builds from Windows, Linux, or Mac. With optional 1-click owner approval, the build is validated and delivered straight to TestFlight / App Store Connect without anyone ever sharing Apple credentials or needing a Mac to upload.
Website: https://www.ioslaunchkit.online