diff options
Diffstat (limited to 'ci/release.taskfile.yaml')
-rw-r--r-- | ci/release.taskfile.yaml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ci/release.taskfile.yaml b/ci/release.taskfile.yaml index 4268f25..7fecb07 100644 --- a/ci/release.taskfile.yaml +++ b/ci/release.taskfile.yaml @@ -9,6 +9,7 @@ vars: SSL_DIR: "ssl" DATA_DIR: "data" DEFAULT_EC_CURVE: "secp384r1" + PASS_PEPPER_SIZE: 64 tasks: default: @@ -69,6 +70,23 @@ tasks: platforms: [ windows/amd64 ] ignore_error: true + create-pepper: + desc: "Generates a new pepper for hashing passwords." + vars: + PEPPER_FILE: "secrets/password-pepper.txt" + cmds: + - cmd: mkdir secrets/ + platforms: [ linux, darwin ] + ignore_error: true + - cmd: powershell -Command "mkdir secrets/" + platforms: [ windows/amd64 ] + ignore_error: true + + - cmd: openssl rand -base64 {{.PASS_PEPPER_SIZE}} > {{.PEPPER_FILE}} + platforms: [ linux, darwin ] + + - echo "DO NOT EVER LOSE OR UPDATE THIS FILE!" + create-cert: desc: "Genereates a new self-signed TLS certificate" cmds: |