文件上传直连OSS不损失安全的一种实现方式 || A way to upload files directly to OSS without losing security
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- aws, typescript
- 領域
- cloud, full-stack, security
調査の方向性
まず issue #104 と、リンクされている AWS S3 の presigned URL に関するドキュメントを読みます。次に、既存のサーバー経由の画像アップロードフローを追跡し、関係するクライアント側とサーバー側のエントリーポイントを特定します。環境によって制御される OSS への直接アップロードパスが、適切に制限された presigned URLs とともに実装され、無効にした場合には既存のアップロード動作が維持されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
这个issue是issue #104 的延伸
目前的实现是先把图片上传到服务器,服务器再上传到 oss,我觉得需要实现一下客户端直传OSS,可以用环境变量来选择是否启用。关于安全性的问题可以用AWS S3协议中的预签名 URL 来上传对象,官网文档中该链接的内容。适当限制该预签名URL的权限就不会造成安全问题。比如在memos项目中就是客户端直传,这个功能还是有必要的。不然带宽占用要翻倍,有点浪费资源了。
This issue is an extension of issue #104
The current implementation is to upload the image to the server first, and then the server uploads it to oss. I think it is necessary to implement direct transfer of the client to OSS. You can use environment variables to choose whether to enable it. Regarding security issues, you can use the pre-signed URL in the AWS S3 protocol to upload objects. In the official website documentation [this link](https://docs.aws.amazon.com/zh_cn/AmazonS3/latest/userguide/using-presigned -url.html). Properly restricting the permissions of the pre-signed URL will not cause security issues. For example, in the memos project, it is client-side direct transmission. This function is still necessary. Otherwise, the bandwidth usage will be doubled, which is a bit of a waste of resources.
- 主要言語
- TypeScript
- スター
- 3.6k
- フォーク
- 397
- 平均マージ
- 2分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
msgbyte/tailchat のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 3/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 50/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
msgbyte/tailchat の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
Zettlr/Zettlr#6610 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Feil lovtekst i bekreftelsen når leder melder unntak fra oppfølgingsplan対応中かも @AudunSorheim が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
navikt/syfo-oppfolgingsplan-frontend#1110 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
db-ux-design-system/core-web#8461 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Cannot run an integration on windows when power shell is selected as the default profile terminalオープンPriority/Blocker Type/Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
wso2/product-integrator#2767 ·
メンテナーはふだん 1 日以内に返信