mirror of
https://github.com/hanzokms/cli.git
synced 2026-10-30 20:30:00 +00:00
- Binary name: kms (not infisical) - Go module: github.com/hanzokms/cli - Default API: https://kms.hanzo.ai - Config dir: ~/.kms, workspace: .kms.json - Copyright: Hanzo AI Inc. - Keyring service: hanzo-kms - npm package: @hanzokms/cli - GoReleaser, Docker, scripts all updated - External deps (go-sdk, kmip) keep original import paths until forked to hanzokms org
20 lines
623 B
Bash
20 lines
623 B
Bash
#!/bin/sh
|
|
|
|
# MANAGED BY INFISICAL CLI (Do not modify): START
|
|
kmsScanEnabled=$(git config --bool hooks.kms-scan)
|
|
|
|
if [ "$kmsScanEnabled" != "false" ]; then
|
|
kms scan git-changes -v --staged
|
|
exitCode=$?
|
|
if [ $exitCode -eq 1 ]; then
|
|
echo "Commit blocked: Hanzo KMS scan has uncovered secrets in your git commit"
|
|
echo "To disable the Hanzo KMS scan precommit hook run the following command:"
|
|
echo ""
|
|
echo " git config hooks.kms-scan false"
|
|
echo ""
|
|
exit 1
|
|
fi
|
|
else
|
|
echo 'Warning: kms scan precommit disabled'
|
|
fi
|
|
# MANAGED BY INFISICAL CLI (Do not modify): END |