From 71a5463237b85a6a9b0456f3ee6e2146e1af6186 Mon Sep 17 00:00:00 2001 From: miwr Date: Mon, 24 Mar 2025 14:20:54 +0100 Subject: [PATCH] rm /tmp/init.txt bao audit enable -path="stdout" file file_path=stdout bao audit enable -path="file" file file_path=/openbao/logs/openbao.log --- template/stacks/ref-implementation/openbao/values.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/template/stacks/ref-implementation/openbao/values.yaml b/template/stacks/ref-implementation/openbao/values.yaml index e97b26c..b4f82a0 100644 --- a/template/stacks/ref-implementation/openbao/values.yaml +++ b/template/stacks/ref-implementation/openbao/values.yaml @@ -40,8 +40,8 @@ server: - -c - | sleep 10 + rm -rf /openbao/data/* bao operator init >> /tmp/init.txt - sleep 100 cat /tmp/init.txt | grep "Key " | awk '{print $NF}' | xargs -I{} bao operator unseal {} echo $(grep "Initial Root Token:" /tmp/init.txt | awk '{print $NF}')| cat > /openbao/data/initial_token.txt echo $(grep "Unseal Key 1:" /tmp/init.txt | awk '{print $NF}')| cat > /openbao/data/unseal_key1.txt @@ -50,8 +50,8 @@ server: echo $(grep "Unseal Key 4:" /tmp/init.txt | awk '{print $NF}')| cat > /openbao/data/unseal_key4.txt echo $(grep "Unseal Key 5:" /tmp/init.txt | awk '{print $NF}')| cat > /openbao/data/unseal_key5.txt bao login $(grep "Initial Root Token:" /tmp/init.txt | awk '{print $NF}') - # rm /tmp/init.txt - # bao audit enable -path="stdout" file file_path=stdout - # bao audit enable -path="file" file file_path=/openbao/logs/openbao.log + rm /tmp/init.txt + bao audit enable -path="stdout" file file_path=stdout + bao audit enable -path="file" file file_path=/openbao/logs/openbao.log ui: enabled: true \ No newline at end of file