Skip to content
Open
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
4 changes: 3 additions & 1 deletion deploy/kurl/kotsadm/template/base/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,9 @@ function kotsadm_api_encryption_key() {
local src="$DIR/addons/kotsadm/$KOTSADM_VERSION"
local dst="$DIR/kustomize/kotsadm"

local API_ENCRYPTION=$(kubernetes_secret_value default kotsadm-encryption encryptionKey)
local API_ENCRYPTION_ENCODED API_ENCRYPTION
API_ENCRYPTION_ENCODED=$(kubectl -n default get secret kotsadm-encryption --ignore-not-found -ojsonpath="{ .data.encryptionKey }")
API_ENCRYPTION=$(echo "$API_ENCRYPTION_ENCODED" | base64 --decode)

if [ -z "$API_ENCRYPTION" ]; then
# 24 byte key + 12 byte nonce, base64 encoded. This is separate from the base64 encoding used
Expand Down
Loading