Skip to content

/files, /proxyでは、ドライブファイルのソースURLは公開せず、fileIdだけを公開して参照する  #13257

Open

Description

@tamaina

Summary

  • /files, /proxyは(uuidやurlではなく)fileId(とクエリ文字列)を指定してのみ解決させる
  • 外部メディアプロキシにfileIdを解決してプロキシする能力を持たせる
    • DBに接続する?→いや、admin権限のapiでMisskeyと通信して行うとよさそう

file, id, drive, ドライブ

Purpose

  1. オブジェクトストレージのURLが変わったなどの場合に対処が容易に行える
    • DBを操作してオブジェクトストレージのURLを書き換えても、連合先のファイルリンクは書き換えることができない
  2. オリジナルファイルは総当たりで探し当てられるかもしれない
    • 本体を通すようにすればアクセス制限(本人にしか見えないか公開するか)を行える
  3. メディアプロキシが自由にプロキシを行えてしまうことによるセキュリティ上の懸念を払拭できる

Do you want to implement this feature yourself?

  • Yes, I will implement this by myself and send a pull request

Activity

  1. added
    ✨Feature
    on Feb 11, 2024
  2. changed the title [-]/files, /proxyでは、ドライブファイルのファイルの元のURLは公開せず、fileIdだけを公開して参照する [/-] [+]/files, /proxyでは、ドライブファイルのソースURLは公開せず、fileIdだけを公開して参照する [/+] on Feb 11, 2024
  3. added
    packages/backend
    on Nov 27, 2024
  4. tamaina commented on Aug 2, 2025

    @tamaina
    ContributorAuthor

    @syuilo これどう思う?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    packages/backend✨Feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions