Skip to content

Commit

Permalink
website/docs: fix openssl rand commands (#9554)
Browse files Browse the repository at this point in the history
* website/docs: fix openssl rand commands

Signed-off-by: Jens Langhammer <[email protected]>

* Update website/integrations/sources/freeipa/index.md

Co-authored-by: Tana M Berry <[email protected]>
Signed-off-by: Jens L. <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens L. <[email protected]>
Co-authored-by: Tana M Berry <[email protected]>
  • Loading branch information
BeryJu and tanberry authored May 3, 2024
1 parent 13da6f5 commit 49cf10e
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 -base64 32)" >> .env
echo "AUTHENTIK_SECRET_KEY=$(openssl rand -base64 32)" >> .env
echo "PG_PASS=$(openssl rand 32 | base64)" >> .env
echo "AUTHENTIK_SECRET_KEY=$(openssl rand 32 | base64)" >> .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 -base64 32)" >> .env
echo "AUTHENTIK_SECRET_KEY=$(openssl rand -base64 32)" >> .env
echo "PG_PASS=$(openssl rand 32 | base64)" >> .env
echo "AUTHENTIK_SECRET_KEY=$(openssl rand 32 | base64)" >> .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 @@ -46,8 +46,8 @@ test-go:
go test -timeout 0 -v -race -cover ./...

test-docker: ## Run all tests in a docker-compose
echo "PG_PASS=$(openssl rand -base64 32)" >> .env
echo "AUTHENTIK_SECRET_KEY=$(openssl rand -base64 32)" >> .env
echo "PG_PASS=$(shell openssl rand 32 | base64)" >> .env
echo "AUTHENTIK_SECRET_KEY=$(shell openssl rand 32 | base64)" >> .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 -base64 36)" >> .env
echo "AUTHENTIK_SECRET_KEY=$(openssl rand -base64 60)" >> .env
echo "PG_PASS=$(openssl rand 36 | base64)" >> .env
echo "AUTHENTIK_SECRET_KEY=$(openssl rand 60 | base64)" >> .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 -base64 36
openssl rand 60 | base64
```

### Set Values
Expand Down
2 changes: 1 addition & 1 deletion website/integrations/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 -base64 36`.
3. Give the User a password, generated using for example `pwgen 64 1` or `openssl rand 36 | base64`.

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/integrations/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 -base64 36`. Once 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`. After you are done click **Add and Edit**.

![](./01_user_create.png)

Expand Down

0 comments on commit 49cf10e

Please sign in to comment.