#454 剪辑计划生成状态接口video_url改为签名URL #467

Merged
xiaoxia merged 2 commits from feature/454-plan-status-signed-url into develop 2026-07-17 13:39:13 +08:00
Owner

变更内容

剪辑计划生成状态接口(GET /edit-plans/{plan_id}/generation-status)返回的 video_url 从裸OSS URL改为签名URL。

修复方案

  • 注入 storage_service,对 rendered_url 调用 get_download_url() 生成OSS签名URL
  • 签名过期时间 24 小时(86400秒)
  • 签名失败时降级返回原始URL,不阻断主流程(失败安全)

影响范围

  • 1个文件修改:edit_plans_generation.py
  • 仅影响 generation-status 接口的 video_url 字段
  • 向后兼容:无配置/无OSS时返回原始URL
## 变更内容 剪辑计划生成状态接口(`GET /edit-plans/{plan_id}/generation-status`)返回的 `video_url` 从裸OSS URL改为签名URL。 ## 修复方案 - 注入 `storage_service`,对 `rendered_url` 调用 `get_download_url()` 生成OSS签名URL - 签名过期时间 24 小时(86400秒) - 签名失败时降级返回原始URL,不阻断主流程(失败安全) ## 影响范围 - 1个文件修改:`edit_plans_generation.py` - 仅影响 `generation-status` 接口的 `video_url` 字段 - 向后兼容:无配置/无OSS时返回原始URL
xiaoxia added 1 commit 2026-07-17 13:03:42 +08:00
#454 剪辑计划生成状态接口video_url改为签名URL
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Has been skipped
Auto Merge CI PRs / Auto Merge on CI Green + Approved (pull_request) Failing after 0s
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Production (pull_request) Has been skipped
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 8s
AI Code Review / AI Code Review (pull_request) Failing after 22s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 47s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 2m50s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 47s
Auto Approve CI PRs / Auto Approve on CI Green (pull_request) Successful in 8m8s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m41s
e0d0658d7f
- 注入storage_service,对rendered_url调用get_download_url生成OSS签名URL
- 签名过期时间24小时
- 签名失败时降级返回原始URL,不阻断主流程
xiaoxia added 1 commit 2026-07-17 13:23:58 +08:00
fix: isort导入排序
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
Auto Merge CI PRs / Auto Merge on CI Green + Approved (pull_request) Failing after 1s
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Production (pull_request) Has been skipped
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 18s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 38s
AI Code Review / AI Code Review (pull_request) Successful in 1m23s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Successful in 2m55s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 3m54s
Auto Approve CI PRs / Auto Approve on CI Green (pull_request) Successful in 4m21s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 2m0s
a7a1ddda29
auto-approve-bot approved these changes 2026-07-17 13:28:18 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。
auto-approve-bot approved these changes 2026-07-17 13:28:18 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。
xiaoxia merged commit 3aa0be36a2 into develop 2026-07-17 13:39:13 +08:00
xiaoxia deleted branch feature/454-plan-status-signed-url 2026-07-17 13:39:13 +08:00
Sign in to join this conversation.