Homebrew 不再允许绕过 Gatekeeper 以运行未签名/未公证的软件。
Homebrew no longer allows bypassing Gatekeeper for unsigned/unnotarized software

原始链接: https://github.com/Homebrew/brew/issues/20755

Homebrew 正在弃用 `--no-quarantine` 标志,该标志允许用户绕过 macOS 的 Gatekeeper 安全功能来运行未签名的应用程序。这一决定源于苹果日益增强的安全措施,尤其是在 Apple silicon Mac 上,它们*需要*有效的签名,以及苹果和 Homebrew 都已结束对 Intel 的支持。 目前,该标志主要用于覆盖 macOS 安全设置,而 Homebrew 积极劝阻这种做法。所有 cask 必须通过 Gatekeeper 检查的截止日期为 2026 年 9 月 1 日,因此继续维护该标志已无必要。 移除 `--no-quarantine` 将通过防止轻易绕过操作系统级别的保护来增强用户安全,并与苹果未来的平台方向保持一致。没有考虑替代方案,因为趋势是朝着更强的安全性和签名要求发展。此更改为用户提供了充足的时间来调整工作流程,然后再完全移除该标志。

## Homebrew 更新与 Gatekeeper 限制 Homebrew 正在移除 `--no-quarantine` 标志,该标志先前允许绕过 macOS 的 Gatekeeper 安全检查,用于未经签名/公证的软件,特别是“casks”(预构建应用包)。此更改是由于苹果日益严格的限制,尤其是在 Apple Silicon Mac 上,未经签名的应用程序会被阻止,以及对 Intel Mac 支持的结束。 虽然从源代码编译软件不受影响,但通过 Homebrew 下载和运行预构建的、未经签名的应用程序现在需要通过 macOS 安全设置获得用户批准。此举引发了争论,一些用户哀叹自由和便利性的降低,而另一些用户则支持提高安全性。 Homebrew 维护者已关闭了关于此问题的讨论,理由是已经传达了决定。MacPorts、Nix 和 Mise 等替代方案正在讨论中,一些用户正在考虑转向 Linux,因为 macOS 上的限制越来越严格。核心问题凸显了用户控制与苹果对其生态系统日益严格的控制之间的日益紧张关系。
相关文章

原文

Verification

Provide a detailed description of the proposed feature

--no-quarantine is used to forcibly bypass Gatekeeper, which is a built-in macOS security mechanism. This is used to run unsigned/unnotarized applications.

macOS Tahoe is the final release to support Intel systems, and last year Apple updated macOS runtime protection to make it harder to override Gatekeeper. Macs with Apple silicon also don't "permit native arm64 code to execute unless a valid signature is attached". Finally, we are ending support for all casks that fail Gatekeeper checks on September 1st, 2026.

With the above in mind, it's time to deprecate the --no-quarantine flag from brew. It intentionally bypasses macOS security mechanisms, which we already actively discourage. Deprecating now will give a decent lead time for users using it to come up with another solution or adjust their workflows.

What is the motivation for the feature?

Intel support is coming to an end from both Apple and Homebrew. This flag is primarily used to override a macOS security mechanism, which we do not want to encourage. Since we are requiring casks fulfill Gatekeeper checks next year, there is no reason to keep this flag.

How will the feature be relevant to at least 90% of Homebrew users?

We will provide a safer experience for our users, and stop making it easier to bypass OS-level security.

What alternatives to the feature have been considered?

None. Macs with Apple silicon are the platform that will be supported in the future, and Apple is making it harder to bypass Gatekeeper as is.

联系我们 contact @ memedata.com