memos/api/v1
Elliot Chen 3181c076b2
feat: add {uuid} in path template when using local storage or S3 (#2696)
Add {uuid} in path template when using local storage or S3

Add an addition tag `{uuid}` to the `replacePathTemplate`.

It is a workaround to leak the public links of a resource when using S3-based object storage. Currently, all resource blobs stored in S3 (R2, OSS) are set to be public. It is insecure as the resources for the private memos are also accessible on the Internet. Using an additional {uuid} might reduce this risk.

Meanwhile, it is also possible to avoid filename conflict
2024-01-02 20:57:55 +08:00
..
auth.go chore: update user setting names 2023-12-16 12:18:53 +08:00
common.go
docs.go chore: regenerate swagger docs 2023-12-19 22:37:07 +08:00
http_getter.go chore: fix tag in http_getter.go (#2500) 2023-11-11 23:21:15 +08:00
idp.go chore: move common packages to internal 2023-10-26 09:02:50 +08:00
jwt.go chore: fix jwt acl 2023-12-09 16:17:11 +08:00
memo.go chore: tweak variable names 2023-12-18 20:47:29 +08:00
memo_organizer.go chore: move common packages to internal 2023-10-26 09:02:50 +08:00
memo_relation.go chore: implement webhook dispatch in api v1 2023-11-25 10:31:58 +08:00
resource.go feat: add {uuid} in path template when using local storage or S3 (#2696) 2024-01-02 20:57:55 +08:00
rss.go chore: tweak frontend routes register 2023-12-23 17:58:49 +08:00
storage.go chore: move common packages to internal 2023-10-26 09:02:50 +08:00
swagger.yaml chore: regenerate swagger docs 2023-12-19 22:37:07 +08:00
system.go chore: skip invalida setting checks 2023-12-23 08:55:23 +08:00
system_setting.go chore: use consistent relative paths for resources (#2683) 2023-12-29 07:49:55 +08:00
tag.go chore: remove outdated activity definition 2023-10-27 23:11:56 +08:00
tag_test.go
user.go chore: prevent archive/delete current user 2023-12-23 08:05:05 +08:00
v1.go chore: deprecate user setting legacy api 2023-12-08 22:41:47 +08:00