Repository navigation
Harden git and mise defaults found by the security audit - #15
Merged
Merged
Conversation
- gitconfig: drop push.followTags, which pushed tags auto-fetched from any remote (e.g. a fork) to origin on a plain git push - zshrc: default MISE_PARANOID=1 and MISE_NOT_FOUND_AUTO_INSTALL=false so a cloned repo's .tool-versions needs `mise trust` and nothing installs just because a command name was typed - ghostty: clipboard-write = ask, so terminal output (prompt, cat) cannot silently replace the clipboard via OSC 52 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Asking before every OSC 52 write gets in the way of normal copying from tmux, herdr, Neovim and SSH sessions. The risk it covered (a crafted directory name replacing the clipboard) still needs a paste plus Enter, and bracketed paste stops a pasted newline from running anything. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Two default changes from a full security audit of the repo.
git remote add fork …→git fetch forkauto-follows the fork's annotated tagv99.0.0→ a later plaingit push origin mainpublishesv99.0.0to origin..tool-versionswithout asking, unlikemise.toml. A cloned repo could therefore pickgithub:/npm:tools for you, and the not-found hook may install them.Not in this PR:
clipboard-write = ask. starship prints directory names and package.json versions raw, so a crafted name can set your clipboard. But a prompt on every OSC 52 write gets in the way of normal copying (tmux, herdr, Neovim, SSH), and the attack still needs you to paste and press Enter. If this is ever worth closing, it belongs in the prompt (strip OSC sequences from starship's output), not in Ghostty.pam_reattach.soloaded by sudo from a user-writable Homebrew prefix. It needs a check on a real Mac first:stat -Lon the path in/etc/pam.d/sudo_localand each of its parent directories.Evidence
git push origin mainprinted* [new tag] v99.0.0 -> v99.0.0, and origin listed the fork's tag.followTags=false): origin has no tags..tool-versions(node 22.0.0):mise ls --currentresolvesnode 22.0.0 (missing)from it.MISE_PARANOID=1):Config files in …/.tool-versions are not trusted. Trust them with mise trust.zsh -n dotfiles/zshrcpasses.Merge Danger
Door: two-way
Plain revert. Each setting can also be overridden locally:
~/.gitconfig, orexport MISE_PARANOID=0before.zshrc.Blast Radius: workflow
git push. Usegit push --follow-tagsorgit push origin <tag>.cdinto each existing project with a.tool-versionsnow needs a one-timemise trust.🤖 Generated with Claude Code