From 53a44435f8e78fc71538a2d658cc60c36e3c5f08 Mon Sep 17 00:00:00 2001 From: Jonathan Joewono <30559735+jogerj@users.noreply.github.com> Date: Mon, 24 Jun 2024 23:19:47 +0200 Subject: [PATCH] website/docs: fix #9552 openssl rand base64 line wrap (#10211) --- .github/workflows/release-publish.yml | 4 ++-- .github/workflows/release-tag.yml | 4 ++-- Makefile | 4 ++-- website/docs/installation/docker-compose.mdx | 4 ++-- website/docs/installation/kubernetes.md | 2 +- website/docs/sources/active-directory/index.md | 2 +- website/docs/sources/freeipa/index.md | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index fefd0b694d29..d038f6abf7d8 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -155,8 +155,8 @@ jobs: - uses: actions/checkout@v4 - name: Run test suite in final docker images run: | - echo "PG_PASS=$(openssl rand 32 | base64)" >> .env - echo "AUTHENTIK_SECRET_KEY=$(openssl rand 32 | base64)" >> .env + echo "PG_PASS=$(openssl rand 32 | base64 -w 0)" >> .env + echo "AUTHENTIK_SECRET_KEY=$(openssl rand 32 | base64 -w 0)" >> .env docker compose pull -q docker compose up --no-start docker compose start postgresql redis diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 0da13b3c3356..96461b09f6db 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@v4 - name: Pre-release test run: | - echo "PG_PASS=$(openssl rand 32 | base64)" >> .env - echo "AUTHENTIK_SECRET_KEY=$(openssl rand 32 | base64)" >> .env + echo "PG_PASS=$(openssl rand 32 | base64 -w 0)" >> .env + echo "AUTHENTIK_SECRET_KEY=$(openssl rand 32 | base64 -w 0)" >> .env docker buildx install mkdir -p ./gen-ts-api docker build -t testing:latest . diff --git a/Makefile b/Makefile index 7562793d98d1..192b0a1393eb 100644 --- a/Makefile +++ b/Makefile @@ -47,8 +47,8 @@ test-go: go test -timeout 0 -v -race -cover ./... test-docker: ## Run all tests in a docker-compose - echo "PG_PASS=$(shell openssl rand 32 | base64)" >> .env - echo "AUTHENTIK_SECRET_KEY=$(shell openssl rand 32 | base64)" >> .env + echo "PG_PASS=$(shell openssl rand 32 | base64 -w 0)" >> .env + echo "AUTHENTIK_SECRET_KEY=$(shell openssl rand 32 | base64 -w 0)" >> .env docker compose pull -q docker compose up --no-start docker compose start postgresql redis diff --git a/website/docs/installation/docker-compose.mdx b/website/docs/installation/docker-compose.mdx index 2704598b2831..6021a598cdb9 100644 --- a/website/docs/installation/docker-compose.mdx +++ b/website/docs/installation/docker-compose.mdx @@ -50,8 +50,8 @@ Run the following commands to generate a password and secret key and write them {/* prettier-ignore */} ```shell -echo "PG_PASS=$(openssl rand 36 | base64)" >> .env -echo "AUTHENTIK_SECRET_KEY=$(openssl rand 60 | base64)" >> .env +echo "PG_PASS=$(openssl rand 36 | base64 -w 0)" >> .env +echo "AUTHENTIK_SECRET_KEY=$(openssl rand 60 | base64 -w 0)" >> .env ``` :::info diff --git a/website/docs/installation/kubernetes.md b/website/docs/installation/kubernetes.md index abb0a26a3ba1..fd7675596128 100644 --- a/website/docs/installation/kubernetes.md +++ b/website/docs/installation/kubernetes.md @@ -23,7 +23,7 @@ Start by generating passwords for the database and cache. You can use either of ```shell pwgen -s 50 1 -openssl rand 60 | base64 +openssl rand 60 | base64 -w 0 ``` ### Set Values diff --git a/website/docs/sources/active-directory/index.md b/website/docs/sources/active-directory/index.md index 3c474e83883e..e5da36f0cb6b 100644 --- a/website/docs/sources/active-directory/index.md +++ b/website/docs/sources/active-directory/index.md @@ -19,7 +19,7 @@ The following placeholders will be used: ![](./01_user_create.png) -3. Give the User a password, generated using for example `pwgen 64 1` or `openssl rand 36 | base64`. +3. Give the User a password, generated using for example `pwgen 64 1` or `openssl rand 36 | base64 -w 0`. 4. Open the Delegation of Control Wizard by right-clicking the domain and selecting "All Tasks". diff --git a/website/docs/sources/freeipa/index.md b/website/docs/sources/freeipa/index.md index b49d7e8a40ef..0722506ffad2 100644 --- a/website/docs/sources/freeipa/index.md +++ b/website/docs/sources/freeipa/index.md @@ -16,7 +16,7 @@ The following placeholders will be used: 1. Log into FreeIPA. -2. Create a user in FreeIPA, matching your naming scheme. Provide a strong password, example generation methods: `pwgen 64 1` or `openssl rand 36 | base64`. After you are done click **Add and Edit**. +2. Create a user in FreeIPA, matching your naming scheme. Provide a strong password, example generation methods: `pwgen 64 1` or `openssl rand 36 | base64 -w 0`. After you are done click **Add and Edit**. ![](./01_user_create.png)