abra should generate correct length

This commit is contained in:
Mayel de Borniol 2022-03-10 08:12:10 +13:00
parent 673ef97bbc
commit 851f562e95
3 changed files with 7 additions and 19 deletions

View File

@ -64,9 +64,9 @@ SECRET_MEILI_MASTER_KEY_VERSION=v1
SECRET_SEEDS_PW_VERSION=v1
SECRET_LIVEBOOK_PASSWORD_VERSION=v1
SECRET_SECRET_KEY_BASE_VERSION=v2
SECRET_SIGNING_SALT_VERSION=v2
SECRET_ENCRYPTION_SALT_VERSION=v2
SECRET_SECRET_KEY_BASE_VERSION=v1 # length=96
SECRET_SIGNING_SALT_VERSION=v1 # length=96
SECRET_ENCRYPTION_SALT_VERSION=v1 # length=96
# ====================================
# You should not have to edit any of the following ones:

View File

@ -17,11 +17,10 @@ A [coop-cloud](https://coopcloud.tech) recipe for deploying [Bonfire](https://bo
1. Set up Docker Swarm and [`abra`]
2. Deploy the [`coop-cloud/traefik`] proxy if you haven't already
3. `abra app new ${REPO_NAME}`
4. Generate secrets with `./secrets.sh YOUR_APP_NAME`
5. `abra app config YOUR_APP_NAME` to edit your config. Be sure to change `$DOMAIN` to something that resolves to your Docker swarm box, check/edit the other config keys
6. `abra app deploy YOUR_APP_NAME`
7. Open the configured domain in your browser and sign up!
3. `abra app new https://github.com/bonfire-networks/bonfire-deploy --secrets`
4. `abra app config YOUR_APP_NAME` to edit your config. Be sure to change `$DOMAIN` to something that resolves to your Docker swarm box, check/edit the other config keys
5. `abra app deploy YOUR_APP_NAME`
6. Open the configured domain in your browser and sign up!
[`abra`]: https://git.coopcloud.tech/coop-cloud/abra

View File

@ -1,11 +0,0 @@
#/bin/sh
abra app secret generate --all $1
s1=$(openssl rand -base64 128)
s2=$(openssl rand -base64 128)
s3=$(openssl rand -base64 128)
abra app secret insert $1 secret_key_base v2 "$s1"
abra app secret insert $1 signing_salt v2 "$s2"
abra app secret insert $1 encryption_salt v2 "$s3"