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:
SnapOtter
2026-07-27 15:37:30 +08:00
committed by GitHub
parent bc32f86a07
commit d10d0f544f
855 changed files with 54564 additions and 13092 deletions
+12 -7
View File
@@ -1,8 +1,9 @@
---
description: "إعداد توفير SCIM 2.0 لمزامنة المستخدمين والمجموعات من موفّر الهوية لديك إلى SnapOtter. يغطي Okta وAzure AD / Entra ID والتكاملات المخصّصة."
i18n_source_hash: bbd50119ec12
i18n_source_hash: 06ee702b386e
i18n_provenance: human
i18n_output_hash: 34bda4e59c79
i18n_output_hash: 4e8347dee40e
i18n_hash_version: 2
---
# توفير SCIM {#scim-provisioning}
@@ -17,7 +18,7 @@ i18n_output_hash: 34bda4e59c79
- مثيل SnapOtter قيد التشغيل يمكن الوصول إليه عبر عنوان URL عام
- مفتاح ترخيص enterprise مع ميزة `scim`
- وصول المسؤول إلى SnapOtter (يلزم الإذن `users:manage` لإنشاء رمز SCIM أو إبطاله)
- حساب SnapOtter `admin` مدمج مع مجموعة الأذونات الفعالة الكاملة الخاصة به. لا يمكن لدور مخصص مفوض أو مفتاح API للمشرف الذي يفتقد أي إذن مسؤول إنشاء أو إبطال الرمز المميز SCIM.
- وصول المسؤول إلى إعدادات التوفير لدى موفّر الهوية
## بداية سريعة {#quick-start}
@@ -34,7 +35,7 @@ curl -X POST https://photos.example.com/api/v1/enterprise/scim/token \
```json
{
"token": "a1b2c3d4e5f6...",
"token": "so_scim_v2_a1b2c3d4e5f6...",
"message": "Save this token - it cannot be retrieved again"
}
```
@@ -49,15 +50,19 @@ curl -X POST https://photos.example.com/api/v1/enterprise/scim/token \
### إنشاء رمز {#generating-a-token}
يُنشئ `POST /api/v1/enterprise/scim/token` رمز SCIM جديداً. تتطلّب نقطة النهاية هذه جلسة صالحة مع الإذن `users:manage`.
يقوم `POST /api/v1/enterprise/scim/token` بإنشاء رمز SCIM جديد. نظرًا لأن الرمز المميز يمكنه توفير المستخدمين وتغييرهم عبر المثيل، فإن نقطة النهاية هذه تتطلب دور `admin` المدمج مع مجموعة أذونات المسؤول الفعالة الكاملة. إن الاحتفاظ بـ `users:manage` في دور مخصص ليس كافيًا.
يُعاد الرمز بنصّ صريح مرة واحدة فقط. يخزّن SnapOtter تجزئة scrypt فقط. إذا فقدت الرمز، فأبطِله وأنشئ رمزاً جديداً.
لا يكون سوى رمز SCIM واحد نشطاً في كل مرة. يؤدّي إنشاء رمز جديد إلى استبدال الرمز السابق.
::: warning إعادة إصدار الرمز المميز بعد الترقية
يتم رفض الرموز المميزة SCIM القديمة التي لم يتم إصدارها. بعد الترقية إلى إصدار يُصدر رموز `so_scim_v2_...`، قم بإنشاء رمز مميز جديد وقم بتحديث موفر الهوية الخاص بك قبل استئناف التزويد.
:::
### إبطال رمز {#revoking-a-token}
يبطل `DELETE /api/v1/enterprise/scim/token` رمز SCIM الحالي. تتطلّب نقطة النهاية هذه أيضاً `users:manage`.
يقوم `DELETE /api/v1/enterprise/scim/token` بإلغاء الرمز المميز SCIM الحالي. لديه نفس متطلبات المسؤول المضمنة الكاملة مثل إنشاء الرمز المميز.
### تحديد المعدّل {#rate-limiting}
@@ -279,7 +284,7 @@ curl -X POST https://photos.example.com/api/v1/enterprise/scim/token \
### 401 "Invalid token" {#_401-invalid-token}
لا يطابق الرمز التجزئة المخزّنة. يحدث هذا إذا أُبطِل الرمز وأُعيد إنشاؤه. حدّث الرمز في إعدادات التوفير لدى موفّر الهوية.
الرمز مميز بشكل غير صحيح، أو يستخدم التنسيق الذي لم يتم إصداره، أو لا يتطابق مع التجزئة المخزنة. أنشئ رمز `so_scim_v2_...` الحالي وقم بتحديث الرمز المميز في إعدادات توفير IdP.
### 401 "SCIM not configured" {#_401-scim-not-configured}