Skip to content

Annex: never record user@host:/path as the repository description - #1654

Closed
bruAristimunha wants to merge 1 commit into
nemarOrg:feature/issue-1671-epic-bru-upload-fixesfrom
bruAristimunha:fix/issue-1399-annex-init-description
Closed

bruAristimunha wants to merge 1 commit into
nemarOrg:feature/issue-1671-epic-bru-upload-fixesfrom
bruAristimunha:fix/issue-1399-annex-init-description

Conversation

@bruAristimunha

@bruAristimunha bruAristimunha commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Problem

#1399: git annex init with no description writes user@host:/absolute/path into the git-annex branch's uuid.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

  • initDataset and ensureGitAnnexInitialized pass the description nemar-deposit; cloneDataset passes nemar-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).
  • The upload's init step replaces an existing default description (a repo initialised 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 (found while testing).

Not in this PR: the old value stays in the history of an already-pushed git-annex branch. 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's uuid.log carries nemar-deposit; a default user@host:/path and user@host:~/path description 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 check on the changed files.

  • CI api-test and integration-dev fail on this PR because it comes from a fork: both call the dev API with the TEST_*_API_KEY secrets, which GitHub does not pass to fork pull requests, so the authenticated cases fail and the unauthenticated ones pass. lint, unit-pure and e2e-sandbox run normally.

'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.
@neuromechanist

Copy link
Copy Markdown
Contributor

The forward privacy fix is integrated by replacement PR #1683 and included in epic PR #1702. The historical back-catalogue rewrite remains a separate undecided part of #1399 and is not claimed here. Closing this original source PR.

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.

2 participants