287 Commits

Author SHA1 Message Date
Marc-Roig
f8677df6ca Merge branch 'main' into feature/private-s3-bucket 2023-03-23 09:30:04 +01:00
Kevin Antonio Rateni Iatauro
edc2bdcecd
Decouple image resizing and optimization (#14029)
Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
2023-03-22 11:00:21 +01:00
Marc-Roig
1e1b62ef23 sign file urls when uploading files 2023-03-21 15:27:32 +01:00
Marc-Roig
456bdcba33 Merge branch 'main' into feature/private-s3-bucket 2023-03-21 14:59:26 +01:00
Marc
9810977479
Update index.js 2023-03-20 14:27:27 +01:00
Marc-Roig
516500dd07 do not wait for send upload plugin metrics 2023-03-20 11:30:52 +01:00
Marc-Roig
65ff3ca49a rename events 2023-03-20 11:30:05 +01:00
Marc-Roig
d4ab28d9c1 do not await telemetry 2023-03-20 09:58:25 +01:00
Marc-Roig
8bd5eb9745 update names of event properties 2023-03-17 15:00:01 +01:00
Marc-Roig
40650c4088 fix test 2023-03-16 16:55:14 +01:00
Marc-Roig
19c774fa57 change metric file to be index..js 2023-03-16 16:55:08 +01:00
Ben Irvin
801e3db415 add traverse query
fix single type

fix query

sanitize pagination count params

add comments

Cleanup the params/filters sanitize helpers

sanitize association resolver

Sanitize sort

fix graphql single type

fix graphql types

fix addFindQuery

Sanitize fields

Update sanitize sort to handle all the different formats

Update fields sanitize to handle regular strings & wildcard

Fix non scalar recursion

Add a traverse factory

Add visitor to remove dz & morph relations

Replace the old traverse utils (sort, filters) by one created using the traverse factory

add sanitize populate

await args

fix async and duplicate sanitization

sanitize u&p params

Add traverse fields

Fix traverse & sanitize fields

add traverse fields to nested populate

sanitize admin api filter queries

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

sanitize sort params in admin API

todo

make token fields unsearchable with _q

sanitize delete mutation

Update packages/core/admin/server/services/permission/permissions-manager/sanitize.js

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>

fix errors on queries without ctx

rename findParams to sanitizedParams

Sanitize queries everywhere in the content manager admin controllers

sanitize single type update and delete

Ignore non attribute keys in the sanitize sort

Fix the sanitize query sort for nested string sort

Fix permission check for the admin

typo

sanitize upload

sanitize admin media library

sanitize admin users

Add missing await

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

set U&P users fields to searchable:false

add token support to createContentAPIRequest

add searchable:false to getstarted U&P schema

remove comment

sanitize component resolver

remove await

add searchable false to the file's folder path

Fix admin query when the permission query is set to null

add basic tests for filtering private params

add tests for fields

add pagination tests

Fix admin user fields not being sanitized

Fix convert query params for the morph fragment on undefined value

Traverse dynamic zone on nested populate

Handle nested sort, filters & fields in populate queries + handle populate fragment for morphTo relations

Sanitize 'on' subpopulate

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

don't throw error on invalid attributes

check models for snake case column name instead of assuming they are operators

Add first batch of api tests for params sanitize

Fix sort traversal: handle object arrays

Put back removePassword for fields,sort,filters

Add schemas and fixtures for sanitize api tests

Add tests for relations (sanitize api tests)

Move constant to domain scope

Rename sanitize params to sanitize query

Fix typo

Cleanup fixtures file

Fix variable name conflict

Update packages/core/admin/server/services/permission/permissions-manager/sanitize.js

Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>

Update comment for array filters

Rename sanitize test

Test implicit & explicit array operator for filter

Remove unused code
2023-03-15 14:59:19 +01:00
Marc-Roig
a95c6a8c5e send telemetry about private providers 2023-03-15 14:37:31 +01:00
Marc-Roig
312be981e0 change order of execution on mapEntity 2023-02-28 14:20:19 +01:00
Marc-Roig
a392a15b65 call entity manager mapEntity 2023-02-24 09:17:39 +01:00
Jamie Howard
2797c1e0ca Merge remote-tracking branch 'origin/feature/private-s3-bucket' into private-s3-bucket/upload-extension-unit-tests 2023-02-23 11:08:10 +00:00
Jamie Howard
c10a4b06db refactor(upload): extension unit test 2023-02-23 11:06:54 +00:00
Jamie Howard
04efe043d0 test(upload): support dynamic zones 2023-02-22 16:46:00 +00:00
Marc-Roig
1106763c7a change jsdoc 2023-02-22 16:21:41 +01:00
Marc-Roig
d21490e7a9 sign files when replacing image 2023-02-22 16:12:58 +01:00
Marc-Roig
813eed2d9c sign for multiple media attributes 2023-02-22 16:12:39 +01:00
Jamie Howard
4212f2d33a refactor(upload) 2023-02-22 11:21:54 +00:00
Marc-Roig
5b92402129 use traverse entity method for signing file 2023-02-21 10:55:41 +01:00
Jamie Howard
1b39486f24 test(upload): entity manager file signing extension 2023-02-20 15:22:16 +00:00
Marc-Roig
0ebf2b4fd1 remove todo 2023-02-19 18:09:46 +01:00
Marc-Roig
79d2044e5b remove proxy controller 2023-02-19 18:08:54 +01:00
Marc-Roig
a38e36ac6d sign file is non mutating now 2023-02-19 18:08:44 +01:00
Marc
93724aec3e
Merge pull request #15817 from strapi/private-s3-bucket/cleanup 2023-02-19 16:51:09 +01:00
Marc-Roig
a663322c33 await isPrivate method 2023-02-14 19:02:22 +01:00
Jamie Howard
d42d7dc058
Merge pull request #15806 from strapi/private-s3-bucket/fix-unit-tests 2023-02-13 17:09:14 +00:00
Jamie Howard
95bc1dc9f0 fix(upload): failing register unit test 2023-02-13 16:40:58 +00:00
Marc-Roig
bbafe2b01d fix conflicts 2023-02-13 17:39:51 +01:00
Marc-Roig
f159f150f2 Merge branch 'feature/private-s3-bucket' into private-s3-bucket/non-mutating-signing 2023-02-13 17:22:14 +01:00
Jamie Howard
5b0ccf64da refactor(content-manager): add mapEntity to the entity manager 2023-02-13 11:06:57 +00:00
Marc-Roig
11c4b9df3a make file signing non mutating 2023-02-11 17:37:28 +01:00
Jamie Howard
cd4ef1a92b refactor(upload): entity manager extensions 2023-02-10 14:31:04 +00:00
Marc-Roig
67271d2026 move content manager file signing to extensions folder 2023-02-10 14:28:39 +01:00
Marc-Roig
e42f94beb4 add recursion to sign files 2023-02-10 09:44:49 +01:00
Jamie Howard
751c69d478 feat(upload): extend entity manager to sign private media URLs 2023-02-09 16:39:26 +00:00
Marc-Roig
4e6731ec58 make s3 bucket private 2023-02-09 15:02:15 +01:00
nathan-pichon
548ad3e931
fix(file-utils): rewrite requires 2023-02-08 16:02:42 +01:00
nathan-pichon
57009a0f30
fix(file-utils): rewrite requires 2023-02-08 15:57:14 +01:00
nathan-pichon
5316123801
fix(upload-local-provider): use package require instead of absolute path 2023-02-08 15:33:49 +01:00
Nathan Pichon
fa8a108af9
Merge branch 'main' into fix/issue-9308-File_upload_related_fields_returning_null 2023-02-02 16:16:48 +01:00
Marc
b697228833
Merge pull request #15669 from strapi/fix/support-avif-format 2023-02-02 14:35:19 +01:00
Marc-Roig
3adab4b39c remove heif from formats to process and optimize 2023-02-01 19:08:39 +01:00
Marc-Roig
e1e8f40619 add avif & heif to to formats to process and optimize list 2023-02-01 17:21:02 +01:00
Marc-Roig
e0e2d28f02 Merge branch 'main' into feature/provider-size-limit 2023-02-01 15:56:39 +01:00
markkaylor
85916f4bbf
Merge branch 'main' into feature/audit-logs 2023-01-25 15:17:33 +01:00
Pierre Noël
c909df5d45
Merge pull request #15535 from strapi/fix/sequential-requests-deadlock
Prevent deadlocks on components and locale updates
2023-01-25 14:28:00 +01:00