fix(security): 后端安全技术债务第二轮(P1+P2+P2) #332
Reference in New Issue
Block a user
Delete Branch "fix/tech-debt-security-round2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
后端安全技术债务第二轮
P1: audio_merger 裸subprocess下沉 + ffmpeg_utils架构下沉
packages/shared/ffmpeg_utils.py:run_ffmpeg / FFMPEG_BIN / FFPROBE_BIN 下沉到共享层,application层和worker层都能用apps/worker/video_processing/ffmpeg_utils.py:从shared re-export,保持向后兼容packages/application/tts_job/audio_merger.py:改用shared.ffmpeg_utils.run_ffmpeg,消除裸subprocessP2: _verify_url_accessible 重定向每跳SSRF校验
P2: url_security下载文件魔数校验
测试
CI全绿,自动审批通过。