Friday, January 17, 2025

CyberArk Conjur cloud cli - how fix zsh: operation not permitted: ./conjur


As a consultant, it's always a pleasure to explore new tools, and since the end of 2024, we have been experimenting with CyberArk's SaaS offering.

The first component we started working with is Conjur Cloud, the SaaS version of Conjur Enterprise, which we are already very familiar with.
Conjur Cloud features an impressive UI that allows users to configure and manage most settings 
seamlessly. 

Like Conjur Enterprise, it also has its own dedicated CLI, which is available for download on the CyberArk Marketplace.After installing the Conjur Cloud CLI on macOS 15.2, I encountered the following error when attempting to execute it:


conjur -version
zsh: operation not permitted: ./conjur

 


After some troubleshooting, I discovered that the binary had been quarantined by macOS 15.2. Running the following command confirmed this:



xattr -l /Applications/ConjurCloudCLI.app/Contents/Resources/conjur/conjur


where I got as output:

com.apple.quarantine: 0187;678a416a;Microsoft\\x20Teams\\x20WebView;



To resolve this issue, I removed the quarantine attribute using the following command:


xattr -d com.apple.quarantine /Applications/ConjurCloudCLI.app/Contents/Resources/conjur/conjur



After applying this fix, I was able to successfully launch the CLI:


conjur --version Conjur Cloud CLI version 1.1.2


No comments:

Post a Comment