Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

文件上传直连OSS不损失安全的一种实现方式 || A way to upload files directly to OSS without losing security

オープン
#275 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
aws, typescript

調査の方向性

まず 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 ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

msgbyte/tailchat のほかの issue

msgbyte/tailchat の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。