-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: support running Make tasks while on Zscaler on macOS
- Loading branch information
Showing
3 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ equinix-metal.swagger.json.orig | |
git_push.sh | ||
services/*/api/ | ||
pkg | ||
.certs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# TODO what about non-Mac on Zscaler? | ||
mkdir -p .certs | ||
|
||
# Eject the usual CA certificates for the local host | ||
security export -t certs -f pemseq -k /System/Library/Keychains/SystemRootCertificates.keychain -o .certs/ca-certificates.crt | ||
|
||
# Append the Zscaler CA certificate to the bundle | ||
security find-certificate -p -c "Zscaler" /Library/Keychains/System.keychain >> .certs/ca-certificates.crt | ||
|
||
# Set the magic env var so that Make tasks that run Docker commands | ||
# will overwrite the image's built-in CA cert bundle with our own | ||
export CUSTOM_CERT_VOLUME="-v `pwd`/.certs:/etc/ssl/certs" |