Files
hatchet/hack/dev/generate-local-encryption-keys.sh
Luca Steeb d1a4d35830 chore(pre-commit): lint whitespace (#494)
Adds a whitespace linter to the pre-commit hook to ensure consistent formatting.
It also enables linting of other SQL files such as for SQLc queries.
2024-05-16 09:17:01 -04:00

17 lines
364 B
Bash

#!/bin/bash
# This scripts generates local encryption keys for development.
set -eux
ENCRYPTION_KEYS_DIR=./encryption-keys
# Read CERTS_DIR from args if exists
if [ -n "$1" ]; then
ENCRYPTION_KEYS_DIR=$1
fi
mkdir -p $ENCRYPTION_KEYS_DIR
# Generate a master encryption key
go run ./cmd/hatchet-admin keyset create-local-keys --key-dir $ENCRYPTION_KEYS_DIR