Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Swap xxd tool for hexdump #2168

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion provisioning/apps-proxy/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if ! kubectl get secret apps-proxy-salt --namespace apps-proxy > /dev/null 2>&1;
fi

if ! kubectl get secret apps-proxy-csrf-token-salt --namespace apps-proxy > /dev/null 2>&1; then
APPS_PROXY_CSRF_TOKEN_SALT=$(head -c 32 /dev/urandom | openssl enc | xxd -p -c 32)
APPS_PROXY_CSRF_TOKEN_SALT=$(head -c 32 /dev/urandom | openssl enc | hexdump -v -e '/1 "%02x"' -n 32)
export APPS_PROXY_CSRF_TOKEN_SALT
envsubst < kubernetes/templates/proxy/csrf-salt.yaml > kubernetes/deploy/proxy/csrf-salt.yaml
kubectl apply -f ./kubernetes/deploy/proxy/csrf-salt.yaml
Expand Down
Loading