Skip to content

fix(ssh): use account home for authorized keys (takeover of #788) - #808

Merged
vladimirrott merged 10 commits into
mainfrom
take788
Nov 18, 2026
Merged

vladimirrott merged 10 commits into
mainfrom
take788

Conversation

@vladimirrott

Copy link
Copy Markdown
Member

Summary

Lands #788 by @dannyward630 (closes #670): GetAuthorizedKeys and AddAuthorizedKey use the account's home directory, open .ssh with O_DIRECTORY | O_NOFOLLOW and open authorized_keys relative to that descriptor.

I opened this branch because #788 does not allow maintainer edits and main moved twice. It carries the author's commits unchanged, merges main, and sets tests/evidence/workspace-tests.json to 2161 (main's 2160 plus the one test #788 adds). The reviewed code and the approval are on #788 at cb892b6e; merging that head with main and diffing it against this branch shows only the evidence file.

Verification

  • maintainer-merge verify-part on get_authorized_keys_uses_the_fixed_user_helper passed clean and failed under s/"ssh-list", username/"ssh-add", username/, as recorded on fix(ssh): use account home for authorized keys #788.
  • ci-local runs in the pre-push hook of this branch.

@vladimirrott
vladimirrott merged commit b926fcf into main Nov 18, 2026
15 checks passed
@vladimirrott
vladimirrott deleted the take788 branch November 18, 2026 19:34
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.

GetAuthorizedKeys reads /home/<user> while Add and Remove use the account's real home, and Add fails without ~/.ssh

2 participants