Repository navigation
Phase: renew S3 credentials during long copies - #1687
neuromechanist merged 5 commits into
Conversation
Independent review recordReviewers checked the upload pipeline/location-log behavior, lease renewal and integration coverage, and credential handling.
The stand-in does not validate the SigV4 signature. The integration test demonstrates that the refreshed access key and session token reach git-annex's S3 requests; it does not claim that the stand-in proves AWS accepted the signature. Local validation: typecheck and lint passed; upload/location-log tests passed (41), stand-in and credential suites passed (6 each). The real API integration test is safety-skipped locally because this checkout has no dev test credentials; the required integration-dev check must execute it before merge. |
CI follow-up for
|
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR1687Version: 🤖 Updated on each push. |
Sandbox E2E result on
|
Integration test accounting fix on
|
Exact-head validation and merge recordValidated PR head
The integration test exercised the dev-issued credential path with S3 requests routed to the loopback stand-in; it did not contact live S3 or validate SigV4 signatures. |
717e85b
into
feature/issue-1671-epic-bru-upload-fixes
Change
This phase continues Bru's fix from PR #1648 for issue #1644. The main dataset upload now copies pending files in batches capped at 200 paths or 50 GiB (a single larger object runs alone). Before each batch it refreshes the STS lease when the remaining time is less than the 20-minute margin plus the longest batch seen so far. After each attempt, the git-annex location log determines which paths remain; an expired-token response triggers a fresh lease and retries only those paths. The existing #1647 whole-upload location-log verification and final recorded-content checks remain in place and use the latest credentials.
The integration test uses real dev API-issued credentials and a real git-annex process, with S3 requests routed only to a loopback stand-in. It keeps returning ExpiredToken for the first renewed access-key ID, then verifies that the application renews again and completes both copies. The stand-in records access-key IDs and one-way session-token fingerprints; it does not validate the SigV4 signature or contact S3.
Scope and limits
The first commit preserves Bru's authorship. The follow-up commits correct the batch progress handling and expand the real integration proof.
Part of #1644 and epic #1671. Supersedes contributor PR #1648.
Review record
Independent pipeline, lease/integration, and security reviews found no remaining actionable findings after the fixes. Review fixes included matching the renewed test lease duration, exercising an actual ExpiredToken retry, checking that refreshed session tokens reach git-annex without logging token material, and requiring HTTPS for the dev API test target.
Verification