Build local product stack with Vault-managed secrets (#42)

This commit is contained in:
Stephan D committed 2026-09-12 21:04:42 +02:00
1 parent 8e2ef7aa88
commit 184a3be413
32 files changed
+1191 -10

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
set -eu
umask 077
# Generated by Vault with hexadecimal encoding; never interpolates user input.
case "$NATS_TOKEN" in ''|*[!0-9a-f]*) exit 1;; esac
cat > /run/sxchnge/nats.conf <<CONFIG
port: 4222
http_port: 8222
authorization { token: "$NATS_TOKEN" }
jetstream { store_dir: "/data/jetstream" }
CONFIG
unset NATS_TOKEN
exec nats-server -c /run/sxchnge/nats.conf