We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug 描述 缓存文件在公开存储桶中被所有人可见,里面包含了仅自己可见的文章信息
复现步骤
存储桶域名+/cache/cache.json
期望行为
截图
环境变量
The text was updated successfully, but these errors were encountered:
Rin/server/src/services/storage.ts
Lines 46 to 49 in 6cea860
另外目前对上传文件的控制是只要为登录用户即可上传,不知是bug还是feature?应该要只允许管理员上传吧?
Sorry, something went wrong.
Rin/server/src/services/storage.ts Lines 46 to 49 in 6cea860 if (!uid) { set.status = 401; return 'Unauthorized'; } 另外目前对上传文件的控制是只要为登录用户即可上传,不知是bug还是feature?应该要只允许管理员上传吧?
最初有设计为允许其他用户回复时添加图片,但暂未实现,这里目前来看存在设计缺陷
重新看了下文档,发现其实可以通过环境变量S3_CACHE_FOLDER自定义缓存的路径,所以应该可以通过自定义一个较长的随机路径,而不是默认的cache/路径避免缓存文件泄漏
S3_CACHE_FOLDER
cache/
No branches or pull requests
Bug 描述
缓存文件在公开存储桶中被所有人可见,里面包含了仅自己可见的文章信息
复现步骤
存储桶域名+/cache/cache.json
期望行为
截图
环境变量
The text was updated successfully, but these errors were encountered: