556 Commits

Author SHA1 Message Date
Gustav Hansen
0a008881ef Merge branch 'main' into feature/review-workflow 2023-03-16 15:49:45 +01:00
Alexandre Bodin
9295b52bb7 Fix api tests 2023-03-15 20:55:25 +01:00
Alexandre Bodin
18fbe664d7 Fix tests 2023-03-15 19:08:49 +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
Alexandre Bodin
29dadec292 Feedbacks 2023-03-09 02:43:16 +01:00
Alexandre Bodin
6c36872dd2 Fix test 2023-03-06 22:17:56 +01:00
Alexandre Bodin
e0e2084422 Move RBAC into CE 2023-03-06 21:46:45 +01:00
Alexandre Bodin
e789cd81f3 Avoid local strapi conflicting with global 2023-03-03 17:17:02 +01:00
Alexandre Bodin
dee0e195c1 Fix invalid require using internal paths 2023-03-02 22:16:29 +01:00
Convly
b502f188b5 Fix unit test 2023-02-27 19:30:26 +01:00
Convly
9afb0ad86d Check token salt on hash 2023-02-27 19:10:04 +01:00
Convly
ae23359954 Emit a warning when the feature is enabled but salt is not set 2023-02-27 18:55:16 +01:00
Ben Irvin
13099b4c55 Send error status when token salt not set
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2023-02-27 17:56:23 +01:00
Convly
478127d7c7 Merge branch 'main' of github.com:strapi/strapi into features/data-transfer 2023-02-20 16:58:46 +01:00
nathan-pichon
35f783d0dc
Merge branch 'main' into feature/review-workflow
# Conflicts:
#	packages/core/admin/ee/admin/permissions/customPermissions.js
2023-02-15 16:32:07 +01:00
Rémi de Juvigny
839d677c8f Remove the associated actions 2023-02-14 18:52:53 +01:00
Rémi de Juvigny
cbfc5876c7 Delete install and uninstall plugin endpoints 2023-02-14 16:04:16 +01:00
nathan-pichon
f4ea7d04e3
test(admin-permissions): update snapshot 2023-02-13 16:45:25 +01:00
Convly
9e4436b15a Add a verify util to the transfer runner handler 2023-02-08 10:46:16 +01:00
Convly
32e50815a1 Fix unit test 2023-02-06 11:34:12 +01:00
Convly
635c8a708d Merge branch 'data-transfer/transfer-tokens' of github.com:strapi/strapi into data-transfer/transfer-tokens 2023-02-06 10:16:36 +01:00
Convly
47c5867688 Remove integer constraint from the API token validation 2023-02-06 10:13:17 +01:00
Jean-Sébastien Herbaux
ffb0b9497a
Update packages/core/admin/server/controllers/transfer/token.js
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-02-06 10:12:36 +01:00
Jean-Sébastien Herbaux
9085b98717
Update packages/core/admin/server/controllers/transfer/token.js
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-02-06 10:11:31 +01:00
Convly
44c13b9497 Fix jsdoc for TransferToken.permissions 2023-02-06 10:10:29 +01:00
Convly
d3ae89280d Fix API test typo 2023-02-06 10:09:26 +01:00
Convly
bec1dfd555 Remove integer constraint from the transfer token validation 2023-02-06 10:07:56 +01:00
Convly
386579ff66 Update transfer services, fix api tests 2023-02-06 10:03:08 +01:00
Convly
65bf4cf12f Update permission snapshots 2023-02-03 16:34:21 +01:00
Jean-Sébastien Herbaux
1d791e47ea
Update packages/core/admin/server/controllers/api-token.js
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-02-03 16:21:55 +01:00
Jean-Sébastien Herbaux
e10cbe8885
Update packages/core/admin/server/config/admin-actions.js
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-02-03 16:21:25 +01:00
Jean-Sébastien Herbaux
b7ae385c7e
Update packages/core/admin/server/controllers/transfer/token.js
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-02-03 16:19:02 +01:00
Bassel
20a8fa0c0e add transaction to update, revoke and delete 2023-02-03 15:59:04 +02:00
Convly
60c4103b8f Rename test files 2023-02-03 14:35:12 +01:00
Bassel
c16cd28385 fixing unit tests 2023-02-03 14:53:49 +02:00
Bassel
ad9060b296 adding api tests for transfer token crud 2023-02-03 13:46:11 +02:00
Convly
ddb9cf4484 Adds test for the transfer token service and fix validation 2023-02-03 12:08:08 +01:00
Convly
5c327ad6ef Adds tests for the transfer token controllers 2023-02-03 11:15:12 +01:00
Convly
08d0d484cb Fix api token service, to use lodash fp insead of lodash 2023-02-03 11:14:50 +01:00
Convly
7d20788ff4 Add a getter for the engine providers in the transfer permission service 2023-02-03 11:14:32 +01:00
Convly
e5e86a5361 Adds getByName to the transfer token service 2023-02-03 11:12:46 +01:00
Convly
17bad93089 Create an auth strategy for data-transfer
Co-authored-by: Bassel Kanso <basselkanso82@gmail.com>
Co-authored-by: Ben Irvin <innerdvations@users.noreply.github.com>
Co-authored-by: Simone <simone.taeggi@strapi.io>
2023-02-02 17:03:41 +01:00
Christian Capeans
fe1bb44299 Create transfer tokens
Co-authored-by: Bassel Kanso <basselkanso82@gmail.com>
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
Co-authored-by: Simone <simone.taeggi@strapi.io>
Co-authored-by: Ben Irvin <innerdvations@users.noreply.github.com>
2023-02-02 13:15:41 +01:00
Convly
236275ab4d Merge branch 'main' of github.com:strapi/strapi into features/data-transfer 2023-02-02 10:10:48 +01:00
Christian
c557588829
Merge branch 'main' into tracking-system-ct-components-dz 2023-02-01 12:50:25 +01:00
Christian Capeans
6f2e86e562 Add small changes to improve context 2023-01-30 17:59:37 +01:00
Christian Capeans
c7f048918e Add TODOs to rename properties in v5 2023-01-30 15:55:58 +01:00
Convly
40af165c0c uncomment the data transfer feature from the cli & the admin 2023-01-27 11:35:35 +01:00
Jean-Sébastien Herbaux
b23bba9ba6
Merge pull request #15147 from strapi/chore/online-license-skeleton 2023-01-25 20:37:25 +01:00
fdel-car
f3550cea82 Add audit logs support & update the features API 2023-01-25 19:52:07 +01:00