blob: d25a0abb1b3233377b7e660af7eb7c21612ca2ad [file] [log] [blame]
#/bin/bash
# Creates the salt used to protect all applications from csrf attacks.
set -e -x
source ../kube/config.sh
source ../bash/ramdisk.sh
cd /tmp/ramdisk
head -c 32 /dev/urandom > salt.txt
kubectl create secret generic csrf-salt --from-file=salt.txt
cd -