Files
zeekay 8ad4a45e8e refactor: rebrand Infisical CLI → Hanzo KMS CLI
- 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
2026-02-24 02:08:49 -08:00

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