WeKnora/internal/application/service/file
wizardchen 097c9d0ad5 fix(im): revert tenant-from-context for presigned URL
Reverts the tenant-ID-from-context change in da5fcd3. The storage path
encodes the resource owner's tenant, and the presigned-URL verifier
uses that ID to look up the owning tenant's StorageEngineConfig. Using
the caller's tenant ID from context would break cross-tenant shared
resources — e.g. when tenant Y reads an image from a KB shared by
tenant X, signing with Y would cause the verifier to open Y's storage
backend and 404 on X's file.

Keep:
- presignDefaultTTL shortened from 24h to 2h (independent improvement).
- godoc note on ParseTenantIDFromStoragePath flagging the ambiguity
  for cloud paths with numeric bucket/region names.
- Unit tests for path-based tenant extraction and the no-external-URL
  backward-compat path.
2026-04-30 11:40:30 +08:00
..
cos.go refactor: simplify image handling in _resolve_images function 2026-03-03 22:23:23 +08:00
dummy.go feat: introduce WeKnora Lite edition with lightweight configuration and deployment 2026-03-02 21:21:49 +08:00
factory.go fix(im): rewrite private storage URLs to HTTP in IM channel replies 2026-04-30 11:40:30 +08:00
local.go fix(im): revert tenant-from-context for presigned URL 2026-04-30 11:40:30 +08:00
local_test.go fix(im): revert tenant-from-context for presigned URL 2026-04-30 11:40:30 +08:00
minio.go fix(storage): auto-detect content-type to resolve image rendering issues 2026-04-20 21:59:54 +08:00
oss.go fix(storage): auto-detect content-type to resolve image rendering issues 2026-04-20 21:59:54 +08:00
oss_test.go chore(deps): 更新并新增go.mod依赖项 2026-04-14 17:33:12 +08:00
s3.go fix(storage): auto-detect content-type to resolve image rendering issues 2026-04-20 21:59:54 +08:00
s3_test.go fix(storage): add S3 provider scheme support to frontend and backend allowlists 2026-03-30 16:57:27 +08:00
tos.go fix(storage): auto-detect content-type to resolve image rendering issues 2026-04-20 21:59:54 +08:00