mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:07:30 +00:00
docs: fix Illegal byte sequence (#9750)
# Which Problems Are Solved In some docs pages, we propose to generate a Zitadel masterkey using the command `tr -dc A-Za-z0-9 </dev/urandom | head -c 32`. However, this fails on some systems/locations with the error message `tr: Illegal byte sequence`. # How the Problems Are Solved We replace the command by this more portable variant: `LC_ALL=C tr -dc '[:graph:]' </dev/urandom | head -c 32` # Additional Changes None # Additional Context Found by @fcoppede while testing #9496. The new command works for him.
This commit is contained in:
@@ -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
|
||||||
tr -dc A-Za-z0-9 </dev/urandom | head -c 32 > ./zitadel-masterkey
|
LC_ALL=C tr -dc '[:graph:]' </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
|
||||||
|
@@ -43,7 +43,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
|
||||||
tr -dc A-Za-z0-9 </dev/urandom | head -c 32 > ./zitadel-masterkey
|
LC_ALL=C tr -dc '[:graph:]' </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
|
||||||
|
@@ -35,7 +35,7 @@ wget https://raw.githubusercontent.com/zitadel/zitadel/main/docs/docs/self-hosti
|
|||||||
# A single ZITADEL instance always needs the same 32 characters long masterkey
|
# A single ZITADEL instance always needs the same 32 characters long masterkey
|
||||||
# If you haven't done so already, you can generate a new one
|
# If you haven't done so already, you can generate a new one
|
||||||
# The key must be passed as argument
|
# The key must be passed as argument
|
||||||
ZITADEL_MASTERKEY="$(tr -dc A-Za-z0-9 </dev/urandom | head -c 32)"
|
ZITADEL_MASTERKEY="$(LC_ALL=C tr -dc '[:graph:]' </dev/urandom | head -c 32)"
|
||||||
|
|
||||||
# Pass zitadel configuration by configuration files
|
# Pass zitadel configuration by configuration files
|
||||||
zitadel start-from-init \
|
zitadel start-from-init \
|
||||||
@@ -62,7 +62,7 @@ export ZITADEL_FIRSTINSTANCE_ORG_HUMAN_PASSWORD="RootPassword1!"
|
|||||||
|
|
||||||
# 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
|
||||||
tr -dc A-Za-z0-9 </dev/urandom | head -c 32 > ./zitadel-masterkey
|
LC_ALL=C tr -dc '[:graph:]' </dev/urandom | head -c 32 > ./zitadel-masterkey
|
||||||
|
|
||||||
# Let the zitadel binary read configuration from environment variables
|
# Let the zitadel binary read configuration from environment variables
|
||||||
zitadel start-from-init --masterkey "${ZITADEL_MASTERKEY}" --tlsMode disabled --masterkeyFile ./zitadel-masterkey
|
zitadel start-from-init --masterkey "${ZITADEL_MASTERKEY}" --tlsMode disabled --masterkeyFile ./zitadel-masterkey
|
||||||
|
Reference in New Issue
Block a user