9 Commits

Author SHA1 Message Date
c6de93d2da bugfix, tested working 2025-10-29 16:11:24 -04:00
b3e74fa7ef generate and manage CRYPTO_KEY outside of abra 2025-10-29 15:03:23 -04:00
59171ec812 chore: publish 0.5.0+4.6.1 release
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2025-10-29 13:55:11 -04:00
c9644d39f2 update readme
All checks were successful
continuous-integration/drone/push Build is passing
2025-10-29 13:44:44 -04:00
09e2b37332 add gen_key command 2025-10-29 13:18:37 -04:00
72d3dbe370 Update README.md
All checks were successful
continuous-integration/drone/push Build is passing
2025-10-29 16:40:13 +00:00
ea702f7b7f chore: publish 0.4.3+4.6.1 release
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
2025-10-28 13:29:41 -04:00
782f786380 Update compose.yml
All checks were successful
continuous-integration/drone/push Build is passing
2025-10-28 17:23:29 +00:00
487a20deed bump ver in compose.yml
All checks were successful
continuous-integration/drone/push Build is passing
2025-10-28 17:21:19 +00:00
7 changed files with 23 additions and 12 deletions

View File

@ -7,7 +7,7 @@ LETS_ENCRYPT_ENV=production
#==============================================================================
SECRET_SECRET_KEY_VERSION=v1
SECRET_DB_PASSWORD_VERSION=v1
SECRET_CRYPTO_KEY_VERSION=v1
CRYPTO_KEY_VERSION=v1 # This secret is managed in the entrypoint, not as a docker secret
#==============================================================================
# ADMINISTRATION

View File

@ -1,11 +1,11 @@
# liberaforms PRE-Release, testing
# liberaforms
> Ethical form software
<!-- metadata -->
- **Category**: Apps
- **Status**: 0
- **Status**: wip
- **Image**: [`liberaforms`](https://fung.uy/mycosystems/-/packages/container/liberaforms/), 1
- **Healthcheck**: Yes
- **Backups**: Yes
@ -17,10 +17,16 @@
## Quick start
- `abra app new liberaforms --secrets`
- `abra app new liberaforms`
- Generate secrets
- `abra app secret g <domain-name> secret_key v1`
- `abra app secret g <domain-name> db_password v1`
- Set an admin email address `abra app config <domain-name>`
- `abra app deploy <domain-name>`
- Create tables `abra app cmd <domain-name> forms setup_db` more info in [liberaforms docs](https://codeberg.org/LiberaForms/server/src/branch/main/docs/docker.md#create-the-database)
- Generate keypair used to sign form entries/uploads `abra app cmd <domain-name> forms gen_key`
- Insert the key `abra app secret i forms.fung.uy crypto_key v1 <key>`
- Re-deploy
## Admin account setup

View File

@ -40,4 +40,4 @@ setup_db() {
fi
echo "Database setup complete. <3"
}
}

View File

@ -33,7 +33,7 @@ services:
start_period: 1m
forms:
image: fung.uy/mycosystems/liberaforms:v4.5.1
image: fung.uy/mycosystems/liberaforms:v4.6.1
configs:
- source: entrypoint
mode: 555
@ -55,10 +55,10 @@ services:
- DB_PASSWORD_FILE=/run/secrets/db_password
- DB_NAME=liberaforms
- BASE_URL=https://${DOMAIN}
- SERVER_NAME=${DOMAIN}
- ROOT_USER=${ADMIN_USER}
- TMP_DIR=/tmp
- SECRET_KEY_FILE=/run/secrets/secret_key
- CRYPTO_KEY_FILE=/run/secrets/crypto_key
- SESSION_TYPE=filesystem
- LOG_LEVEL=INFO
- LOG_DIR=/app/logs
@ -85,6 +85,7 @@ services:
- LDAP_MAIL_ATTRIB
- LDAP_RECOVER_PASSWD_URL
- E2EE_MODE
- CRYPTO_KEY_VERSION
deploy:
labels:
backupbot.backup: "true"
@ -95,10 +96,10 @@ services:
- uploads:/app/uploads
- log:/app/logs
- static:/app/liberaforms/static
- cryptokey:/cryptokey
secrets:
- db_password
- secret_key
- crypto_key
networks:
- internal
@ -136,15 +137,13 @@ secrets:
secret_key:
external: true
name: ${STACK_NAME}_secret_key_${SECRET_SECRET_KEY_VERSION}
crypto_key:
external: true
name: ${STACK_NAME}_crypto_key_${SECRET_CRYPTO_KEY_VERSION}
volumes:
uploads:
static:
log:
db:
cryptokey:
networks:

View File

@ -25,8 +25,12 @@ file_env() {
}
file_env "DB_PASSWORD"
file_env "CRYPTO_KEY"
file_env "SECRET_KEY"
file_env "LDAP_BIND_PASSWORD"
if [ ! -f "/cryptokey/$CRYPTO_KEY_VERSION" ]; then
flask cryptokey create > /cryptokey/$CRYPTO_KEY_VERSION
fi
export CRYPTO_KEY=`cat /cryptokey/$CRYPTO_KEY_VERSION`
/usr/bin/supervisord -n

1
release/0.4.3+4.6.1 Normal file
View File

@ -0,0 +1 @@
bump liberaforms container to 4.6.1

1
release/0.5.0+4.6.1 Normal file
View File

@ -0,0 +1 @@
add key generation steps to support file uploads in forms.