Compare commits

...
5 Commits
Author SHA1 Message Date
bruno d24e8a86d1 Merge pull request 'CI publish-nexus : job Windows NSIS + MSI (phase 4b)' (#78) from ci-job-windows into main
CI / lint (push) Successful in 1m21s
CI / security (push) Successful in 22s
CI / test (push) Successful in 3m43s
CI / build (push) Successful in 10s
CI / e2e (push) Successful in 15m34s
2026-11-20 20:15:11 -05:00
Muse f4332ab5ee CI publish-nexus : job Windows (NSIS + MSI) sur le runner laptop-win
CI / lint (pull_request) Successful in 1m20s
CI / security (pull_request) Successful in 21s
CI / test (pull_request) Successful in 3m46s
CI / build (pull_request) Successful in 12s
CI / e2e (pull_request) Successful in 14m31s
Phase 4b : le runner Windows laptop-win (étiquette windows-latest)
est en ligne. Ajout du job publish-windows au workflow
publish-nexus : Python 3.11 embed préparé comme build-windows.bat
(._pth explicite, get-pip, contrôle d import), staging
backend/frontend, cargo tauri build --bundles nsis,msi sans
artefacts updater (repli NSIS seul en cas d échec, comme le .bat),
dépôt des installeurs dans Nexus suite-dracodev/obsigate-desktop/
<version>/ (ci-deploy) et vérification SHA-256 après
retéléchargement. Le job Linux (phase 4a) est inchangé.
2026-11-20 20:14:39 -05:00
bruno a01b8f9d9d Merge pull request 'CI : publication automatique du .deb Linux dans Nexus (phase 4a)' (#77) from ci-publication-nexus into main
CI / lint (push) Successful in 1m18s
CI / security (push) Successful in 19s
CI / test (push) Successful in 4m7s
CI / build (push) Successful in 12s
CI / e2e (push) Successful in 14m54s
2026-11-20 19:51:57 -05:00
Muse 5ff84a8a6c CI : publication automatique du .deb Linux dans Nexus (phase 4a)
CI / lint (pull_request) Successful in 1m16s
CI / security (pull_request) Successful in 24s
CI / test (pull_request) Successful in 3m42s
CI / build (pull_request) Successful in 10s
CI / e2e (pull_request) Successful in 14m36s
Nouveau workflow publish-nexus : à la publication d une release
(tag = fichier VERSION, cohérence vérifiée avec tauri.conf.json)
ou en lancement manuel, build Tauri du .deb Linux sur le runner
ubuntu-latest et dépôt dans Nexus suite-dracodev/obsigate-desktop/
<version>/ (secrets d organisation Projets, compte ci-deploy),
avec vérification du dépôt par retéléchargement et comparaison.

Les étapes reprennent desktop/build-linux.sh : venv Python à la
racine de python-embed/ (pas de sous-dossier venv/), retrait des
liens symboliques du venv (sinon .deb de ~139 Mo au lieu de ~58),
staging backend/frontend. Build du .deb seul (le Hub ne sert que
le .deb sous Linux) et garde-fou de taille à 95 Mo (limite
Cloudflare ~100 Mo). Sans clé updater : pas d artefacts .sig,
comme en local. Le MSI Windows reste manuel en attendant un
runner Windows (phase 4b) ; desktop-build.yml n est pas touché.
2026-11-20 19:50:42 -05:00
bruno a336746d00 fix: CI — i18n importable en Node + mistune >=3.3.4 (BUG-128, BUG-129)
CI / lint (push) Successful in 1m18s
CI / security (push) Successful in 18s
CI / test (push) Successful in 4m7s
CI / build (push) Successful in 1m17s
CI / e2e (push) Successful in 15m11s
BUG-129 : les exports globaux de i18n.js sont protégés par typeof window pour que desktop-roots.test.mjs (Node sans JSDOM) ne casse plus. BUG-128 : mistune 3.3.3 -> >=3.3.4 (CVE-2026-97698/97699), plancher ajouté au garde-fou pip-audit.
2026-11-20 07:42:58 -05:00
14 changed files with 331 additions and 19 deletions
+294
View File
@@ -0,0 +1,294 @@
name: publish-nexus
# Publication du .deb Linux d'ObsiGate Desktop dans le dépôt Nexus
# « suite-dracodev » (obsigate-desktop/<version>/) : c'est là que la
# page Télécharger du Hub et la commande d'installation en une
# commande (stratégie Deb, HUB-28) vont le chercher.
# Déclenché à la publication d'une release (le tag doit correspondre
# au fichier VERSION, ex. v2.88.1), ou manuellement (onglet Actions
# → publish-nexus → Run workflow) pour (re)publier la version
# courante.
#
# Phases 4a (Linux, runner ubuntu-latest) et 4b (Windows, runner
# laptop-win étiqueté windows-latest) de l'automatisation Nexus.
# Le workflow desktop-build.yml existant, qui vise des runners
# [self-hosted, linux/windows, desktop] inexistants, n'est pas
# modifié.
#
# Aucun secret nouveau : NEXUS_USER / NEXUS_PASSWORD existent déjà
# au niveau de l'organisation Projets (phase 1). La clé updater
# Tauri est absente (comme en local) : build sans artefacts .sig,
# via createUpdaterArtifacts:false — même comportement que
# desktop/build-linux.sh sans clé.
#
# Les étapes reprennent desktop/build-linux.sh (la référence,
# utilisée pour le .deb 2.87.1 publié) :
# - venv Python À LA RACINE de desktop/python-embed/ (src/main.rs
# lance « python-embed/bin/python3 » ; un sous-dossier venv/
# casserait le démarrage du backend empaqueté — le
# desktop-build.yml existant fait l'inverse, à ne pas recopier) ;
# - retrait des liens symboliques du venv (lib64, bin/python,
# bin/python3.x) : le bundleur Tauri les déréférence, sans quoi
# le .deb passe de ~58 Mo à ~139 Mo ;
# - staging de backend/ et frontend/ dans desktop/ (ressources du
# bundle dans tauri.conf.json).
# Différence assumée : --bundles deb SEUL (pas d'AppImage : le Hub
# ne sert que le .deb pour Linux, et l'AppImage de ~139 Mo dépasse
# la limite d'envoi Cloudflare de ~100 Mo de toute façon).
# Garde-fou : le job échoue si le .deb dépasse 95 Mo.
#
# Version : le fichier VERSION à la racine fait foi ; contrôle de
# cohérence avec le « version » de desktop/tauri.conf.json (le nom
# du .deb produit par Tauri en dépend : ObsiGate_<version>_amd64.deb).
#
# Durée attendue : longue (installation de tauri-cli par cargo +
# compilation Rust) — premier run à lancer en manuel et à surveiller.
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Vérifier les secrets Nexus
env:
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: |
if [ -z "$NEXUS_USER" ] || [ -z "$NEXUS_PASSWORD" ]; then
echo "Secrets NEXUS_USER / NEXUS_PASSWORD absents (organisation Projets)." >&2
exit 1
fi
- name: Déterminer la version
run: |
VER=$(tr -d ' \r\n' < VERSION)
echo "VER=$VER" >> "$GITHUB_ENV"
if [ -z "$VER" ]; then
echo "Fichier VERSION vide ou absent." >&2
exit 1
fi
CONF_VER=$(sed -n 's/.*"version": "\([^"]*\)".*/\1/p' desktop/tauri.conf.json | head -n 1)
if [ "$CONF_VER" != "$VER" ]; then
echo "Incohérence de version : VERSION=$VER mais tauri.conf.json=$CONF_VER. Alignez les deux avant de publier." >&2
exit 1
fi
if [ "$GITHUB_EVENT_NAME" = "release" ] && [ "$GITHUB_REF_NAME" != "v$VER" ]; then
echo "Le tag de la release ($GITHUB_REF_NAME) ne correspond pas à VERSION (v$VER) : publication annulée." >&2
exit 1
fi
echo "Publication d'ObsiGate Desktop $VER (Linux .deb) dans Nexus suite-dracodev."
- name: Dépendances système (Tauri 2, Linux)
run: |
SUDO=""; [ "$(id -u)" -ne 0 ] && SUDO="sudo"
$SUDO apt-get update
$SUDO apt-get install -y \
build-essential pkg-config curl file \
libwebkit2gtk-4.1-dev libgtk-3-dev \
libayatana-appindicator3-dev librsvg2-dev libssl-dev \
python3 python3-venv
- name: Installer Rust et Tauri CLI
run: |
if ! command -v cargo >/dev/null 2>&1; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
export PATH="$HOME/.cargo/bin:$PATH"
fi
rustup default stable
cargo install tauri-cli --version "^2.0" --locked
cargo tauri --version
- name: Préparer le runtime Python et le staging (comme build-linux.sh)
working-directory: desktop
run: |
rm -rf python-embed
python3 -m venv python-embed
python-embed/bin/pip install --upgrade pip -q
python-embed/bin/pip install -r ../backend/requirements.txt -q
python-embed/bin/pip uninstall -y -q pip setuptools wheel || true
rm -f python-embed/lib64 python-embed/bin/python python-embed/bin/python3.*
# bin/python3 peut être un lien vers le python3.x retiré : le recréer si besoin
if [ ! -e python-embed/bin/python3 ]; then
cp "$(command -v python3)" python-embed/bin/python3
fi
rm -rf backend frontend
cp -r ../backend backend
cp -r ../frontend frontend
find python-embed -name "__pycache__" -type d -exec rm -rf {} + 2>/dev/null || true
- name: Build Tauri (.deb seul, sans artefacts updater)
working-directory: desktop
run: |
cargo tauri build --ci --target x86_64-unknown-linux-gnu --bundles deb \
--config '{"bundle":{"createUpdaterArtifacts":false}}'
ls -lh target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb
- name: Publier dans Nexus suite-dracodev
env:
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: |
DEB=$(ls desktop/target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb | head -n 1)
NOM=$(basename "$DEB")
TAILLE=$(stat -c %s "$DEB")
echo "$NOM : $TAILLE octets"
if [ "$TAILLE" -gt 99614720 ]; then
echo "Le .deb dépasse 95 Mo : envoi Nexus via Cloudflare impossible (~100 Mo max). Vérifier le nettoyage des liens symboliques du venv." >&2
exit 1
fi
echo "Envoi de $NOM vers obsigate-desktop/$VER/"
curl -fsS -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$DEB" "https://nexus.dracodev.net/repository/suite-dracodev/obsigate-desktop/$VER/$NOM"
echo "Publié : obsigate-desktop/$VER/$NOM dans suite-dracodev."
echo "DEB_NOM=$NOM" >> "$GITHUB_ENV"
cp "$DEB" "$RUNNER_TEMP/$NOM"
- name: Vérifier le dépôt (retéléchargement + comparaison)
env:
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: |
curl -fsS -u "$NEXUS_USER:$NEXUS_PASSWORD" -o "$RUNNER_TEMP/nexus-check.deb" "https://nexus.dracodev.net/repository/suite-dracodev/obsigate-desktop/$VER/$DEB_NOM"
cmp "$RUNNER_TEMP/$DEB_NOM" "$RUNNER_TEMP/nexus-check.deb" || { echo "Dépôt Nexus non conforme pour $DEB_NOM (contenu différent du .deb local)." >&2; exit 1; }
echo "Vérifié : $DEB_NOM (contenu identique au .deb construit)."
publish-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Vérifier les secrets Nexus
env:
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: |
if ([string]::IsNullOrEmpty($env:NEXUS_USER) -or [string]::IsNullOrEmpty($env:NEXUS_PASSWORD)) {
Write-Error "Secrets NEXUS_USER / NEXUS_PASSWORD absents (organisation Projets)."
exit 1
}
- name: Déterminer la version
run: |
$ver = (Get-Content VERSION -Raw).Trim()
if ([string]::IsNullOrEmpty($ver)) {
Write-Error "Fichier VERSION vide ou absent."
exit 1
}
$conf = Get-Content desktop/tauri.conf.json -Raw | ConvertFrom-Json
if ($conf.version -ne $ver) {
Write-Error "Incohérence de version : VERSION=$ver mais tauri.conf.json=$($conf.version). Alignez les deux avant de publier."
exit 1
}
if ($env:GITHUB_EVENT_NAME -eq "release" -and $env:GITHUB_REF_NAME -ne "v$ver") {
Write-Error "Le tag de la release ($env:GITHUB_REF_NAME) ne correspond pas à VERSION (v$ver) : publication annulée."
exit 1
}
[IO.File]::AppendAllText($env:GITHUB_ENV, "VER=$ver`n")
Write-Host "Publication d'ObsiGate Desktop $ver (Windows NSIS + MSI) dans Nexus suite-dracodev."
- name: Installer Rust et Tauri CLI
run: |
rustup default stable
cargo tauri --version 2>$null
if ($LASTEXITCODE -ne 0) {
cargo install tauri-cli --version "^2.0" --locked
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
}
cargo tauri --version
- name: Préparer Python 3.11 embed (comme build-windows.bat)
working-directory: desktop
run: |
if (Test-Path python-embed) { Remove-Item -Recurse -Force python-embed }
curl.exe -L --fail -o python-embed.zip "https://www.python.org/ftp/python/3.11.9/python-3.11.9-embed-amd64.zip"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
New-Item -ItemType Directory -Force python-embed | Out-Null
tar -xf python-embed.zip -C python-embed
if (-not (Test-Path python-embed\python.exe)) {
Write-Error "Extraction de Python embed incomplète (python.exe absent)."
exit 1
}
Remove-Item python-embed.zip
# ._pth écrit explicitement (stdlib + site-packages + « .. »
# pour que « import backend » fonctionne à côté de l'exe).
@("python311.zip", ".", "import site", "..") | Set-Content python-embed\python311._pth -Encoding ascii
curl.exe -L --fail -o get-pip.py "https://bootstrap.pypa.io/get-pip.py"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
.\python-embed\python.exe get-pip.py --no-cache-dir
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
Remove-Item get-pip.py
.\python-embed\python.exe -m pip install --no-cache-dir -r ..\backend\requirements.txt
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
.\python-embed\python.exe -c "import encodings, uvicorn, fastapi, pyotp"
if ($LASTEXITCODE -ne 0) {
Write-Error "Contrôle du runtime Python embarqué échoué (stdlib ou dépendances manquantes)."
exit 1
}
- name: Staging backend + frontend
working-directory: desktop
run: |
if (Test-Path backend) { Remove-Item -Recurse -Force backend }
if (Test-Path frontend) { Remove-Item -Recurse -Force frontend }
Copy-Item -Recurse ..\backend backend
Copy-Item -Recurse ..\frontend frontend
- name: Build Tauri (NSIS + MSI, sans artefacts updater)
working-directory: desktop
run: |
'{"bundle":{"createUpdaterArtifacts":false}}' | Set-Content updater-off.json -Encoding ascii
cargo tauri build --ci --target x86_64-pc-windows-msvc --bundles nsis,msi --config updater-off.json
if ($LASTEXITCODE -ne 0) {
Write-Host "Échec du build combiné : repli NSIS seul (comme build-windows.bat)."
cargo tauri build --ci --target x86_64-pc-windows-msvc --bundles nsis --config updater-off.json
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
}
Get-ChildItem target\x86_64-pc-windows-msvc\release\bundle\nsis\*.exe, target\x86_64-pc-windows-msvc\release\bundle\msi\*.msi -ErrorAction SilentlyContinue | Select-Object Name, Length
- name: Publier dans Nexus suite-dracodev
env:
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: |
$fichiers = @()
$fichiers += Get-ChildItem desktop\target\x86_64-pc-windows-msvc\release\bundle\nsis\*.exe -ErrorAction SilentlyContinue
$fichiers += Get-ChildItem desktop\target\x86_64-pc-windows-msvc\release\bundle\msi\*.msi -ErrorAction SilentlyContinue
if ($fichiers.Count -eq 0) {
Write-Error "Aucun installeur trouvé dans les bundles (nsis/msi)."
exit 1
}
foreach ($f in $fichiers) {
Write-Host "Envoi de $($f.Name) vers obsigate-desktop/$env:VER/"
curl.exe -fsS -u "$($env:NEXUS_USER):$($env:NEXUS_PASSWORD)" --upload-file "$($f.FullName)" "https://nexus.dracodev.net/repository/suite-dracodev/obsigate-desktop/$env:VER/$($f.Name)"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
}
Write-Host "Publié : obsigate-desktop/$env:VER (Windows) dans suite-dracodev."
- name: Vérifier le dépôt (retéléchargement + empreintes)
env:
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: |
$fichiers = @()
$fichiers += Get-ChildItem desktop\target\x86_64-pc-windows-msvc\release\bundle\nsis\*.exe -ErrorAction SilentlyContinue
$fichiers += Get-ChildItem desktop\target\x86_64-pc-windows-msvc\release\bundle\msi\*.msi -ErrorAction SilentlyContinue
foreach ($f in $fichiers) {
$dist = Join-Path $env:RUNNER_TEMP "nexus-check-$($f.Name)"
curl.exe -fsS -u "$($env:NEXUS_USER):$($env:NEXUS_PASSWORD)" -o "$dist" "https://nexus.dracodev.net/repository/suite-dracodev/obsigate-desktop/$env:VER/$($f.Name)"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
$hLocal = (Get-FileHash $f.FullName -Algorithm SHA256).Hash
$hDist = (Get-FileHash $dist -Algorithm SHA256).Hash
if ($hLocal -ne $hDist) {
Write-Error "Dépôt Nexus non conforme pour $($f.Name) (SHA-256 différent)."
exit 1
}
Write-Host "Vérifié : $($f.Name) (SHA-256 identique)."
}
+10 -1
View File
@@ -6,7 +6,7 @@ Format basé sur [Keep a Changelog](https://keepachangelog.com/fr/1.1.0/),
et [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
> **En cours de développement** : les changements à venir sont listés dans la section
> [Unreleased](#unreleased). La dernière version livrée est **2.88.0**.
> [Unreleased](#unreleased). La dernière version livrée est **2.88.1**.
---
@@ -14,6 +14,15 @@ et [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
---
## [2.88.1] — 2026-11-20
### Corrigé
- **CI lint — `i18n.js` importable en Node** : le module écrivait `window.t/tr/...` au chargement. Depuis que `desktop.js` importe `i18n.js`, le test `node tests/frontend/desktop-roots.test.mjs` (sans JSDOM) échouait sur `ReferenceError: window is not defined`. Les exports globaux sont désormais protégés par `typeof window !== "undefined"` — aucun changement navigateur.
- **Sécurité — `mistune` 3.3.3 → `>=3.3.4`** : `pip-audit` (job `security` bloquant) signale CVE-2026-97698 et CVE-2026-97699, corrigées en 3.3.4. Plancher ajouté au garde-fou `TestDependencySecurityFloors` + requirements ; le runtime desktop embarqué est reconstruit avec la version corrigée.
---
## [2.88.0] — 2026-11-20
### Ajouté
+3 -3
View File
@@ -4,7 +4,7 @@
**Porte d'entrée web ultra-léger pour vos vaults Obsidian** — Accédez, naviguez et recherchez dans toutes vos notes Obsidian depuis n'importe quel appareil via une interface web moderne et responsive.
[![Version](https://img.shields.io/badge/Version-2.88.0-blue.svg)]()
[![Version](https://img.shields.io/badge/Version-2.88.1-blue.svg)]()
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Docker](https://img.shields.io/badge/Docker-Ready-blue.svg)](https://www.docker.com/)
[![Python](https://img.shields.io/badge/Python-3.11+-green.svg)](https://www.python.org/)
@@ -981,8 +981,8 @@ Ce projet est sous licence **MIT** — voir le fichier [LICENSE](LICENSE) pour l
## 📝 Changelog
Consultez le [CHANGELOG.md](./CHANGELOG.md) pour l'historique complet de toutes les versions (v1.0.0 → v2.88.0).
Consultez le [CHANGELOG.md](./CHANGELOG.md) pour l'historique complet de toutes les versions (v1.0.0 → v2.88.1).
---
*Projet : ObsiGate | Version : 2.88.0 | Dernière mise à jour : Septembre 2026*
*Projet : ObsiGate | Version : 2.88.1 | Dernière mise à jour : Septembre 2026*
+3 -3
View File
@@ -2,7 +2,7 @@
**Ultra-light web gateway for your Obsidian vaults** — Access, browse, and search all your Obsidian notes from any device via a modern, responsive web interface.
[![Version](https://img.shields.io/badge/Version-2.88.0-blue.svg)]()
[![Version](https://img.shields.io/badge/Version-2.88.1-blue.svg)]()
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Docker](https://img.shields.io/badge/Docker-Ready-blue.svg)](https://www.docker.com/)
[![Python](https://img.shields.io/badge/Python-3.11+-green.svg)](https://www.python.org/)
@@ -1156,8 +1156,8 @@ This project is licensed under the **MIT License** - see the [LICENSE](LICENSE)
## 📝 Changelog
See [CHANGELOG.md](./CHANGELOG.md) for the complete version history (v1.0.0 → v2.88.0).
See [CHANGELOG.md](./CHANGELOG.md) for the complete version history (v1.0.0 → v2.88.1).
---
*Project: ObsiGate | Version: 2.88.0 | Last updated: September 2026*
*Project: ObsiGate | Version: 2.88.1 | Last updated: September 2026*
+1 -1
View File
@@ -1 +1 @@
2.88.0
2.88.1
+1 -1
View File
@@ -2,7 +2,7 @@ fastapi==0.141.1
uvicorn==0.54.0
websockets>=12.0
python-frontmatter==1.1.0
mistune==3.3.3
mistune>=3.3.4
python-multipart==0.0.31
aiofiles==23.2.1
# Plancher de sécurité : 3.14.3 est vulnérable à 8 CVE (dont
+1 -1
View File
@@ -2626,7 +2626,7 @@ dependencies = [
[[package]]
name = "obsigate-desktop"
version = "2.88.0"
version = "2.88.1"
dependencies = [
"chrono",
"env_logger",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "obsigate-desktop"
version = "2.88.0"
version = "2.88.1"
description = "ObsiGate Desktop — Porte d'entrée native pour vos vaults Obsidian"
authors = ["Bruno Charest"]
edition = "2021"
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/nicedoc/obsigate/main/desktop/tauri.conf.schema.json",
"productName": "ObsiGate",
"version": "2.88.0",
"version": "2.88.1",
"identifier": "com.obsigate.desktop",
"build": {
"frontendDist": "../frontend",
+1
View File
@@ -370,6 +370,7 @@ Avant de corriger quoi que ce soit, un agent IA doit :
| 2026-11-08 | BUG-125 (suite entrée SSO) | Correction | `frontend/js/auth.js`, `tests/test_draco_barre.py`, `CHANGELOG.md`, `docs/ISSUES_TODOLIST.md`, `docs/ROADMAP.md`, `docs/features/retour-sso-cookie-draco-bug-125.md`, `VERSION` (+ dérivés) | **BUG-125 — retour SSO honoré mais pont sans cookie draco** : quand les cookies `access_token` et `draco_session` ont disparu alors que `sessionStorage` croit la session valide, le chemin court d'`initAuth()` repartait sans échange serveur — aucune réémission du cookie draco — et le pont de l'application sœur, sans jeton, déposait l'utilisateur devant son formulaire nu. Correctif : avec `return_to`, `initAuth()` force le refresh silencieux + `/api/auth/me` (réémission par `DracoRenewalMiddleware`) avant d'honorer le retour. Reproduit puis vérifié en navigateur réel dans la pile « conteneur dev réel » (requête du pont journalisée : sans cookie avant, avec cookie après) | 🟢 corrigé (en attente vérif utilisateur) |
| 2026-11-19 | BUG-126 | Correction build desktop Windows | `desktop/build-windows.bat`, `desktop/build-linux.sh`, `tests/test_desktop_build_scripts.py`, `README.md`, `README.fr.md`, `desktop/README.md`, `docs/DEVELOPMENT_AND_RELEASES.md`, `docs/GUIDES/DESKTOP.md`, `CHANGELOG.md`, `docs/ISSUES_TODOLIST.md` | **BUG-126 — l'exe Windows s'ouvrait comme « sans CSS » et le build demandait deux fois un mot de passe.** Cause racine : `desktop\python-embed\python311._pth` ne contenait plus que `import site` + `..` (ni `python311.zip` ni `.`) → `ModuleNotFoundError: No module named 'encodings'`, backend mort avant le health check, fenêtre bloquée sur le HTML embarqué Tauri dont `/static/*` ne résout pas (d'où l'apparence non stylée). Reproduction : `python-embed\python.exe -c "import encodings"` échoue ; après réécriture explicite du `_pth`, le backend servi par le runtime release répond `/api/health` 200 et `/static/style.css` 200 (`text/css`, 363 860 octets). Correctif : `_pth` écrit explicitement (`python311.zip`, `.`, `import site`, `..`), contrôles d'échec sur download/extraction/get-pip/pip + sanity `import encodings, uvicorn, fastapi, pyotp`, copie du runtime complet (`python-embed`, `backend`, `frontend`) à côté de l'exe, exécution depuis `%~dp0`, arrêt limité au python embarqué. Invite de mot de passe : la clé updater n'est utilisée que si `TAURI_SIGNING_PRIVATE_KEY_PASSWORD` est défini, sinon `createUpdaterArtifacts:false` + `--ci` (aucune invite, build sans `.sig`). | 🟢 corrigé (en attente vérif utilisateur) |
| 2026-11-19 | #230 + BUG-127 | Fonctionnalité desktop + correction | `desktop/src/main.rs`, `desktop/permissions/commands.toml`, `backend/routers/desktop_sso.py`, `backend/main.py`, `frontend/js/{auth,desktop,config}.js`, `frontend/index.html`, `frontend/style.css`, `frontend/locales/{fr,en}.json`, `tests/test_desktop_sso.py`, `tests/test_desktop_sso_ui.py`, `tests/frontend/desktop.test.mjs`, `tests/test_draco_barre.py`, `docs/features/desktop-sso-environnement-230.md`, `docs/ROADMAP.md`, `CHANGELOG.md`, `docs/ISSUES_TODOLIST.md` | **#230 — l'app desktop peut se connecter avec le compte central et choisir prod/dev.** Constat : le backend desktop sert `127.0.0.1`, le cookie `draco_session` (`Domain=.dracodev.net`) ne lui parvient jamais ; le premier lancement générait un mot de passe admin aléatoire visible seulement dans les logs. Livré : liaison d'appareil sur le central choisi (`/api/v1/liaison`), validation du jeton draco via `/api/auth/me` du central, ouverture de la session de l'admin local par défaut ; login local conservé (admin/chab30 à la création). Sélecteur d'environnement en Configuration + premier lancement, injecté au backend embarqué (`OBSIGATE_DESKTOP*`, `DRACO_AGENT_URL`, `DRACO_OBSIGATE_URL` ; sœurs/Hub `-dev` dérivés). Routes `/api/desktop/sso/*` = 404 hors desktop, UI conditionnée par `isTauriEnv()` : application web Docker inchangée. **BUG-127** : `/liaison` même hôte honoré après login (`return_to`), sinon l'approbation desktop restait bloquée. Vérifié : `test_desktop_sso.py` 9 passed, 32 tests Rust (ACL incluse), `desktop.test.mjs` 30, `test_draco_barre`/`test_desktop_sso_ui`/i18n parity verts. | 🟢 corrigé/livré (en attente vérif utilisateur) |
| 2026-11-20 | BUG-128 + BUG-129 | Correction CI | `backend/requirements.txt`, `tests/test_ci_workflow.py`, `frontend/js/i18n.js`, `CHANGELOG.md`, `docs/ISSUES_TODOLIST.md` | **BUG-128 — `security` rouge : `pip-audit` signale mistune 3.3.3 (CVE-2026-97698/97699, fix 3.3.4)**. Plancher porté à `mistune>=3.3.4`, ajouté à `TestDependencySecurityFloors` ; runtime desktop reconstruit. **BUG-129 — `lint` rouge : `desktop-roots.test.mjs` importe `desktop.js` → `i18n.js`, qui écrivait `window.t/...` au chargement en Node** (`ReferenceError: window is not defined`). Exports globaux protégés par `typeof window !== "undefined"`. Vérifié : `node tests/frontend/desktop-roots.test.mjs` 4/4, suite pytest complète avec mistune 3.4.0, ruff/mypy 0. | 🟢 corrigé (en attente vérif utilisateur) |
---
+1 -1
View File
@@ -1,6 +1,6 @@
# ObsiGate — Roadmap
> **Version :** 2.88.0 | **Dernière mise à jour :** 2026-11-20
> **Version :** 2.88.1 | **Dernière mise à jour :** 2026-11-20
> **Ce fichier ne contient que le travail à venir** (🔵 En cours + ⚪ Backlog) et un index compact
> vers les fonctionnalités livrées.
> - **Méthode de livraison à appliquer pour toute tâche : [DELIVERY_WORKFLOW.md](./DELIVERY_WORKFLOW.md)**
+10 -5
View File
@@ -158,11 +158,16 @@ async function _loadLocaleStrings(locale) {
}
// ── Global exports for non-module scripts (legacy app.js) ──────────────────
window.t = t;
window.tr = tr;
window.getLocale = getLocale;
window.setLocale = setLocale;
window.initI18n = initI18n;
// Guarded so the module can also be imported in Node (JSDOM-less unit tests)
// without a browser global: desktop.js/auth.js import i18n.js and must stay
// loadable in `node tests/frontend/desktop-roots.test.mjs`.
if (typeof window !== "undefined") {
window.t = t;
window.tr = tr;
window.getLocale = getLocale;
window.setLocale = setLocale;
window.initI18n = initI18n;
}
/** Walk the DOM and update every element with a data-i18n* attribute. */
function _applyDOM() {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "obsigate",
"version": "2.88.0",
"version": "2.88.1",
"description": "**Porte d'entrée web ultra-léger pour vos vaults Obsidian** — Accédez, naviguez et recherchez dans toutes vos notes Obsidian depuis n'importe quel appareil via une interface web moderne et responsive.",
"main": "patch.js",
"directories": {
+3
View File
@@ -262,6 +262,9 @@ class TestDependencySecurityFloors:
"brotli": (1, 2, 1), # PYSEC-2026-4322, GHSA-9v8h-qqgm-4m35 (fix 1.2.1)
"filelock": (4, 2, 1), # CVE-2026-112940, CVE-2026-112913, CVE-2026-112907 (fix 4.2.1)
"opentelemetry-api": (1, 45, 1), # CVE-2026-114603 (fix 1.45.1)
# CI security 2026-11-20 : mistune 3.3.3 frappée par deux CVE,
# corrigées en 3.3.4 (pip-audit bloquant).
"mistune": (3, 3, 4), # CVE-2026-97698, CVE-2026-97699 (fix 3.3.4)
}
def test_security_floors_are_declared(self):