Skip to content

fix(bootstrap): secure the Homebrew trust store - #5

Merged
Attamusc merged 1 commit into
mainfrom
fix-homebrew-trust-permissions
Aug 8, 2026
Merged

fix(bootstrap): secure the Homebrew trust store#5
Attamusc merged 1 commit into
mainfrom
fix-homebrew-trust-permissions

Conversation

@Attamusc

@Attamusc Attamusc commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • create Homebrew's trust-store directory with mode 0700
  • honor XDG_CONFIG_HOME when selecting the trust path
  • enforce secure-directory → trust → bundle ordering in the portability contract

Why

The macOS rollout retry reached the new explicit trust step but Homebrew rejected ~/.homebrew because the shared shell's umask 002 had left the directory mode at 0775. The trust files themselves were already 0600.

Verification

  • isolated reproduction: Homebrew rejects a mode-0775 trust directory
  • isolated fix: Homebrew accepts the same directory after mode 0700
  • scripts/check-portability.sh passes
  • protected ignored state, machine-local mise config, and the three protected tracked modifications remain unchanged

Create Homebrew's trust-store directory with mode 0700 before recording the approved OpenCode tap. The shared shell umask otherwise permits group write access, which current Homebrew rejects before it can update trust.json.

Honor XDG_CONFIG_HOME when present and enforce the secure-directory, trust, then bundle ordering in the portability contract.
@Attamusc
Attamusc merged commit 0f46239 into main Aug 8, 2026
1 check passed
@Attamusc
Attamusc deleted the fix-homebrew-trust-permissions branch August 8, 2026 17:45
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.

1 participant