Files
SnapOtter/apps/api/drizzle/meta/_journal.json
T
SnapOtterandGitHub 079fcd2631 fix(security): close the gaps a full 2.0 re-audit left open (#620)
Follow-up to a full re-audit of the 2.0 tree. Most prior findings were already
fixed; this closes the ones that were not:

- SAML assertion replay: validateInResponseTo ifPresent plus a Redis-backed
  CacheProvider, so a captured signed assertion cannot be replayed. ifPresent
  keeps IdP-initiated SSO working.
- MFA login challenge burned after 5 wrong TOTP codes.
- api_keys.key_prefix indexed; the per-request lookup was a full table scan.
- MAX_AI_JOBS_PER_USER caps a user's in-flight single-file AI jobs (the AI pool
  runs at concurrency 1). Batch and pipeline AI stay uncapped.
- MAX_WORKSPACE_SIZE_GB enforced instead of being dead config.
- SUBPROCESS_MEMORY_LIMIT_MB (default off) for the native media and doc engines;
  not applied to the AI sidecar.
- SVG sanitizer closes unquoted and whitespace-prefixed javascript: hrefs and
  the animateTransform/animateMotion/handler/mpath elements.
- Windows-style paths stripped from error output to match the Sentry scrubber.
- Postgres and Redis compose services get cap_drop plus pids_limit and cpus.
- .env.example ships MAX_SVG_SIZE_MB=50 (0 disabled the cap).

Adds security-focused unit and integration tests. typecheck, biome, and the
full unit and integration suites pass.
2026-07-23 00:18:16 +08:00

56 lines
1.0 KiB
JSON

{
"version": "7",
"dialect": "postgresql",
"entries": [
{
"idx": 0,
"version": "7",
"when": 1781103398348,
"tag": "0000_postgres_baseline",
"breakpoints": true
},
{
"idx": 1,
"version": "7",
"when": 1781189798348,
"tag": "0001_jobs_spine",
"breakpoints": true
},
{
"idx": 2,
"version": "7",
"when": 1781338621449,
"tag": "0002_fair_sprite",
"breakpoints": true
},
{
"idx": 3,
"version": "7",
"when": 1781354362106,
"tag": "0003_flimsy_dust",
"breakpoints": true
},
{
"idx": 4,
"version": "7",
"when": 1781359444186,
"tag": "0004_handy_warhawk",
"breakpoints": true
},
{
"idx": 5,
"version": "7",
"when": 1782266352290,
"tag": "0005_special_exodus",
"breakpoints": true
},
{
"idx": 6,
"version": "7",
"when": 1784729211461,
"tag": "0006_majestic_sinister_six",
"breakpoints": true
}
]
}