Skip to content

Commit

Permalink
website/docs: fix goauthentik#9552 openssl rand base64 line wrap (goa…
Browse files Browse the repository at this point in the history
  • Loading branch information
jogerj authored Jun 24, 2024
1 parent e25ceb5 commit 53a4443
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions website/docs/installation/docker-compose.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion website/docs/installation/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion website/docs/sources/active-directory/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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".

Expand Down
2 changes: 1 addition & 1 deletion website/docs/sources/freeipa/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 53a4443

Please sign in to comment.