Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Wright committed Nov 1, 2023
1 parent 2dff8bb commit 0cd9836
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions startup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/bash

set -euo pipefail

VESPA_CERT="${VESPA_CERT:-}"
VESPA_KEY="${VESPA_KEY:-}"
VESPA_SECRETS_LOCATION="${VESPA_SECRETS_LOCATION:-/secrets}"

# base64 decode key/cert supplied in env vars
if [ -n "${VESPA_CERT}" ]; then
echo "${VESPA_CERT}" openssl base64 -A -d > "${VESPA_SECRETS_LOCATION}/cert.pem"
Expand Down

0 comments on commit 0cd9836

Please sign in to comment.