Drop pwgen/pwqgen requirements
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Closes #167.
This commit is contained in:
parent
283eb21e29
commit
e9fb9e56ad
|
@ -18,6 +18,7 @@
|
||||||
- Skip generation of commented out secrets and correctly fail deploy when secret generation fails ([#133](https://git.autonomic.zone/coop-cloud/abra/issues/133))
|
- Skip generation of commented out secrets and correctly fail deploy when secret generation fails ([#133](https://git.autonomic.zone/coop-cloud/abra/issues/133))
|
||||||
- Fix logging for chaos deploys and recipe selection logic ([#185](https://git.autonomic.zone/coop-cloud/abra/issues/185))
|
- Fix logging for chaos deploys and recipe selection logic ([#185](https://git.autonomic.zone/coop-cloud/abra/issues/185))
|
||||||
- Improve reliability of selectig when to download a new `apps.json` ([#170](https://git.autonomic.zone/coop-cloud/abra/issues/170))
|
- Improve reliability of selectig when to download a new `apps.json` ([#170](https://git.autonomic.zone/coop-cloud/abra/issues/170))
|
||||||
|
- Remove `pwgen`/`pwqgen` as password generator requirements ([#167](https://git.autonomic.zone/coop-cloud/abra/issues/167))
|
||||||
|
|
||||||
# abra 9.0.0 (2021-06-10)
|
# abra 9.0.0 (2021-06-10)
|
||||||
|
|
||||||
|
|
|
@ -25,16 +25,14 @@ See [CHANGELOG.md](./CHANGELOG.md).
|
||||||
|
|
||||||
> [docs.coopcloud.tech](https://docs.coopcloud.tech)
|
> [docs.coopcloud.tech](https://docs.coopcloud.tech)
|
||||||
|
|
||||||
## Install
|
## Requirements
|
||||||
|
|
||||||
Requirements:
|
|
||||||
|
|
||||||
- `pwqgen` (optional)
|
|
||||||
- `pwgen` (optional)
|
|
||||||
- `curl`
|
- `curl`
|
||||||
- `docker`
|
- `docker`
|
||||||
- `bash` >= 4
|
- `bash` >= 4
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
Install the latest stable release:
|
Install the latest stable release:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
16
abra
16
abra
|
@ -652,6 +652,14 @@ checkout_main_or_master() {
|
||||||
git checkout main > /dev/null 2>&1 || git checkout master > /dev/null 2>&1
|
git checkout main > /dev/null 2>&1 || git checkout master > /dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pwgen_native() {
|
||||||
|
tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
pwqgen_native() {
|
||||||
|
shuf -n 3 /usr/share/dict/words | tr -dc 'a-zA-Z0-9' | tr -d '\n'
|
||||||
|
}
|
||||||
|
|
||||||
# FIXME 3wc: update or remove
|
# FIXME 3wc: update or remove
|
||||||
if [ -z "$ABRA_ENV" ] && [ -f .env ] && type direnv > /dev/null 2>&1 && ! direnv status | grep -q 'Found RC allowed true'; then
|
if [ -z "$ABRA_ENV" ] && [ -f .env ] && type direnv > /dev/null 2>&1 && ! direnv status | grep -q 'Found RC allowed true'; then
|
||||||
error "direnv is blocked, run direnv allow"
|
error "direnv is blocked, run direnv allow"
|
||||||
|
@ -1706,11 +1714,9 @@ sub_app_secret_generate(){
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "$length" ]]; then
|
if [[ -n "$length" ]]; then
|
||||||
require_binary pwgen
|
abra__cmd_="pwgen_native $length"
|
||||||
abra__cmd_="pwgen -s $length 1"
|
|
||||||
else
|
else
|
||||||
require_binary pwqgen
|
abra__cmd_=pwqgen_native
|
||||||
abra__cmd_=pwqgen
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PWGEN=${abra__cmd_}
|
PWGEN=${abra__cmd_}
|
||||||
|
@ -1720,7 +1726,7 @@ sub_app_secret_generate(){
|
||||||
error "Required arguments missing"
|
error "Required arguments missing"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PW=$($PWGEN|tr -d "\n")
|
PW=$($PWGEN)
|
||||||
|
|
||||||
success "Password: $PW"
|
success "Password: $PW"
|
||||||
|
|
||||||
|
|
Reference in New Issue