merge develop #51

Merged
yume merged 48 commits from develop into master 2024-12-23 02:42:42 -06:00
Owner

What

Why

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests
<!-- ℹ お読みください / README PRありがとうございます! PRを作成する前に、コントリビューションガイドをご確認ください: Thank you for your PR! Before creating a PR, please check the contribution guide: https://forge.yumechi.jp/yume/yumechi-no-kuni/src/branch/master/CONTRIBUTING.md --> ## What <!-- このPRで何をしたのか? どう変わるのか? --> <!-- What did you do with this PR? How will it change things? --> ## Why <!-- なぜそうするのか? どういう意図なのか? 何が困っているのか? --> <!-- Why do you do it? What are your intentions? What is the problem? --> ## Additional info (optional) <!-- テスト観点など --> <!-- Test perspective, etc --> ## Checklist - [ ] Read the [contribution guide](https://forge.yumechi.jp/yume/yumechi-no-kuni/src/branch/master/CONTRIBUTING.md) - [ ] Test working in a local environment - [ ] (If needed) Add story of storybook - [ ] (If needed) Update CHANGELOG.md - [ ] (If possible) Add tests
yume added 48 commits 2024-12-23 02:41:24 -06:00
* wip

* Update CHANGELOG.md

* wip
* fix(backend): renoteMute doesn't work for note notification

* docs(changelog): update changelog
* New translations ja-jp.yml (Catalan)

* New translations ja-jp.yml (English)

* New translations ja-jp.yml (Korean)

* New translations ja-jp.yml (Chinese Simplified)

* New translations ja-jp.yml (Chinese Traditional)

* New translations ja-jp.yml (German)
* enhance: Add a few validation fixes from Sharkey

See the original MR on the GitLab instance:
https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/484

Co-Authored-By: Dakkar <dakkar@thenautilus.net>

* fix: primitive 2: acceptance of cross-origin alternate

Co-Authored-By: Laura Hausmann <laura@hausmann.dev>

* fix: primitive 3: validation of non-final url

* fix: primitive 4: missing same-origin identifier validation of collection-wrapped activities

* fix: primitives 5 & 8: reject activities with non
string identifiers

Co-Authored-By: Laura Hausmann <laura@hausmann.dev>

* fix: primitive 6: reject anonymous objects that were fetched by their id

* fix: primitives 9, 10 & 11: http signature validation
doesn't enforce required headers or specify auth header name

Co-Authored-By: Laura Hausmann <laura@hausmann.dev>

* fix: primitive 14: improper validation of outbox, followers, following & shared inbox collections

* fix: code style for primitive 14

* fix: primitive 15: improper same-origin validation for
note uri and url

Co-Authored-By: Laura Hausmann <laura@hausmann.dev>

* fix: primitive 16: improper same-origin validation for user uri and url

* fix: primitive 17: note same-origin identifier validation can be bypassed by wrapping the id in an array

* fix: code style for primitive 17

* fix: check attribution against actor in notes

While this isn't strictly required to fix the exploits at hand, this
mirrors the fix in `ApQuestionService` for GHSA-5h8r-gq97-xv69, as a
preemptive countermeasure.

* fix: primitive 18: `ap/get` bypasses access checks

One might argue that we could make this one actually preform access
checks against the returned activity object, but I feel like that's a
lot more work than just restricting it to administrators, since, to me
at least, it seems more like a debugging tool than anything else.

* fix: primitive 19 & 20: respect blocks and hide more

Ideally, the user property should also be hidden (as leaving it in leaks
information slightly), but given the schema of the note endpoint, I
don't think that would be possible without introducing some kind of
"ghost" user, who is attributed for posts by users who have you blocked.

* fix: primitives 21, 22, and 23: reuse resolver

This also increases the default `recursionLimit` for `Resolver`, as it
theoretically will go higher that it previously would and could possibly
fail on non-malicious collection activities.

* fix: primitives 25-33: proper local instance checks

* revert: fix: primitive 19 & 20

This reverts commit 465a9fe6591de90f78bd3d084e3c01e65dc3cf3c.

---------

Co-authored-by: Dakkar <dakkar@thenautilus.net>
Co-authored-by: Laura Hausmann <laura@hausmann.dev>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* Fix poll update spoofing

* fix: Disallow negative poll counts

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* fix(backend): check target IP before sending HTTP request

* fix(backend): allow accessing private IP when testing

* Apply suggestions from code review

Co-authored-by: anatawa12 <anatawa12@icloud.com>

* fix(backend): lint and typecheck

* fix(backend): add isLocalAddressAllowed option to getAgentByUrl and send (HttpRequestService)

* fix(backend): allow fetchSummaryFromProxy, trueMail to access local addresses

---------

Co-authored-by: anatawa12 <anatawa12@icloud.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Co-Authored-By: Acid Chicken <root@acid-chicken.com>
* Fix type error in security fixes

(cherry picked from commit fa3cf6c2996741e642955c5e2fca8ad785e83205)

* Fix error in test function calls

(cherry picked from commit 1758f29364eca3cbd13dbb5c84909c93712b3b3b)

* Fix style error

(cherry picked from commit 23c4aa25714af145098baa7edd74c1d217e51c1a)

* Fix another style error

(cherry picked from commit 36af07abe28bec670aaebf9f5af5694bb582c29a)

* Fix `.punyHost` misuse

(cherry picked from commit 6027b516e1c82324d55d6e54d0e17cbd816feb42)

* attempt to fix test: make yaml valid

---------

Co-authored-by: Julia Johannesen <julia@insertdomain.name>
* fix(backend): fix apResolver

* fix

* add comments

* tweak comment
* fix exception handling for Like activities

(cherry picked from commit 8f42e8434eaebe3aba5d1980c57f49dd8ad0de91)

* fix exception handling for Announce activities

(cherry picked from commit cfc3ab4b045af0674122fa49176431860176358b)

* fix exception handling for Undo activities

* Update Changelog

---------

Co-authored-by: Hazelnoot <acomputerdog@gmail.com>
* New translations ja-jp.yml (Chinese Simplified)

* New translations ja-jp.yml (Chinese Simplified)
* fix(frontend): 画面サイズが変わった際にnavbarが自動で折りたたまれない問題を修正

* Update Changelog

* fix
* fix(backend): アドレス入力で直接ユーザのプロフィールページを表示した際、前提データが足りず描画に失敗する

* fix CHANGELOG.md
* fix(frontend): サーバードキュメントとMisskey関連リソースとの間にdividerが入らないことがある問題を修正

* Update Changelog
* check harder for connectibility

`allSettled` does not throw if a promise is rejected, so
`check_connect` never actually failed

* Update Changelog

---------

Co-authored-by: dakkar <dakkar@thenautilus.net>
reduce metric cardinaility
Some checks failed
Lint / pnpm_install (push) Successful in 1m35s
Publish Docker image / Build (push) Successful in 5m1s
Test (production install and build) / production (22.11.0) (push) Successful in 1m28s
Test (backend) / unit (22.11.0) (push) Failing after 15m43s
Lint / lint (backend) (push) Failing after 2m48s
Lint / lint (frontend-embed) (push) Successful in 2m39s
Lint / lint (frontend) (push) Failing after 3m14s
Lint / lint (frontend-shared) (push) Successful in 2m56s
Lint / lint (misskey-bubble-game) (push) Successful in 2m57s
Lint / lint (misskey-js) (push) Successful in 3m7s
Lint / lint (misskey-reversi) (push) Successful in 2m48s
Lint / lint (sw) (push) Failing after 35s
Lint / typecheck (misskey-js) (push) Successful in 1m51s
Lint / typecheck (backend) (push) Successful in 2m34s
Lint / typecheck (sw) (push) Successful in 2m25s
8d10b6d846
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
* Resolve frontend/backend contradiction for home visibility embeds

This now uses the same check from `packages/frontend/src/scripts/get-note-menu.ts`

* Update Changelog

---------

Co-authored-by: CenTdemeern1 <timo.herngreen@gmail.com>
* fix(frontend): ノートがログインしているユーザーしか見れない場合にログインをキャンセルすると一切の処理が停止する問題を修正

* Update Changelog

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
defensive programming before reaction insert
Some checks failed
Lint / pnpm_install (push) Successful in 2m42s
Test (production install and build) / production (22.11.0) (push) Successful in 1m14s
Publish Docker image / Build (push) Successful in 5m18s
Lint / lint (backend) (push) Failing after 2m47s
Lint / lint (frontend-embed) (push) Successful in 1m56s
Test (backend) / unit (22.11.0) (push) Failing after 9m24s
Lint / lint (frontend-shared) (push) Successful in 2m1s
Lint / lint (misskey-bubble-game) (push) Successful in 2m1s
Lint / lint (misskey-js) (push) Successful in 2m5s
Lint / lint (misskey-reversi) (push) Successful in 2m4s
Lint / lint (frontend) (push) Failing after 8m44s
Lint / lint (sw) (push) Successful in 2m10s
Lint / typecheck (misskey-js) (push) Successful in 1m18s
Lint / typecheck (backend) (push) Successful in 1m59s
Lint / typecheck (sw) (push) Successful in 1m15s
54d38f029f
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
* チャンネル一覧の列を最大3列にした (Otaku-Social#13)

* fix

* fix

* fix

* 🎨

* fix

* 🎨

* Update Changelog

* Update Changelog

* 要らない_marginを消す

---------

Co-authored-by: tmorio <morikapusan@morikapu-denki.com>
* fix(frontend): 絵文字管理画面で絵文字が表示されないことがある問題を修正

* Update Changelog

* optimize
* fix(frontend): serverContextの型エラーを修正

* add comment
* enhance: 照会の失敗理由を表示するように

* Update Changelog

* fix

* fix test

* lookupErrors-> remoteLookupErrors
fix(frontend): serverContextの値を利用する条件が間違っていたのを修正 (#15166)
Some checks failed
Lint / locale_verify (push) Successful in 2m12s
Check Misskey JS version / Check version (pull_request) Successful in 6s
API report (misskey.js) / report (pull_request) Successful in 1m58s
Check the description in CHANGELOG.md / check-changelog (pull_request) Failing after 42s
Check SPDX-License-Identifier / check-spdx-license-id (pull_request) Successful in 22s
Dockle / dockle (pull_request) Failing after 7s
Get api.json from Misskey / save-pr-number (pull_request) Failing after 2s
Get api.json from Misskey / get-from-misskey (api-head.json, 22.11.0, refs/pull/${{ github.event.number }}/merge) (pull_request) Failing after 38s
Lint / pnpm_install (pull_request) Successful in 1m10s
Test (backend) / unit (22.11.0) (pull_request) Failing after 2s
Test (backend) / e2e (22.11.0) (pull_request) Failing after 0s
Test (federation) / test (22.11.0) (pull_request) Failing after 6s
Test (frontend) / vitest (22.11.0) (pull_request) Failing after 6s
Test (frontend) / e2e (chrome, 22.11.0) (pull_request) Failing after 3s
Test (misskey.js) / test (22.11.0) (pull_request) Failing after 2s
Get api.json from Misskey / get-from-misskey (api-base.json, 22.11.0, ${{ github.base_ref }}) (pull_request) Failing after 1m59s
Lint / locale_verify (pull_request) Successful in 1m33s
Test (production install and build) / production (22.11.0) (pull_request) Successful in 1m31s
Test (backend) / validate-api-json (22.11.0) (pull_request) Successful in 2m51s
Lint / lint (backend) (pull_request) Successful in 3m1s
Lint / lint (frontend-embed) (pull_request) Successful in 2m7s
Lint / lint (frontend-shared) (pull_request) Successful in 2m2s
Lint / lint (misskey-bubble-game) (pull_request) Successful in 2m0s
Lint / lint (misskey-js) (pull_request) Successful in 2m11s
Lint / lint (misskey-reversi) (pull_request) Successful in 2m2s
Lint / lint (sw) (pull_request) Successful in 2m3s
Lint / typecheck (misskey-js) (pull_request) Successful in 1m11s
Lint / lint (frontend) (pull_request) Successful in 9m41s
Lint / typecheck (backend) (pull_request) Successful in 2m3s
Lint / typecheck (sw) (pull_request) Successful in 1m29s
3c81926f71
Merge branch 'upstream-devel' into develop
Some checks failed
Lint / lint (misskey-bubble-game) (push) Blocked by required conditions
Lint / lint (misskey-js) (push) Blocked by required conditions
Lint / lint (misskey-reversi) (push) Blocked by required conditions
Lint / lint (sw) (push) Blocked by required conditions
Lint / typecheck (backend) (push) Blocked by required conditions
Lint / typecheck (misskey-js) (push) Blocked by required conditions
Lint / typecheck (sw) (push) Blocked by required conditions
Lint / pnpm_install (push) Successful in 2m28s
Test (production install and build) / production (22.11.0) (push) Successful in 1m19s
Publish Docker image / Build (push) Successful in 5m11s
Lint / lint (backend) (push) Failing after 2m42s
Lint / lint (frontend-embed) (push) Successful in 2m3s
Lint / lint (frontend) (push) Has been cancelled
Test (backend) / unit (22.11.0) (push) Has been cancelled
Lint / lint (frontend-shared) (push) Has been cancelled
a83d13c143
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
Revert check_connect
Some checks failed
Lint / lint (frontend) (push) Blocked by required conditions
Lint / lint (frontend-embed) (push) Blocked by required conditions
Lint / lint (frontend-shared) (push) Blocked by required conditions
Lint / lint (misskey-bubble-game) (push) Blocked by required conditions
Lint / lint (misskey-js) (push) Blocked by required conditions
Lint / lint (misskey-reversi) (push) Blocked by required conditions
Lint / lint (sw) (push) Blocked by required conditions
Lint / typecheck (backend) (push) Blocked by required conditions
Lint / typecheck (misskey-js) (push) Blocked by required conditions
Lint / typecheck (sw) (push) Blocked by required conditions
Lint / pnpm_install (push) Successful in 1m52s
Test (production install and build) / production (22.11.0) (push) Successful in 1m22s
Lint / lint (backend) (push) Has been cancelled
Publish Docker image / Build (push) Has been cancelled
Test (backend) / unit (22.11.0) (push) Has been cancelled
81890283f0
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
fixup! Remove nsfwjs
Some checks failed
Lint / pnpm_install (push) Successful in 1m40s
Test (production install and build) / production (22.11.0) (push) Successful in 1m6s
Publish Docker image / Build (push) Successful in 3m57s
Lint / lint (backend) (push) Failing after 2m23s
Lint / lint (frontend-embed) (push) Successful in 2m17s
Test (backend) / unit (22.11.0) (push) Failing after 8m28s
Lint / lint (frontend-shared) (push) Successful in 1m54s
Lint / lint (misskey-bubble-game) (push) Successful in 1m54s
Lint / lint (misskey-js) (push) Successful in 2m2s
Lint / lint (misskey-reversi) (push) Successful in 1m53s
Lint / lint (frontend) (push) Failing after 9m5s
Lint / lint (sw) (push) Successful in 2m5s
Lint / typecheck (backend) (push) Failing after 1m28s
Lint / typecheck (misskey-js) (push) Successful in 1m18s
Lint / typecheck (sw) (push) Successful in 1m25s
Lint / pnpm_install (pull_request) Successful in 1m24s
Test (backend) / unit (22.11.0) (pull_request) Failing after 37s
Test (production install and build) / production (22.11.0) (pull_request) Successful in 1m22s
Publish Docker image / Build (pull_request) Successful in 4m17s
Lint / lint (backend) (pull_request) Failing after 2m24s
Lint / lint (frontend-embed) (pull_request) Successful in 1m56s
Lint / lint (frontend-shared) (pull_request) Successful in 1m52s
Lint / lint (misskey-bubble-game) (pull_request) Successful in 2m2s
Lint / lint (misskey-js) (pull_request) Successful in 1m58s
Lint / lint (frontend) (pull_request) Failing after 9m15s
Lint / lint (misskey-reversi) (pull_request) Successful in 2m0s
Lint / typecheck (backend) (pull_request) Failing after 1m22s
Lint / typecheck (misskey-js) (pull_request) Successful in 1m19s
Lint / lint (sw) (pull_request) Successful in 2m18s
Lint / typecheck (sw) (pull_request) Successful in 1m44s
34f35e0bb2
yume merged commit e535558449 into master 2024-12-23 02:42:42 -06:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: yume/yumechi-no-kuni#51
No description provided.