This commit is contained in:
Elio Bischof
2025-06-24 10:39:35 +02:00
parent c693939825
commit f0af8edcfd
2 changed files with 3 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ wget https://raw.githubusercontent.com/zitadel/zitadel/main/docs/docs/self-hosti
# A single ZITADEL instance always needs the same 32 bytes long masterkey # A single ZITADEL instance always needs the same 32 bytes long masterkey
# Generate one to a file if you haven't done so already and pass it as environment variable # Generate one to a file if you haven't done so already and pass it as environment variable
LC_ALL=C tr -dc '[:graph:]' </dev/urandom | head -c 32 > ./zitadel-masterkey LC_ALL=C tr -dc '[:alpha:]' </dev/urandom | head -c 32 > ./zitadel-masterkey
export ZITADEL_MASTERKEY="$(cat ./zitadel-masterkey)" export ZITADEL_MASTERKEY="$(cat ./zitadel-masterkey)"
# Run the database and application containers # Run the database and application containers

View File

@@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
set -ex pipefail set -e pipefail
PAT_FILE=${PAT_FILE:-./pat/zitadel-admin-sa.pat} PAT_FILE=${PAT_FILE:-./pat/zitadel-admin-sa.pat}
LOGIN_BASE_URL=${LOGIN_BASE_URL:-"http://localhost:3000"} LOGIN_BASE_URL=${LOGIN_BASE_URL:-"http://localhost:3000"}
@@ -49,7 +49,7 @@ SA_PAT_RESPONSE=$(curl -s --request POST \
--header "Host: ${ZITADEL_API_DOMAIN}" \ --header "Host: ${ZITADEL_API_DOMAIN}" \
--header "Content-Type: application/json" \ --header "Content-Type: application/json" \
-d "{\"expirationDate\": \"2519-04-01T08:45:00.000000Z\"}") -d "{\"expirationDate\": \"2519-04-01T08:45:00.000000Z\"}")
echo "Received Member response: ${MEMBER_RESPONSE}" echo "Received PAT response: ${MEMBER_RESPONSE}"
SA_PAT=$(echo ${SA_PAT_RESPONSE} | jq -r '. | .token') SA_PAT=$(echo ${SA_PAT_RESPONSE} | jq -r '. | .token')
echo "Received ServiceAccount Token: ${SA_PAT}" echo "Received ServiceAccount Token: ${SA_PAT}"