From a5cea82670934255fcd40801f78de59aa79c7391 Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Thu, 19 May 2022 15:59:11 +0200 Subject: [PATCH] docs: clearer masterkey, config iam admin (#3670) Co-authored-by: Florian Forster --- deploy/compose/docker-compose.yml | 3 +-- docs/docs/guides/installation/compose.mdx | 3 --- .../docs/guides/installation/configuration.mdx | 18 ++++++++++-------- docs/docs/guides/installation/linux.mdx | 3 +-- docs/docs/guides/installation/macos.mdx | 3 +-- docs/docs/guides/installation/openlocal.mdx | 3 ++- 6 files changed, 15 insertions(+), 18 deletions(-) diff --git a/deploy/compose/docker-compose.yml b/deploy/compose/docker-compose.yml index a3e9de7763..982af82905 100644 --- a/deploy/compose/docker-compose.yml +++ b/deploy/compose/docker-compose.yml @@ -6,9 +6,8 @@ services: networks: - zitadel image: ghcr.io/zitadel/zitadel:v2.0.0-v2-alpha.3-amd64 - command: admin start-from-init --masterkeyFromEnv + command: admin start-from-init --masterkey "MasterkeyNeedsToHave32Characters" environment: - - ZITADEL_MASTERKEY=${ZITADEL_MASTERKEY} - ZITADEL_DATABASE_HOST=db - ZITADEL_EXTERNALSECURE=false - ZITADEL_DEFAULTINSTANCE_CUSTOMDOMAIN=localhost diff --git a/docs/docs/guides/installation/compose.mdx b/docs/docs/guides/installation/compose.mdx index 47dc0e2d1d..c2e1792896 100644 --- a/docs/docs/guides/installation/compose.mdx +++ b/docs/docs/guides/installation/compose.mdx @@ -1,7 +1,4 @@ ```bash -# Generate a master encryption key -export ZITADEL_MASTERKEY="$(tr -dc A-Za-z0-9 ./zitadel-config.yaml -AdminUser: - Username: my_root_users_name +DefaultInstance: + Human: + Username: root EOF # Create a configuration file containing secrets cat << EOF > ./zitadel-secrets.yaml -AdminUser: - Password: "my_root_users_password" +DefaultInstance: + Human: + Password: RootPassword1! EOF # Pass multiple config files using the --config argument -zitadel admin start-from-init --masterkeyFromEnv --config ./zitadel-config.yaml --config ./zitadel-secrets.yaml +zitadel admin start-from-init --config ./zitadel-config.yaml --config ./zitadel-secrets.yaml --masterkey "MasterkeyNeedsToHave32Characters" ``` diff --git a/docs/docs/guides/installation/linux.mdx b/docs/docs/guides/installation/linux.mdx index 17747a8967..9c00dcd424 100644 --- a/docs/docs/guides/installation/linux.mdx +++ b/docs/docs/guides/installation/linux.mdx @@ -11,7 +11,6 @@ cockroach start-single-node --insecure --background --http-addr :9090 # Configure your environment # Generate a master encryption key -export ZITADEL_MASTERKEY="$(tr -dc A-Za-z0-9 zitadel.localhost* - **password**: *Password1!* +If you configured a different username, replace the substring zitadel-admin above by the username you configured.