Skip to content

chore: gitignore pkgs/id .ssh-host-key SSH host private key (#443) - #444

Merged
dezren39 merged 1 commit into
mainfrom
creator/443-ssh-host-key-gitignore
Oct 20, 2026
Merged

dezren39 merged 1 commit into
mainfrom
creator/443-ssh-host-key-gitignore

Conversation

@dezren39

@dezren39 dezren39 commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Fixes #443

One line: root .gitignore gains .ssh-host-key beside the other pkgs/id entries (.identity.redb / events.redb), so the SSH host private key that id serve creates CWD-relative (world_ssh.rs:31 SSH_HOST_KEY_FILE, persisted by load_or_create_host_key via write_private_file) is ignored at any depth.

Verified on this branch with git check-ignore:

  • .ssh-host-key now IGNORED at the repo root, in pkgs/id/, and in sub/deep/ — on main every one of those probes was NOT IGNORED.
  • Audit of every *_FILE / *_PATH / FILE_NAME constant in pkgs/id/src — all covered after this change: .iroh-key, .iroh-key-client, .iroh-store/…, .iroh-serve.lock, .iroh-allowed, .iroh-meta/registry.json (via .iroh*), .identity.db, .identity.redb, .ssh-host-key (new), events.redb, events.redb.tmp, groups.jsonl, and the world files under .id-worlds/ (journal.jsonl, modules/*.wasm, …). This was the last gap.
  • git ls-files shows no tracked .ssh-host-key, so nothing needs git rm --cached; git ls-files -ci --exclude-standard returns only the pre-existing intentional fixtures (the test.* set), unchanged by this PR.
  • A dummy .ssh-host-key created at the root leaves git status clean (only the .gitignore edit shows).

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • Chores
    • Updated project file exclusions to prevent local SSH host key files from being tracked.

@dezren39
dezren39 requested a review from a team as a code owner October 20, 2026 22:03
@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1caf8913-2ef7-419e-8150-97dfdf3b21dd
📥 Commits

Reviewing files that changed from the base of the PR and between f3ab579 and 69e7c92.

📒 Files selected for processing: 1
  • .gitignore

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

The root .gitignore now includes an ignore rule for .ssh-host-key, an SSH host private key file.

Changes: SSH host key ignore

Layer / File(s) Summary
Add SSH host key ignore rule
.gitignore
The root ignore file adds an entry for .ssh-host-key.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Other · Severity of issue fixed: High

Merge Risk: ⚪ Minimal · up to 69e7c

This scoped ignore-rule change is ready to merge.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly identifies the main change: adding the generated SSH host private key to gitignore for pkgs/id. It is specific and related to the pull request.
Linked Issues check Passed Issue #443 is active and directly linked. The reviewed .gitignore contains the unanchored .ssh-host-key entry beside .identity.redb, events.redb, and the other pkgs/id entries. The PR eviden…
Out of Scope Changes check Passed The reviewed change adds only .ssh-host-key to the root .gitignore. The entry protects the CWD-relative private key described by issue #443. The PR evidence reports no other file changes or tracke…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Full details: Linked Issues check

Explanation

Issue #443 is active and directly linked. The reviewed .gitignore contains the unanchored .ssh-host-key entry beside .identity.redb, events.redb, and the other pkgs/id entries. The PR evidence reports git check-ignore -v success at the repository root, pkgs/id/, and a nested directory; a dummy key leaves git status clean; the pkgs/id/src path-constant audit is complete; and no tracked file becomes ignored. These changes satisfy the issue's coding requirements.

Full details: Out of Scope Changes check

Explanation

The reviewed change adds only .ssh-host-key to the root .gitignore. The entry protects the CWD-relative private key described by issue #443. The PR evidence reports no other file changes or tracked-file changes. The change stays within the linked issue scope.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T22:04:58.852588Z 69e7c92 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit 68d7d81 into main Oct 20, 2026
4 checks passed
@dezren39
dezren39 deleted the creator/443-ssh-host-key-gitignore branch October 20, 2026 22:06
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.

pkgs/id: .ssh-host-key (SSH host private key) gitignored nowhere — CWD-relative serve artifact one git add -A from commit

1 participant