fix(security): harden deployment configuration boundaries
This commit is contained in:
@@ -147,7 +147,8 @@ export class MediaService {
|
||||
file: File,
|
||||
idempotentReplay: boolean,
|
||||
): Promise<CreateUploadIntentResponse> {
|
||||
const expiresIn = 600;
|
||||
// 缩短上传 URL 有效期至 120 秒,降低截获后滥用的风险窗口。
|
||||
const expiresIn = 120;
|
||||
let uploadUrl: string;
|
||||
try {
|
||||
uploadUrl = await this.storage.createUploadUrl(
|
||||
|
||||
Reference in New Issue
Block a user