-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[FEATURE] 非转换模式预览的文件不在黑白名单的管控内 #762
Copy link
Copy link
Open
Labels
priority/p2Normal priority issueNormal priority issuestatus/needs-infoWaiting for reporter feedback or reproduction detailsWaiting for reporter feedback or reproduction detailstype/featureNew feature request or proposalNew feature request or proposal
Metadata
Metadata
Assignees
Labels
priority/p2Normal priority issueNormal priority issuestatus/needs-infoWaiting for reporter feedback or reproduction detailsWaiting for reporter feedback or reproduction detailstype/featureNew feature request or proposalNew feature request or proposal
Type
Fields
Give feedbackNo fields configured for issues without a type.
Background / 背景
kkFileView Version / kkFileView 版本
4.4.0
Deployment Mode / 部署方式
docker
图片、pdf文档这些非转换模式预览的文件不会经过服务器拉取,所以设置了黑白名单或者服务器本身限制了公网访问都无法限制站外文件的预览加载,导致一些违法违规内容可以随意在站内url下呈现。
Proposal / 建议方案
希望可以让非转换模式预览的文件也能受黑白名单的管控
或者强制全部类型的文件都走转换模式进行预览
Use Case / 使用场景
Scenario 1:
kkfileview配置 -e KK_TRUST_HOST=abc.cn
https://abc.cn/preview/onlinePreview?url=https://abc.cn/a.png 可以正常预览
https://abc.cn/preview/onlinePreview?url=https://test.cn/test.png 不可以预览
Alternatives / 备选方案
No response
Acceptance Criteria / 验收标准
Criterion 1:
kkfileview配置 -e KK_TRUST_HOST=abc.cn
https://abc.cn/preview/onlinePreview?url=https://abc.cn/a.png 可以正常预览
https://abc.cn/preview/onlinePreview?url=https://test.cn/test.png 不可以预览
Checklist / 提交前检查