Repository navigation
chore(upstream): integrate pre-lockfile Seerr changes" - #51
Merged
Merged
Conversation
User.settings is an eager relation, so it rode along into every response embedding a User, exposing pushover, pushbullet, telegram, discord and PGP values through the request, issue, issue comment, blocklist, and watchlist endpoints. It now omits it by using User.toJSON(). GET /auth/me builds settings from seven non-credential fields the web app reads, so locale and region defaults keep working. Reported as a security advisory, GHSA-8j73-j6rc-q8xh.
Media.getMedia() loads the requests and issues relations for GET /movie/:id and GET /tv/:id, and the User relations hanging off them are eager, so every authenticated user could read any other user's email and plexId out of mediaInfo. The same payload carried full issue contents, including comment bodies, to viewers who are refused GET /issue. Media.filter() now strips the nested users and withholds the issues from anyone lacking the perms that the endpoing requires, and drops the issue fields nothing reads. Reported as a security advisory, GHSA-xc6j-6p6h-p799.
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Co-authored-by: Bijaya Budhathoki <20866084+BBijaya@users.noreply.github.com>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Co-authored-by: Weblate <noreply@weblate.org> Co-authored-by: ezn24 <eznotsimple@gmail.com>
Co-authored-by: Bas Trebus <bas.trebus@maastrichtuniversity.nl> Co-authored-by: Kisnov <gabrielmarfil0@gmail.com> Co-authored-by: Mateusz Lesiak <mateusz.lesiak01@gmail.com> Co-authored-by: Nils Karlsson Pyssling <nisse@users.noreply.translate.seerr.dev> Co-authored-by: Serhiy <sergey.bobrov83@gmail.com> Co-authored-by: SulliL <susu.leduc@gmail.com> Co-authored-by: Thadah D. Denyse <thadahdenyse@protonmail.com> Co-authored-by: Ulrik J <ulrikj@users.noreply.translate.seerr.dev> Co-authored-by: Weblate <noreply@weblate.org> Co-authored-by: cowegner <carsten@tupti.de> Co-authored-by: dtalens <dtalens@users.noreply.translate.seerr.dev> Co-authored-by: ezn24 <eznotsimple@gmail.com> Co-authored-by: ugyes <ferenc.bodi@live.com>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
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.
Summary
Manually integrate 26 upstream Seerr commits preceding the GitHub Actions lockfile migration into our maintained
downstream-mainbranch.This integration preserves native upstream Git ancestry, incorporates compatible upstream fixes, and retains downstream-specific functionality and safety guarantees.
Upstream range:
103976d1b4d72fb2278995c2e9b9ab51891d5b8f6f63b08d5c610217c75580340ce78b69b8a0bd61edcc0a66a9db456ce2e8da6f29ef14989a1cd0f4Upstream PR seerr-team#3632 (GitHub Actions lockfile migration) and all subsequent commits are explicitly excluded. They will be reviewed in separate integration stages.
Upstream changes
This integration includes:
Conflict resolution
Five textual conflicts were resolved with deliberate semantic integration:
All 15 additional clean semantic overlaps were reviewed.
Explicit downstream lifecycle decision — upstream seerr-team#3578
The expanded upstream automatic request-decline behavior was intentionally not adopted.
Media that remains present but becomes unmonitored without downloaded files does not automatically cause an approved request to be declined.
Existing downstream missing-from-all-acquisition-servers cleanup remains unchanged.
This preserves downstream request lifecycle, acquisition safety and historical-data semantics while retaining native upstream commit ancestry.
The decisions and rejected alternatives are documented in
docs/UPSTREAM_RESOLUTION_DECISIONS.md.Validation
All original 374 baseline tests remain present and passing in the integrated candidate.
The locally validated staged tree is:
9023a2a45a4c37990d45e30a9006d9d3ccd9ff7aStrategy C — GitHub Actions safety
upstream-sync.ymlremains unchanged.actions.lockwas introduced.Integration and publication
This PR is intentionally submitted for human review.
downstream-mainrequires successful hostedDownstream validation.Remaining acceptance
downstream-main.This PR covers only the pre-lockfile upstream range. The lockfile migration and remaining upstream changes will be handled separately.