Repository navigation
Annex: never record user@host:/path as the repository description - #1654
Closed
bruAristimunha wants to merge 1 commit into
Closed
bruAristimunha wants to merge 1 commit into
bruAristimunha wants to merge 1 commit into
Conversation
'git annex init' with no description writes user@host:/absolute/path into the git-annex branch's uuid.log, which is public once a dataset is (a cluster upload records login name, node and scratch path). - initDataset and ensureGitAnnexInitialized pass 'nemar-deposit'; cloneDataset passes 'nemar-clone' (admin/CI clones were adding their own entries, see the nemarOrg#1399 comment). - The upload's init step replaces an existing default description (a repo initialized by an older CLI, e.g. a resumed upload) before anything is pushed; a description someone chose is left alone. Paths under $HOME, which git-annex writes as user@host:~/path, are recognised too. The old value stays in the history of an already-pushed git-annex branch; scrubbing that is the separate back-catalogue decision in nemarOrg#1399.
9 tasks done
neuromechanist
changed the base branch from
dev
to
feature/issue-1671-epic-bru-upload-fixes
October 7, 2026 22:06
This was referenced Oct 9, 2026
Contributor
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.
Problem
#1399:
git annex initwith no description writesuser@host:/absolute/pathinto thegit-annexbranch'suuid.log, which is public once the dataset is. An upload from a cluster node publishes the login name, the node name and the full scratch path; this happened on nm000358.Change
initDatasetandensureGitAnnexInitializedpass the descriptionnemar-deposit;cloneDatasetpassesnemar-clone(admin/CI clones were adding their own entries, see the comment in git annex init publishes the depositor's username, host and local path #1399).$HOME, which git-annex writes asuser@host:~/path, are recognised too (found while testing).Not in this PR: the old value stays in the history of an already-pushed
git-annexbranch. Scrubbing that is the back-catalogue decision in #1399, so this covers its forward half and #1399 stays open.Part of #1399
Testing
test/annex-init-description.unit.test.ts(new, 4 tests), real git-annex: a new dataset'suuid.logcarriesnemar-deposit; a defaultuser@host:/pathanduser@host:~/pathdescription is replaced; a chosen one is kept.14 files that import the changed modules: 217 pass, 1 skip, 0 fail (on current
dev).bun run typecheck,biome checkon the changed files.CI
api-testandintegration-devfail on this PR because it comes from a fork: both call the dev API with theTEST_*_API_KEYsecrets, which GitHub does not pass to fork pull requests, so the authenticated cases fail and the unauthenticated ones pass.lint,unit-pureande2e-sandboxrun normally.