bchanot
981a66f33b
ci: workflows kept as prepared material, marked never executed; script paths under scripts/
...
No runner, secret or registry exists on the forge; the three files map onto
the stages of pnpm check:all so a future runner calls the same scripts.
2026-10-13 01:19:15 +02:00
bchanot
2d573883e5
fix(worker): SAFETY comments state the invariants the code checks; WebP stride by checked arithmetic
...
The [gated <date>] markers read as an approval stamp: replaced by plain
SAFETY comments giving, for each of the seven unsafe sites, the FFI contract
and where the surrounding code establishes it (buffer length and stride
checks, non-zero size and non-null output before from_raw_parts, single
WebPFree, prctl integer arguments with the return code checked, the two
negative hooks compiled with test-hooks only). The stride is now computed
with checked_mul instead of width * 4.
2026-10-13 01:19:14 +02:00
bchanot
f2cf93668e
chore(workspace): native Rust toolchain as the primary path, builder image as the reproducible alternative
...
scripts/rust-check.sh and scripts/wasm-build.sh (moved from docker/) run
natively on the user-level rustup toolchain pinned by rust-toolchain.toml;
scripts/rust-env.sh puts ~/.cargo/bin on PATH for non-interactive shells.
Root scripts: rust:check and wasm:build native, rust:check:docker and
wasm:build:docker through docker/rust-run.sh, check:all = scripts/check-all.sh,
the whole pre-merge gate in one command (rust check, types drift, wasm build,
pnpm check, application image, worker:test, worker:image started read-only).
The native check now runs the worker's unit tests (cargo test --workspace);
the sandbox tests stay feature-gated and Docker-only.
2026-10-13 01:19:13 +02:00
bchanot
bd9c7d1968
chore(memory): R0 closed for owner validation — BDR-046, LRN-049, EVAL-017, journal, TODO R0 check-offs and follow-ups
2026-10-13 00:54:36 +02:00
bchanot
47d84161f5
ci: release-images — advisory gates in a job without secrets, image job runs no third-party code before login, fresh config dir via GITHUB_ENV, run-id builder name, empty digest refused, cleanup order; docs: SAFETY markers consistent, iCCP fixture comment
2026-10-13 00:53:46 +02:00
bchanot
3af2861be7
fix(worker): iCCP-bomb proof asserts the content-rejection property (either content code); docs(docs): RUST.md worker and release workflow wording after the second security pass
2026-10-13 00:37:33 +02:00
bchanot
a8b644a515
fix(worker): second security pass — content-only rejection codes (resource_limit, explicit list), negative proofs of the seccomp argument filters, PR_GET_DUMPABLE self-check, strict WebP chunk structure, iCCP-bomb fixture, separate test target cache; ci: release-images builder actually used (job-level DOCKER_CONFIG, --builder), literal cleanup path, token scoped to the login step, npm advisories gate, digests from build metadata
2026-10-13 00:36:30 +02:00
bchanot
11813f5560
fix(worker): security audit of R0 — no core dumps, tkill/tgkill limited to SIGABRT on self, mmap without PROT_EXEC, Broken outcome for a broken child environment, frame vs canvas check, unsafe denied with local allows, sandbox tests and derivation on the release profile (syscall marker); wasm proof exports behind a feature; ci: release-images hardened (typed input via env, advisories gate, ephemeral builder, env secrets + logout, ref gate, pinned checkout)
2026-10-13 00:18:53 +02:00
bchanot
9d3e0294e2
docs(docs): RUST.md with the R0 proofs, DEPLOY image deploy by digest + CSP note, workspace/test strategy/packages/CLAUDE.md, CHANGELOG; chore(memory): TODO R0
2026-10-13 00:01:27 +02:00
bchanot
4833fd29ef
ci: rust job through the builder image, worker test stage and runtime start, nightly advisories, manual digest-tagged release-images workflow; CSP proof script
2026-10-13 00:01:26 +02:00
bchanot
3970cdca52
feat(worker): sandboxed decode child skeleton — rlimits, traced seccomp allowlist, pure-Rust decoders, libwebp in the child, parent RIFF check, musl image with test stage
2026-10-13 00:01:26 +02:00
bchanot
2a38fa37b5
chore(workspace): Rust workspace R0 — builder image, core crate (JS-compatible JSON, report contracts, facade), wasm facade, core-wasm package with proofs
2026-10-13 00:01:25 +02:00
bchanot
5fec0654d3
Merge chore/step-08-files-analysis into develop
ci / check (push) Canceled after 0s
ci / docker (push) Canceled after 0s
ci / supabase (push) Canceled after 0s
2026-10-12 23:28:08 +02:00
bchanot
40d416b497
docs(docs): Rust review Annex C — owner validation and amendments (D-R4, D-R5, D-R9, D-R13), R0 go; chore(memory): BDR-045
2026-10-12 23:28:07 +02:00
bchanot
51667788e5
docs(docs): Rust review annexes — expanded decision table D-R1..D-R14 and R0 scope (Docker builder toolchain, 7 experimental proofs); chore(memory): BDR-044 orientation validated, journal, TODO R0
2026-10-12 22:58:09 +02:00
bchanot
3fbf34f663
docs(docs): Rust review rev 2 — 61 challenger findings folded (3 crates, frozen oracles, consumer-driven deletion, keyless parent, CSP/digest deploy); CLAUDE.md Rust-by-default rule; chore(memory): BDR-043, LRN-048, EVAL-016, journal, TODO Rust roadmap
2026-10-12 22:48:48 +02:00
bchanot
6a078dab74
docs(docs): Rust-by-default architecture review rev 1 — inventory, hidden contracts, A/B/C classification, Rust worker, workspace, roadmap R0–R6, 14 owner decisions
2026-10-12 22:21:49 +02:00
bchanot
aae0b392f8
docs(docs): Step 8 analysis rev 2 — 47 challenger findings folded (keyless decode child, write order, purge queue + grace, download under RLS, narrowed schema); chore(memory): TODO 8.x
2026-10-12 01:29:57 +02:00
bchanot
5e067a02ad
chore(memory): TODO Step 8 plan skeleton + release 0.2.0 deploy check, journal
2026-10-12 01:12:21 +02:00
bchanot
54df4d851a
docs(docs): Step 8 files foundation analysis — storage model, worker, quarantine, policies, backups, scope
2026-10-12 01:11:28 +02:00
bchanot
505b83087b
Merge feature/step-07-identity-app-shell into develop
ci / check (push) Canceled after 0s
ci / docker (push) Canceled after 0s
ci / supabase (push) Canceled after 0s
2026-10-12 00:54:05 +02:00
bchanot
3cf74fd255
docs(docs): validated Step 7 mockups under docs/design (reference README with deltas and owning steps); chore(memory): BDR-042, journal, TODO 7.10 follow-ups — Step 7 validated
2026-10-12 00:54:03 +02:00
bchanot
9d2fb788c1
chore(memory): EVAL-015, journal, TODO 7.9 — Step 7 gates closed, awaiting user validation
2026-10-11 23:47:18 +02:00
bchanot
9771d997f4
fix(app): failed sign-out reported (local session still cleared); reauthentication_needed phrased; docs(docs): exact production redirect allowlist
2026-10-11 23:45:14 +02:00
bchanot
1aed64b4ef
fix(app): safeNextPath resolves next= against a sentinel origin (closes the /\host and tab/newline open redirect); tests; contract amended
2026-10-11 23:44:00 +02:00
bchanot
aeea1f2e9b
chore(app): drawer honours prefers-reduced-motion; chore(memory): BDR-041, LRN-047, journal, TODO 7.x
2026-10-11 23:40:11 +02:00
bchanot
552733b4c8
docs(docs): IDENTITY.md (routes, session, providers, MFA gap, manual validation); CLAUDE.md map + architecture; SUPABASE.md wiring; CHANGELOG; plan note; Step 7 verify contract
2026-10-11 23:39:08 +02:00
bchanot
aa1985eead
test(app): identity step — auth store, locale sync, login/signup, guards, shell, dashboard, account
...
- tests/helpers/fakeSupabase: in-memory auth events + profiles/profile_roles builder
- validation schemas and safeNextPath; classifyAuthError mapping (packages/supabase)
- LoginRoute (unavailable, validation, next path, phrased failure, OAuth buttons, show password)
- SignupRoute (policy, mismatch, metadata + redirect, user exists)
- RequireAuth / RedirectIfSignedIn, AppLayout (nav, active, drawer, sign out), Dashboard, Account forms
2026-10-11 23:33:25 +02:00
bchanot
c517ea267b
feat(app): identity screens and /app shell — auth store, login/signup/reset flows, dashboard, account
...
- state/authStore: session subscription (initialize + onAuthStateChange), profile + roles load, recovery flag, URL failure; services/localeSync: profiles.locale <-> localeStore
- routes: /login, /signup, /forgot-password, /reset-password, /auth/callback; guards RequireAuth (next=) and RedirectIfSignedIn; /app (dashboard), /app/account behind the guard
- shell: AppLayout (desktop sidebar, light top bar, mobile drawer), SidebarNav, UserBadge, SignOutButton
- account: personal / professional / preferences / security sections, one save each, Zod validation with i18n keys
- ui: Icon, FormField, Notice, ButtonLink (buttonClassName shared), PasswordField, OAuthButtons (config-driven)
- Home header: Mon espace / Se connecter when Supabase is configured; local tool routes untouched
- i18n: auth.*, shell.*, dashboard.*, account.*, home.space.* in fr + en
2026-10-11 23:29:13 +02:00
bchanot
0f7292f9b3
test(config): authProviders parsing; fixture carries the new field
2026-10-11 23:16:57 +02:00
bchanot
b10b227ee9
feat(supabase): auth, profile and roles services; professional columns on profiles; OAuth + TOTP config
...
- packages/supabase: signIn/signUp/OAuth/reset/updatePassword/signOut wrappers with a closed AuthFailure kind, fetch/update own profile, own platform roles
- migration 20261011100000: practice_name, professional_title, siret (format-checked, column grants); pgTAP 009; database.types regenerated
- config.toml: TOTP enroll/verify on, [auth.external.google|apple] via env(), wildcard redirect URLs
- app config: authProviders (APP_AUTH_PROVIDERS / VITE_AUTH_PROVIDERS), entrypoint env.js, DEPLOY table
- TODO: Step 7 plan
2026-10-11 23:16:13 +02:00
bchanot
c746952d7f
Merge feature/step-06-pdf-archives into develop
ci / check (push) Canceled after 0s
ci / docker (push) Canceled after 0s
ci / supabase (push) Canceled after 0s
2026-10-11 17:32:15 +02:00
bchanot
62b2b9d86a
fix(pdf): candidates sorted by data offset, JSON depth pre-scan before parse, budget wording; chore(memory): BLK-009 mitigated with gate, EVAL-014, journal, TODO, CLAUDE.md import notes
2026-10-11 17:31:07 +02:00
bchanot
3a6e92625a
fix(pdf): inflater fed in 16 KiB slices (browser memory bound), shared 16 MiB candidate budget, monotonic bounded endstream search, JSON object pre-check
2026-10-11 17:08:56 +02:00
bchanot
6adc38b027
docs: hardening §4 commit pointer
2026-10-11 16:42:46 +02:00
bchanot
60ee71208f
fix(pdf): bounded attachment extraction by byte scan — no pdf-lib parse on import, export without object streams (BLK-009)
2026-10-11 16:42:45 +02:00
bchanot
62b8a43e09
feat(home): import messages open with a full-restoration or partial-recovery headline; BDR-040 recorded
2026-10-11 16:31:37 +02:00
bchanot
de2bd0437e
chore(memory): BLK-009 attachment scan contract
2026-10-11 16:29:15 +02:00
bchanot
6688c3c60e
chore(memory): journal + TODO 6.8 after the first manual-test round
2026-10-11 16:16:14 +02:00
bchanot
e8f1734424
feat(editor): tell the practitioner when a restored draft was rebased on a different sheet
2026-10-11 16:15:13 +02:00
bchanot
5ed4a4b620
docs: PDF import hardening analysis (BLK-009) — byte-scan reader and object-stream-free export now, worker and parser replacement before external users
2026-10-11 16:12:22 +02:00
bchanot
293a6e0b36
fix(pdf): bundle the branding assets into the app (no fetch at export), export returns its warnings and the editor reports missing elements
2026-10-11 16:09:39 +02:00
bchanot
80e95ca61d
docs(pdf): PNG budget wording (pixel cap bounds decoder memory); chore(memory): EVAL-013, journal, TODO 6.6 closed and 6.8 awaiting user
2026-10-11 15:06:12 +02:00
bchanot
cb95627a11
fix(pdf): PNG gate inflates IDAT natively against the exact raw size, validates IHDR fields, refuses zero dimensions and interlace (UPNG inflateRaw spin)
2026-10-11 14:52:03 +02:00
bchanot
0ceb357b18
fix(pdf): PNG chunk allowlist and mandatory empty IEND — text and profile chunks refused (UPNG nextZero spin)
2026-10-11 14:29:56 +02:00
bchanot
3a26c61119
fix(pdf): link URIs as ASCII hex (readable by poppler), PNG budget walks the chunk list (second IHDR and APNG refused)
2026-10-11 14:14:10 +02:00
bchanot
dfd04e0bd7
chore(memory): step 6 security fix 2 contract
2026-10-11 14:07:19 +02:00
bchanot
1cc92f664b
chore(memory): security-fix contract — oracle of criterion 1 corrected, evidence recorded
2026-10-11 13:58:26 +02:00
bchanot
1f417b21fd
fix(pdf): security hardening — hex-encoded link URIs, strict branding URL schema, branding and labels re-validated at export, PNG dimension budget, CSS escape and parenthesis rules in the sanitiser, finite raster size, file size checked before read
2026-10-11 13:54:18 +02:00
bchanot
4930704d8a
chore(memory): BLK-009 pdf-lib uncapped object-stream inflation on load
2026-10-11 13:43:30 +02:00