Patching cask google-cloud-sdk to use formula certifi #5250
Unanswered
epiccoolguy
asked this question in
Casks
Replies: 1 comment
-
We don't generally make modifications to precompiled binaries/casks so a tap seems best for this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Output of
brew config
Output of
brew doctor
Description of issue
Hi,
I have recently started working in a corporate environment which enforces "SSL inspection". This means that when setting up a TLS connection to a remote server, your client will be presented a certificate issued by a root certificate authority that is provisioned by the company through MDM. Because the CA certificate is not included in public CA bundles, the verification of the certificate may fail.
This generally isn't an issue with applications that respect the native trust store (Keychain), but it seems that some Python tools have issues, because they come with their own CA bundle.
A common package Python tools seem to use is
certifi
, which basically provides a copy of Mozilla's root CA certificate bundle. This library can also be installed with a homebrew formula. When installing certifi with the formula it will instead use a patched version ofca-certificates
that includes the system keychain, so programs using this version of certifi will also trust certificates issued by the private root CA. I originally had an issue using Ansible installed via pip which was solved by switching to Python + certifi + Ansible provided by Homebrew.I'm now encountering the same issue when installing the
google-cloud-sdk
cask where this tool seems to still be using its vendored copy of certifi, despite being provided the Python from Homebrew (which has the patched certifi installed in its environment).The solution I had in mind was:
certifi
formula a dependency ofgoogle-cloud-sdk
caskgoogle-cloud-sdk/lib/third_party/certifi/
BEFORE running the installer in the caskDoes it make sense to have these kinds of modifications in the google-cloud-sdk cask itself or should I create a separate tap for publishing such a patched version of google-cloud-sdk?
Relevant casks
google-cloud-sdk
Beta Was this translation helpful? Give feedback.
All reactions