forked from coop-cloud/rallly
Compare commits
42 Commits
main
...
1.6.2+4.6.1
| Author | SHA1 | Date | |
|---|---|---|---|
| 16550ba885 | |||
| a8c9dd067e | |||
| 23a4eb228b | |||
| e87bd36e79 | |||
| 0da41fc2b8 | |||
| caa2d8330e | |||
| 26e295ab86 | |||
| 7d08da6a8d | |||
| 17a435716e | |||
| 4e21c77a59 | |||
| a60f6baf3d | |||
| 60ee808e31 | |||
| 354a4468a1 | |||
| 2442e06055 | |||
| a7b6da4e65 | |||
| 10fdc4da24 | |||
| ac7bc6d056 | |||
| 77ed60f3f7 | |||
| d900ca7c91 | |||
| 2fdc00144d | |||
| 654a346dff | |||
| 90650d0aa4 | |||
| fcf3974862 | |||
| 2a86760cde | |||
| de2c2f5218 | |||
| eaf161099f | |||
| 45c7b2aaef | |||
| 91e8018410 | |||
| 4a4e536125 | |||
| 0d1bbfa99a | |||
| 957eb45fea | |||
| 2b7bcd5a67 | |||
| 27dd971444 | |||
| 6be1ac13b8 | |||
| db812fd1d3 | |||
| 4ba224875f | |||
| e794bc21fd | |||
| e85b902262 | |||
| d134057749 | |||
| b2319ae650 | |||
| 466126e7d1 | |||
| b95df148f8 |
+9
-4
@@ -6,7 +6,7 @@ steps:
|
||||
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
|
||||
settings:
|
||||
host: swarm-test.autonomic.zone
|
||||
stack: {{ .Name }}
|
||||
stack: rallly
|
||||
generate_secrets: true
|
||||
purge: true
|
||||
deploy_key:
|
||||
@@ -14,9 +14,14 @@ steps:
|
||||
networks:
|
||||
- proxy
|
||||
environment:
|
||||
DOMAIN: {{ .Name }}.swarm-test.autonomic.zone
|
||||
STACK_NAME: {{ .Name }}
|
||||
DOMAIN: rallly.swarm-test.autonomic.zone
|
||||
STACK_NAME: rallly
|
||||
LETS_ENCRYPT_ENV: production
|
||||
SECRET_SECRET_KEY_VERSION: v1
|
||||
SECRET_DB_PASSWORD_VERSION: v1
|
||||
SECRET_SMTP_PWD_VERSION: v1
|
||||
APP_ENTRYPOINT_VERSION: v1
|
||||
PG_BACKUP_VERSION: v1
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
@@ -32,7 +37,7 @@ steps:
|
||||
from_secret: drone_abra-bot_token
|
||||
fork: true
|
||||
repositories:
|
||||
- coop-cloud/auto-recipes-catalogue-json
|
||||
- toolshed/auto-recipes-catalogue-json
|
||||
|
||||
trigger:
|
||||
event: tag
|
||||
|
||||
+11
@@ -1,12 +1,15 @@
|
||||
TYPE=rallly
|
||||
TIMEOUT=300
|
||||
ENABLE_AUTO_UPDATE=true
|
||||
ENABLE_BACKUPS=true
|
||||
|
||||
DOMAIN=rallly.example.com
|
||||
|
||||
## Domain aliases
|
||||
#EXTRA_DOMAINS=', `www.rallly.example.com`'
|
||||
|
||||
COMPOSE_FILE="compose.yml"
|
||||
|
||||
LETS_ENCRYPT_ENV=production
|
||||
|
||||
SECRET_SECRET_KEY_VERSION=v1
|
||||
@@ -18,3 +21,11 @@ SMTP_HOST=mail.example.com
|
||||
SMTP_PORT=465
|
||||
SMTP_SECURE=true
|
||||
SMTP_USER=noreply@example.com
|
||||
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.oidc.yml"
|
||||
#OIDC_ENABLED=1
|
||||
#OIDC_NAME= #The user-facing name of your provider as it will be shown on the login page
|
||||
#OIDC_DISCOVERY_URL= #URL of the .well-known/openid-configuration endpoint for your OIDC provider
|
||||
#OIDC_CLIENT_ID=
|
||||
#OIDC_ISSUER_URL=
|
||||
#SECRET_OIDC_CLIENT_SECRET_VERSION=v1
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
export APP_ENTRYPOINT_VERSION=v2
|
||||
export APP_ENTRYPOINT_VERSION=v3
|
||||
export PG_BACKUP_VERSION=v1
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
authentik:
|
||||
env:
|
||||
OIDC_NAME: "Authentik"
|
||||
OIDC_DISCOVERY_URL: "https://authentik.example.com/application/o/rallly/.well-known/openid-configuration"
|
||||
OIDC_ISSUER_URL: "https://authentik.example.com/application/o/rallly/"
|
||||
OIDC_CLIENT_ID: rallly
|
||||
uncomment:
|
||||
- compose.oidc.yml
|
||||
- SECRET_OIDC_CLIENT_SECRET_VERSION
|
||||
- OIDC_ENABLED
|
||||
shared_secrets:
|
||||
rallly_secret: oidc_client_secret
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
secrets:
|
||||
- oidc_client_secret
|
||||
environment:
|
||||
- OIDC_ENABLED
|
||||
- OIDC_NAME
|
||||
- OIDC_DISCOVERY_URL
|
||||
- OIDC_CLIENT_ID
|
||||
secrets:
|
||||
oidc_client_secret:
|
||||
name: ${STACK_NAME}_oidc_client_secret_${SECRET_OIDC_CLIENT_SECRET_VERSION}
|
||||
external: true
|
||||
+21
-11
@@ -3,7 +3,8 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: lukevella/rallly:2.11.1
|
||||
image: lukevella/rallly:4.6.1
|
||||
hostname: 0.0.0.0
|
||||
networks:
|
||||
- proxy
|
||||
- internal
|
||||
@@ -16,7 +17,9 @@ services:
|
||||
environment:
|
||||
- POSTGRES_PASSWORD_FILE=/run/secrets/db_password
|
||||
- DATABASE=rallly_db:5432/db
|
||||
- NEXT_PUBLIC_BASE_URL=${DOMAIN}
|
||||
- NEXT_PUBLIC_BASE_URL=https://${DOMAIN}
|
||||
- NEXT_PUBLIC_APP_BASE_URL=https://${DOMAIN}
|
||||
- NEXTAUTH_URL=$NEXT_PUBLIC_BASE_URL
|
||||
- SECRET_PASSWORD_FILE=/run/secrets/secret_key
|
||||
- SUPPORT_EMAIL
|
||||
- SMTP_HOST
|
||||
@@ -42,9 +45,10 @@ services:
|
||||
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
||||
- "coop-cloud.${STACK_NAME}.version=0.4.1+2.11.1"
|
||||
- "coop-cloud.${STACK_NAME}.version=1.6.2+4.6.1"
|
||||
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3000"]
|
||||
test: "bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/3000; exit $$?;'"
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
@@ -52,10 +56,11 @@ services:
|
||||
rallly_db:
|
||||
image: postgres:14.8
|
||||
deploy:
|
||||
labels:
|
||||
backupbot.backup: "true"
|
||||
backupbot.backup.pre-hook: "PGPASSWORD=$$(cat /run/secrets/db_password) pg_dump -U postgres $${POSTGRES_DB} > /var/lib/postgresql/data/backup.sql"
|
||||
backupbot.backup.post-hook: "rm -rf /var/lib/postgresql/data/backup.sql"
|
||||
labels:
|
||||
backupbot.backup: "${ENABLE_BACKUPS:-true}"
|
||||
backupbot.backup.pre-hook: "/pg_backup.sh backup"
|
||||
backupbot.backup.volumes.db-data.path: "backup.sql"
|
||||
backupbot.restore.post-hook: '/pg_backup.sh restore'
|
||||
volumes:
|
||||
- db-data:/var/lib/postgresql/data
|
||||
secrets:
|
||||
@@ -63,6 +68,7 @@ services:
|
||||
environment:
|
||||
- POSTGRES_PASSWORD_FILE=/run/secrets/db_password
|
||||
- POSTGRES_DB=db
|
||||
- POSTGRES_USER=postgres
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
interval: 5s
|
||||
@@ -70,6 +76,10 @@ services:
|
||||
retries: 5
|
||||
networks:
|
||||
- internal
|
||||
configs:
|
||||
- source: pg_backup
|
||||
target: /pg_backup.sh
|
||||
mode: 0555
|
||||
|
||||
secrets:
|
||||
db_password:
|
||||
@@ -88,9 +98,6 @@ networks:
|
||||
internal:
|
||||
|
||||
volumes:
|
||||
mongodb_log:
|
||||
mongodb_lib:
|
||||
mongodb:
|
||||
db-data:
|
||||
|
||||
configs:
|
||||
@@ -98,3 +105,6 @@ configs:
|
||||
name: ${STACK_NAME}_app_entrypoint_${APP_ENTRYPOINT_VERSION}
|
||||
file: entrypoint.sh.tmpl
|
||||
template_driver: golang
|
||||
pg_backup:
|
||||
name: ${STACK_NAME}_pg_backup_${PG_BACKUP_VERSION}
|
||||
file: pg_backup.sh
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
{{ if eq (env "OIDC_ENABLED") "1" }}
|
||||
export OIDC_CLIENT_SECRET=$(cat /run/secrets/oidc_client_secret)
|
||||
{{ end }}
|
||||
|
||||
set -eu
|
||||
|
||||
file_env() {
|
||||
@@ -26,6 +30,7 @@ file_env() {
|
||||
file_env "SECRET_PASSWORD"
|
||||
file_env "SMTP_PWD"
|
||||
file_env "POSTGRES_PASSWORD"
|
||||
file_env "OIDC_CLIENT_SECRET"
|
||||
|
||||
export DATABASE_URL=postgres://postgres:$POSTGRES_PASSWORD@$DATABASE
|
||||
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
BACKUP_FILE='/var/lib/postgresql/data/backup.sql'
|
||||
|
||||
function backup {
|
||||
export PGPASSWORD=$(cat /run/secrets/db_password)
|
||||
pg_dump -U ${POSTGRES_USER} ${POSTGRES_DB} > $BACKUP_FILE
|
||||
}
|
||||
|
||||
function restore {
|
||||
cd /var/lib/postgresql/data/
|
||||
restore_config(){
|
||||
# Restore allowed connections
|
||||
cat pg_hba.conf.bak > pg_hba.conf
|
||||
su postgres -c 'pg_ctl reload'
|
||||
}
|
||||
# Don't allow any other connections than local
|
||||
cp pg_hba.conf pg_hba.conf.bak
|
||||
echo "local all all trust" > pg_hba.conf
|
||||
su postgres -c 'pg_ctl reload'
|
||||
trap restore_config EXIT INT TERM
|
||||
|
||||
# Recreate Database
|
||||
psql -U ${POSTGRES_USER} -d postgres -c "DROP DATABASE ${POSTGRES_DB} WITH (FORCE);"
|
||||
createdb -U ${POSTGRES_USER} ${POSTGRES_DB}
|
||||
psql -U ${POSTGRES_USER} -d ${POSTGRES_DB} -1 -f $BACKUP_FILE
|
||||
|
||||
trap - EXIT INT TERM
|
||||
restore_config
|
||||
}
|
||||
|
||||
$@
|
||||
@@ -0,0 +1 @@
|
||||
Rallly and recipe now support oidc. But you need to be registered to create polls now.
|
||||
@@ -0,0 +1 @@
|
||||
BREAKING CHANGE: SSO requires OIDC_ISSUER_URL env.
|
||||
@@ -0,0 +1 @@
|
||||
We've updated Next.js and React to fix two additional vulnerabilities (CVE-2025-55183, CVE-2025-55184) that were discovered while security researchers examined the patches for React2Shell.
|
||||
@@ -0,0 +1 @@
|
||||
The React team has announced that the fix for the Denial of Service vulnerability (CVE-2025-55184) that we patched in v4.5.10 was incomplete. A further patch is required, which has been disclosed as CVE-2025-67779 (High Severity).
|
||||
@@ -0,0 +1 @@
|
||||
This release contains updates to upstream dependencies that include important security fixes. Please update to this version as soon as possible.
|
||||
@@ -0,0 +1 @@
|
||||
Fixed an issue where anonymous users were incorrectly included in the total user count and displayed in the control panel.
|
||||
@@ -0,0 +1 @@
|
||||
This patch release delivers important security fixes and hardens permission checks across the app. We recommend upgrading as soon as possible.
|
||||
@@ -0,0 +1 @@
|
||||
This is a critical security update that upgrades Next.js to address CVE-2025-66478. We strongly recommend all users upgrade to this version immediately.
|
||||
@@ -0,0 +1 @@
|
||||
This release includes updates to dependencies, adds missing translations and fixes a bug where emails for scheduled events are not delivered to a participant's email address.
|
||||
@@ -0,0 +1 @@
|
||||
This release fixes an issue where participants are not able to edit their response using the link they receive in their confirmation email when their session is expired or they are not logged in.
|
||||
@@ -0,0 +1 @@
|
||||
Full dark mode support across the entire application. Users can switch between light, dark, or system themes from their preferences.
|
||||
@@ -0,0 +1 @@
|
||||
This patch fixes an issue where the edit link that is emailed to participants would expire, preventing them from making changes to their response.
|
||||
Reference in New Issue
Block a user