Repository navigation
Add public S3 access for git-annex on publication - #102
Merged
neuromechanist merged 2 commits intoFeb 7, 2026
Merged
neuromechanist merged 2 commits into
neuromechanist merged 2 commits into
Conversation
Add s3_public_read step to publication orchestrator that applies public GetObject bucket policy. Extend generate-archive workflow to set public=yes on the nemar-s3 remote so git-annex uses unsigned requests, enabling credential-free downloads after publication. Closes #101
Gate public=yes with client_payload.public parameter so it only runs during publication, not all archive generations. Add fetch-depth: 0 for git-annex branch access. Combine enableremote and push into single step. Add console.error in s3_public_read catch block. Fix step comment numbering (duplicate Step 4, wrong 5/13).
Contributor
Author
PR Review SummaryReviewed by: code-reviewer, silent-failure-hunter, comment-analyzer Critical Issues (1 found, addressed)
Important Issues (4 found, addressed)
Suggestions (3 found, partially addressed)
Strengths
|
neuromechanist
deleted the
101-configure-git-annex-public-s3-remote-on-dataset-publication
branch
February 7, 2026 18:45
2 of 5 tasks
6 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
s3_public_readstep to publication orchestrator that applies public GetObject bucket policy viaaddPublicReadPolicy()generate-archive.ymlworkflow to setpublic=yeson thenemar-s3remote, enabling credential-freegit annex getafter publicationAfter publication, consumers can:
Details
Backend (
admin.ts): News3_public_readstep inserted afterrepo_public, beforetag_protect(publication orchestrator now has 14 steps). Calls the existingaddPublicReadPolicy()which is idempotent and resume-safe.Workflow (
github.ts): Two new steps appended to thegenerate-archive.ymltemplate:git annex enableremote nemar-s3 public=yesandgit push origin git-annex. Thepublic=yesflag tells git-annex to use unsigned S3 requests for downloads. The bucket policy (GetObject only) prevents anonymous uploads.Test plan
bun test)nemar admin publish approve nm099999 -y --sandboxPublicReadDataset_nm099999git annex get .worksCloses #101