From 50aec198a46a5cf741027a32efad97b8bd7a7740 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Wed, 14 Jan 2026 01:42:28 -0300 Subject: [PATCH] fix: detect vault initialized state correctly --- services/vault/scripts/vault_k8s_auth_configure.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/vault/scripts/vault_k8s_auth_configure.sh b/services/vault/scripts/vault_k8s_auth_configure.sh index 4457fc6..14604cd 100644 --- a/services/vault/scripts/vault_k8s_auth_configure.sh +++ b/services/vault/scripts/vault_k8s_auth_configure.sh @@ -9,12 +9,12 @@ if [ -z "${status_json}" ]; then exit 1 fi -if ! printf '%s' "${status_json}" | grep -q '"initialized":true'; then +if ! printf '%s' "${status_json}" | grep -q '"initialized":[[:space:]]*true'; then log "vault not initialized; skipping" exit 0 fi -if printf '%s' "${status_json}" | grep -q '"sealed":true'; then +if printf '%s' "${status_json}" | grep -q '"sealed":[[:space:]]*true'; then log "vault sealed; skipping" exit 0 fi