Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Prepare a small, reviewable security hardening patch discovered while verifying the unmodified Materialious Full baseline for a private family deployment.
Changes
Validation and rollout boundaries
594131de9e36a0133716c8f08ac5b2fffcc89201. Browser-level multi-account and logout acceptance tests are still pending.mainbranch, and does not deploy to any server or modify the existing M1 runtime. Full endpoint/browser verification remains to be completed before any merge or rollout.Considerations
This is a minimal baseline authorization correction, separate from the OIDC work in PR #1. Existing account passwords, encryption format and current authentication mechanisms are unchanged. The legacy signed user token remains nonrevocable until a separately reviewed session design is introduced.
Focused regression validation, November 24, 2026
Additional database integration coverage
Added
materialious/tests/m1-database-ownership.test.cjsto the feature branch. It uses a real in-memory SQLite database and the current Sequelize association layout to check per-user subscription listings, existence checks and deletion. The web PR workflow is configured to execute both M1 test files.Validation state, November 24: The initial 7 M1 regression tests passed with 0 failures in a disposable Node 26.13.1 Docker test environment pinned to source commit
f6a8fab3, including a real Sequelize/in-memory SQLite ownership test. An additional cross-account RSS timestamp assertion was added. Following a targeted CommonJS lint exception for the two test files, GitHub's full Check web job passed its dependency installation, M1 tests, Svelte validation, linting and production build on commit594131de9. This validates the project-declared dependency installation in CI, unlike the earlier isolated harness. Desktop and Android workflows have separate jobs and are not counted as a web pass. Browser-level multi-account/logout verification remains outstanding. The PR remains draft and unmerged; the installed family pilot is unchanged.Viewing history authorization checkpoint, November 24, 2026
Current upstream
src/routes/api/user/history/+server.tswas reviewed. Its history DELETE endpoint had no explicit anonymous access check (the GET and POST endpoints already do). Commit7dde6138a8adds a 401 guard and two focused route-handler tests using disposable simulated users. They verify anonymous rejection before database access and that one user's history listing and deletion remain scoped to their ID. These are route-level simulated-authentication tests, not browser, real-cookie, or end-to-end tests.New web CI: SUCCESS, run 45471052355, including Node tests, Svelte checks, ESLint and full production build on commit
7dde6138a8be90e1c789f5102f6a7c97e9bf75d8.A separate functional issue was observed in upstream: updating an existing history entry omits
progressfrom the update payload. This merits isolated verification and a separate fix, not an unreviewed extension to this authorization PR. Authenticated two-account browser checks, session/logout behaviour and encrypted-data recovery are still outstanding. The PR remains draft/unmerged and is not deployed.