This commit is contained in:
miwr 2025-04-02 14:53:08 +02:00
parent a11947c5e7
commit 949cf77c4e
2 changed files with 2 additions and 3 deletions

View file

@ -9,5 +9,5 @@ data:
echo "Starting sidecar listener on port 8080..."
while true; do
echo -e "HTTP/1.1 200 OK\n\nSIGHUP sent to OpenBAO" | nc -l -p 8080
kill -SIGHUP $(pidof bao) || echo "OpenBAO process not found"
kill $(pidof bao) || echo "OpenBAO process not found"
done

View file

@ -24,7 +24,7 @@ server:
subPath: passwd
- name: logrotate2
image: alpine:latest
command: ["/bin/sh", "-c", "sleep infinity"]
command: ["/bin/sh", "-c", "/tmp/sidecar.sh"]
securityContext:
runAsUser: 100
ports:
@ -74,7 +74,6 @@ server:
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 file file_path=stdout
bao audit enable -path="file" file file_path=/openbao/logs/openbao/openbao.log
ui:
enabled: true