-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacOS precompiled tarballs need to be signed to run with Gatekeeper enabled, or Hugo won't run. #13448
Comments
So, I have the building blocks needed to enable signing and notarization this; I both sign and notarise hugoreleaser, but it's a little bit of an extra hassle to set up ... You can certainly override (open anyway ...) this for a given binary; I have Gatekeeper enabled, but I just downloaded and executed the latest hugo. Also, you can use |
Bep, Hugely appreciate the quick response. We have MDM via Intune, but this will likely also be a problem centrally managing with JAMF. We have a workaround by forcing it to be allowed. We're trying to avoid Brew and centrally manage applications for security. For users with Gatekeeper enforcing, and no local admin rights, this will be a showstopper until they can get help from their IT Department. Andrew |
@bep how to open anyway? I am not given that option. |
@Fastidious the trick is, I'm pretty sure, to first open it in Finder:
After this you should be able to run the binary as normal from the terminal. |
FYI - another way: right after you get the dialog above, clidk "Done" - then go into the System Settings -> Security -> scroll down and see an option to open hugo anyway. Once you have done this once it will work going forward. |
Correct but this assumes the user has admin access. Almost everyone is desperately trying to remove admin access for users. |
All, I owe you an apology for a deep discourtesy. I just realized that I've posted to this thread from both my work and personal GitHub accounts in an accidental incident of sockpuppetry. To clarify akirch24 is my work account. I deeply apologize for my mistake and any confusion it might have caused. Andrew |
In recent versions of MacOS, Apple has implemented a tool called Gatekeeper. It is now on by default. More info:
Apple MacOS Gatekeeper
With Gatekeeper enabled, unsigned software will not run. To resolve this Hugo will need to add signing/packaging to their build process for MacOS artifacts.
Steps to reproduce:
Steps to fix:
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
As far as I can tell this is the latest release.
The text was updated successfully, but these errors were encountered: