mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: release QA hardening across processing, media, security, and CI gates (#649)
A release-readiness QA pass over the whole product. The commits split into defects a user would hit and gates that were reporting green while measuring nothing. ## Fixes that change behaviour Rate limiting was bypassable on every install: TRUST_PROXY defaulted to true, so request.ip came from a client-set header and a forged X-Forwarded-For got past the login limiter. The default is now a private-network trust list. A transient Postgres outage stranded in-flight jobs, leaving finished output on disk with no row pointing at it. A reconciler now resolves those rows and adopts the bytes rather than dropping the work. A Redis connection that moved to a new address wedged every read-blocked consumer, so completions stopped signalling while health still answered 200. Socket timeouts plus subscriber pings recover it. Installing more than one AI bundle left the shared venv multi-versioned and silently broke three tools. The installer now reconciles distributions to one version each. Converting an image to JXL at quality 1 through 4 returned a 500, because libjxl 0.7 rejects the distance those values compute. The quality is floored at what the encoder honours. A missing ffmpeg was also reported to the user as a corrupt upload; it now says the engine is unavailable. RAW uploads reached an unpatched LibRaw on arm64, so it is built from source at 0.22.2, and the release scan was split so it can fail on an unfixed critical instead of hiding it behind ignore-unfixed. ## Gates that could not fail Two mutation lanes ran zero mutants because Stryker crawled the gitignored docs build; coverage discarded its whole report on any failing test; the lint gate skipped root tests, scripts, and two workspaces; and several generated matrices counted a host missing ffmpeg as a passing tool. Each now measures what it claims. Full evidence and the outstanding release items are tracked locally and are not part of this branch.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
---
|
||||
description: "Configurez le provisionnement SCIM 2.0 pour synchroniser les utilisateurs et les groupes depuis votre fournisseur d'identité vers SnapOtter. Couvre Okta, Azure AD / Entra ID et les intégrations personnalisées."
|
||||
i18n_source_hash: bbd50119ec12
|
||||
i18n_source_hash: 06ee702b386e
|
||||
i18n_provenance: human
|
||||
i18n_output_hash: 7bd64dc5c777
|
||||
i18n_output_hash: c9b18c251435
|
||||
i18n_hash_version: 2
|
||||
---
|
||||
|
||||
# Provisionnement SCIM {#scim-provisioning}
|
||||
@@ -17,7 +18,7 @@ Le provisionnement SCIM nécessite une licence **entreprise** avec la fonctionna
|
||||
|
||||
- Une instance SnapOtter en cours d'exécution accessible à une URL publique
|
||||
- Une clé de licence entreprise avec la fonctionnalité `scim`
|
||||
- Un accès administrateur à SnapOtter (la permission `users:manage` est requise pour générer ou révoquer un jeton SCIM)
|
||||
- Un compte SnapOtter `admin` intégré avec son ensemble complet d'autorisations effectives. Un rôle personnalisé délégué ou une clé API d'administrateur dépourvue d'autorisation d'administrateur ne peut pas générer ou révoquer le jeton SCIM global.
|
||||
- Un accès administrateur aux paramètres de provisionnement de votre fournisseur d'identité
|
||||
|
||||
## Démarrage rapide {#quick-start}
|
||||
@@ -34,7 +35,7 @@ La réponse contient le jeton. Enregistrez-le immédiatement ; il ne pourra pas
|
||||
|
||||
```json
|
||||
{
|
||||
"token": "a1b2c3d4e5f6...",
|
||||
"token": "so_scim_v2_a1b2c3d4e5f6...",
|
||||
"message": "Save this token - it cannot be retrieved again"
|
||||
}
|
||||
```
|
||||
@@ -49,15 +50,19 @@ Les points de terminaison SCIM utilisent un jeton bearer dédié, distinct des s
|
||||
|
||||
### Génération d'un jeton {#generating-a-token}
|
||||
|
||||
`POST /api/v1/enterprise/scim/token` génère un nouveau jeton SCIM. Ce point de terminaison nécessite une session valide avec la permission `users:manage`.
|
||||
`POST /api/v1/enterprise/scim/token` génère un nouveau jeton SCIM. Étant donné que le jeton peut provisionner et muter les utilisateurs dans l’instance, ce point de terminaison nécessite le rôle `admin` intégré avec l’ensemble complet d’autorisations d’administrateur effectif. Détenir `users:manage` dans un rôle personnalisé n'est pas suffisant.
|
||||
|
||||
Le jeton est renvoyé en texte clair une seule fois. SnapOtter ne stocke qu'un hachage scrypt. Si vous perdez le jeton, révoquez-le et générez-en un nouveau.
|
||||
|
||||
Un seul jeton SCIM est actif à la fois. Générer un nouveau jeton remplace le précédent.
|
||||
|
||||
::: warning Réédition du jeton après la mise à niveau
|
||||
Les anciens jetons SCIM non versionnés sont rejetés. Après la mise à niveau vers une version qui émet des jetons `so_scim_v2_...`, générez un nouveau jeton et mettez à jour votre fournisseur d'identité avant de reprendre le provisionnement.
|
||||
:::
|
||||
|
||||
### Révocation d'un jeton {#revoking-a-token}
|
||||
|
||||
`DELETE /api/v1/enterprise/scim/token` révoque le jeton SCIM actuel. Ce point de terminaison nécessite également `users:manage`.
|
||||
`DELETE /api/v1/enterprise/scim/token` révoque le jeton SCIM actuel. Il a les mêmes exigences d’administration intégrées que la génération de jetons.
|
||||
|
||||
### Limitation de débit {#rate-limiting}
|
||||
|
||||
@@ -279,7 +284,7 @@ La requête SCIM n'incluait pas d'en-tête `Authorization: Bearer <token>`. Vér
|
||||
|
||||
### 401 « Invalid token » {#_401-invalid-token}
|
||||
|
||||
Le jeton ne correspond pas au hachage stocké. Cela se produit si le jeton a été révoqué et régénéré. Mettez à jour le jeton dans les paramètres de provisionnement de votre fournisseur d'identité.
|
||||
Le jeton est mal formé, utilise le format sans version retiré ou ne correspond pas au hachage stocké. Générez un jeton `so_scim_v2_...` actuel et mettez à jour le jeton dans les paramètres de provisionnement de votre IdP.
|
||||
|
||||
### 401 « SCIM not configured » {#_401-scim-not-configured}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user