Python
1.37.0: Update dependencies (rclone 1.76, Python 3.14, Flask 3.1), add Dependabot and Trivy scans
DerMilderJoghurt54af3ae980b2
diff --git a/.github/dependabot.yml b/.github/dependabot.ymlnew file mode 100644index 0000000..1db202d--- /dev/null+++ b/.github/dependabot.yml@@ -0,0 +1,24 @@+# Dependabot: weekly pull requests for new versions of the Python packages, the base images+# (python, rclone) and the GitHub Actions used here. Security fixes come as soon as they are published.+version: 2+updates:+ - package-ecosystem: pip+ directory: /app+ schedule:+ interval: weekly+ groups:+ python-packages:+ patterns: ["*"]++ - package-ecosystem: docker+ directory: /+ schedule:+ interval: weekly++ - package-ecosystem: github-actions+ directory: /+ schedule:+ interval: weekly+ groups:+ actions:+ patterns: ["*"]diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.ymlindex 861244b..efa4585 100644--- a/.github/workflows/docker.yml+++ b/.github/workflows/docker.yml@@ -60,6 +60,45 @@ jobs:cache-from: type=ghacache-to: type=gha,mode=max+ # Vulnerability scan of the freshly built image with Trivy. Results appear under Security → Code scanning+ # and in the job log. Does not block the release; new findings show up there and as Dependabot PRs.+ scan:+ needs: build+ runs-on: ubuntu-latest+ permissions:+ contents: read+ security-events: write+ steps:+ - uses: actions/checkout@v4++ - name: Read version from app/VERSION+ id: ver+ run: echo "version=$(tr -d ' \n\r' < app/VERSION)" >> "$GITHUB_OUTPUT"++ - name: Trivy scan (SARIF)+ uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0+ with:+ image-ref: ghcr.io/dermilderjoghurt/mirrorsync:${{ steps.ver.outputs.version }}+ format: sarif+ output: trivy.sarif+ severity: CRITICAL,HIGH,MEDIUM+ ignore-unfixed: true++ - name: Upload results to GitHub Security+ uses: github/codeql-action/upload-sarif@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # v4.39.4+ with:+ sarif_file: trivy.sarif+ category: trivy-image++ - name: Trivy summary (table in the log)+ uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0+ with:+ image-ref: ghcr.io/dermilderjoghurt/mirrorsync:${{ steps.ver.outputs.version }}+ format: table+ severity: CRITICAL,HIGH+ ignore-unfixed: true+ skip-setup-trivy: true+# On a new version in app/VERSION, automatically creates tag vX.Y.Z and a GitHub release# (text from the matching CHANGELOG section, ZIP of the repo attached).release:diff --git a/.github/workflows/security.yml b/.github/workflows/security.ymlnew file mode 100644index 0000000..615f691--- /dev/null+++ b/.github/workflows/security.yml@@ -0,0 +1,31 @@+name: Weekly security scan++# Scans the published image ghcr.io/dermilderjoghurt/mirrorsync:latest once a week with Trivy,+# so vulnerabilities found after a release also show up under Security → Code scanning.+on:+ schedule:+ - cron: "17 5 * * 1" # Mondays 05:17 UTC+ workflow_dispatch:++permissions:+ contents: read+ security-events: write++jobs:+ trivy:+ runs-on: ubuntu-latest+ steps:+ - name: Trivy scan (SARIF)+ uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0+ with:+ image-ref: ghcr.io/dermilderjoghurt/mirrorsync:latest+ format: sarif+ output: trivy.sarif+ severity: CRITICAL,HIGH,MEDIUM+ ignore-unfixed: true++ - name: Upload results to GitHub Security+ uses: github/codeql-action/upload-sarif@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # v4.39.4+ with:+ sarif_file: trivy.sarif+ category: trivy-imagediff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5be6774..705d1ae 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -3,6 +3,14 @@Version numbers follow [SemVer](https://semver.org/): MAJOR.MINOR.PATCH(MAJOR = incompatible change, MINOR = new feature, PATCH = bug fix).+## 1.37.0 – 2026-11-23+- **Dependencies updated:** rclone 1.68 → 1.76, Python 3.12 → 3.14 (Alpine), Flask 3.0.3 → 3.1.3,+ APScheduler 3.10.4 → 3.11.3, tzdata 2024.2 → 2026.6, segno 1.6.1 → 1.6.6. Waitress, Apprise, webauthn and+ swagger-ui-bundle were already current. Mirroring, two-way sync, GUI, API, MCP, 2FA QR code and passkeys tested.+- **Automatic checks on GitHub:** Dependabot opens weekly pull requests for new versions of the Python packages,+ the base images and the GitHub Actions. Trivy scans every newly built image and, once a week, the current image+ for known vulnerabilities; results are under "Security" in the repository.+## 1.36.0 – 2026-11-23- **First-time setup without a one-time code:** as long as no user exists, the first visit in the browser createsthe admin directly (user name and password are enough). The setup code from the container log is gone.diff --git a/Dockerfile b/Dockerfileindex e6b7cc6..213c1a1 100644--- a/Dockerfile+++ b/Dockerfile@@ -1,7 +1,7 @@# Take the rclone binary from the official image-FROM rclone/rclone:1.68 AS rclone+FROM rclone/rclone:1.76 AS rclone-FROM python:3.12-alpine+FROM python:3.14-alpine# Time zone data comes via pip (tzdata), so no apk neededCOPY --from=rclone /usr/local/bin/rclone /usr/local/bin/rclone@@ -18,7 +18,7 @@ RUN for i in 1 2 3; do \exit 1COPY app/ .-ARG VERSION=1.36.0+ARG VERSION=1.37.0LABEL org.opencontainers.image.title="MirrorSync" org.opencontainers.image.version=$VERSIONENV TZ=Europe/Berlin CONFIG_DIR=/config LOG_DIR=/logs PORT=8080 PYTHONUNBUFFERED=1VOLUME ["/config", "/logs"]diff --git a/README.de.md b/README.de.mdindex 2358f68..b11bfeb 100644--- a/README.de.md+++ b/README.de.md@@ -4,7 +4,7 @@# MirrorSync – 1:1-Spiegelung mit Web-GUI und Zeitplänen-Version **1.36.0** · Änderungen siehe [CHANGELOG.md](CHANGELOG.md) (englisch) · [English version](README.md)+Version **1.37.0** · Änderungen siehe [CHANGELOG.md](CHANGELOG.md) (englisch) · [English version](README.md)Ein Docker-Container, der Ordner **einweg 1:1 spiegelt** (wie FreeFileSync „Spiegeln"):Das Ziel wird exakt wie die Quelle, inklusive Löschungen. Als Sync-Motor dient@@ -68,7 +68,7 @@ Geänderte Dateien werden komplett neu übertragen (kein Delta wie bei rsync).## InstallationDas fertige Image liegt in der GitHub Container Registry: `ghcr.io/dermilderjoghurt/mirrorsync`-(für amd64 und arm64, z. B. Raspberry Pi). Tags: `latest` (neueste Version), `1.36.0` (feste Version),+(für amd64 und arm64, z. B. Raspberry Pi). Tags: `latest` (neueste Version), `1.37.0` (feste Version),`1.34` (neuester Patch dieser Version).### Mit Docker Compose (empfohlen)@@ -747,4 +747,6 @@ GUI und unter `/health`.- Beim Bearbeiten Passwortfelder leer lassen, dann bleibt das gespeicherte Passwort erhalten.- Daten liegen in `./config` (Datenbank `mirrorsync.db`, Speicherorte `rclone.conf`) und `./logs` (Lauf-Logs).- Die GUI nur im Heimnetz betreiben oder hinter einen Reverse-Proxy mit HTTPS stellen.-- rclone-Version im `Dockerfile` (`rclone/rclone:1.68`) bei Bedarf auf eine neuere anheben.+- Enthalten sind nur Alpine Linux mit Python 3.14, rclone 1.76 und wenige Python-Pakete (`app/requirements.txt`),+ kein PHP und kein Node.js. Auf GitHub prüft Dependabot jede Woche auf neue Versionen, und Trivy scannt jedes+ Image auf bekannte Schwachstellen (Ergebnisse unter „Security“ im Repo).diff --git a/README.md b/README.mdindex b213501..014642d 100644--- a/README.md+++ b/README.md@@ -4,7 +4,7 @@# MirrorSync – 1:1 mirroring with a web GUI and schedules-Version **1.36.0** · Changes: [CHANGELOG.md](CHANGELOG.md) · [Deutsche Version](README.de.md)+Version **1.37.0** · Changes: [CHANGELOG.md](CHANGELOG.md) · [Deutsche Version](README.de.md)A Docker container that **mirrors folders one-way, 1:1** (like FreeFileSync "Mirror"):the destination becomes an exact copy of the source, including deletions. The sync engine is@@ -67,7 +67,7 @@ Changed files are transferred completely (no delta transfer like rsync).## InstallationThe ready-made image is in the GitHub Container Registry: `ghcr.io/dermilderjoghurt/mirrorsync`-(for amd64 and arm64, e.g. Raspberry Pi). Tags: `latest` (newest version), `1.36.0` (fixed version),+(for amd64 and arm64, e.g. Raspberry Pi). Tags: `latest` (newest version), `1.37.0` (fixed version),`1.34` (newest patch of this version).### With Docker Compose (recommended)@@ -726,7 +726,9 @@ GUI and under `/health`.- When editing, leave password fields empty to keep the stored password.- Data lives in `./config` (database `mirrorsync.db`, storage locations `rclone.conf`) and `./logs` (run logs).- Run the GUI only in your home network or behind a reverse proxy with HTTPS.-- Raise the rclone version in the `Dockerfile` (`rclone/rclone:1.68`) if needed.+- The image contains only Alpine Linux with Python 3.14, rclone 1.76 and a few Python packages+ (`app/requirements.txt`), no PHP and no Node.js. On GitHub, Dependabot checks for new versions every week and+ Trivy scans every image for known vulnerabilities (results under "Security" in the repository).## License[MIT](LICENSE)diff --git a/app/VERSION b/app/VERSIONindex 39fc130..bf50e91 100644--- a/app/VERSION+++ b/app/VERSION@@ -1 +1 @@-1.36.0+1.37.0diff --git a/app/requirements.txt b/app/requirements.txtindex e78a49a..261f70a 100644--- a/app/requirements.txt+++ b/app/requirements.txt@@ -1,8 +1,8 @@-flask==3.0.3-apscheduler==3.10.4+flask==3.1.3+apscheduler==3.11.3waitress==3.0.2-tzdata==2024.2-segno==1.6.1+tzdata==2026.6+segno==1.6.6apprise==2.3.0webauthn==3.0.1swagger-ui-bundle==1.1.0diff --git a/docker-compose.yml b/docker-compose.ymlindex 87a1d4e..4058670 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -8,7 +8,7 @@services:mirrorsync:- image: ghcr.io/dermilderjoghurt/mirrorsync:latest # or a fixed version, e.g. :1.36.0+ image: ghcr.io/dermilderjoghurt/mirrorsync:latest # or a fixed version, e.g. :1.37.0# Build it yourself instead of pulling (Dockerfile and app/ in the same folder):# build: .container_name: mirrorsync