256 Commits

Author SHA1 Message Date
Simone Taeggi
bbe64d6837 Merge branch 'main' into features/data-transfer 2023-03-17 11:28:23 +01:00
Marc-Roig
28ebe15abe add published at attribute to be filterable and sortable 2023-03-16 17:18:29 +01:00
Convly
366eb8a0d0 Merge branch 'main' into features/data-transfer 2023-03-16 16:47:11 +01:00
Christian Capeans
e1b78e05c4 Add small fix and adapt tests 2023-03-15 17:32:25 +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
Convly
d8614487de Handle ws connexion status code & fix token validation 2023-03-14 12:43:15 +01:00
Christian Capeans
de6aa0baed Add authorization 2023-03-08 14:15:53 +01:00
Alexandre Bodin
e0e2084422 Move RBAC into CE 2023-03-06 21:46:45 +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
32e50815a1 Fix unit test 2023-02-06 11:34:12 +01:00
Convly
44c13b9497 Fix jsdoc for TransferToken.permissions 2023-02-06 10:10:29 +01:00
Convly
386579ff66 Update transfer services, fix api tests 2023-02-06 10:03:08 +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
Convly
ddb9cf4484 Adds test for the transfer token service and fix validation 2023-02-03 12:08:08 +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
Rémi de Juvigny
9ef1bea85f Fix api tests 2023-01-25 16:58:37 +01:00
Mark Kaylor
963f651b81 Merge branch 'main' of github.com:strapi/strapi into feature/audit-logs 2023-01-24 17:25:50 +01:00
Julie Plantey
aa043810b5 Merge branch 'main' of https://github.com/strapi/strapi into features/authLogo 2023-01-11 13:49:26 +01:00
Nathan Pichon
f51778cf4f
Merge pull request #15051 from strapi/authLogo/backend
feat: added authLogo setting
2023-01-11 09:55:55 +01:00
Rémi de Juvigny
5462cd3bdd Use object for user event payloads 2022-12-23 11:52:31 +01:00
Fernando Chavez
fbaa4101ac Add pagination and order in the audit logs endpoint & tests 2022-12-22 16:32:12 +01:00
nathan-pichon
185c487143
fix(project-settings): ensure to have previous settings before accessing it 2022-12-22 11:44:49 +01:00
Fernando Chavez
ab54a49736 Edit in permission events' name and in roles emitting 2022-12-21 14:31:43 +01:00
Fernando Chavez
e4a9fd95f3 Creating new events for the permissions and handle them on the service level 2022-12-21 13:12:22 +01:00
Fernando Chavez
b158657dc6 Merge with feature branch 2022-12-21 12:25:23 +01:00
Fernando Chavez
d26434b1c9 Dont use an emitWrapper in the audit logs roles events 2022-12-21 10:36:15 +01:00
Rémi de Juvigny
d8ae7ad98b Merge remote-tracking branch 'origin/main' into feature/audit-logs 2022-12-19 18:40:43 +01:00
Mark Kaylor
8121614a01 Fix tests 2022-12-16 11:59:01 -05:00
Mark Kaylor
5362403077 Use object with users key for bulk delete 2022-12-16 11:15:56 -05:00
Fernando Chavez
00e9d7a6b9 Emitting events for creating/update/delete/permission in a role 2022-12-16 17:15:12 +01:00
Mark Kaylor
723e71305b Remove read events 2022-12-16 10:33:51 -05:00
Mark Kaylor
6f8bed73fe Fix update user 2022-12-16 10:25:00 -05:00
Mark Kaylor
e410fdd695 Emit read user 2022-12-16 10:12:37 -05:00
Mark Kaylor
fdda09fd99 Emit update user 2022-12-16 10:12:29 -05:00
Mark Kaylor
47a6ea1b8f Emit delete user 2022-12-16 10:12:21 -05:00
Mark Kaylor
95b98afd2d Emit create user 2022-12-16 10:12:08 -05:00
Jamie Howard
07febfa69e Merge remote-tracking branch 'origin/main' into feature/media-library-ctv 2022-12-16 13:57:57 +00:00
Rémi de Juvigny
3f01d36578 Apply feedback 2022-12-09 13:56:28 +01:00
Rémi de Juvigny
d24ab0569f Refactor the event hub 2022-12-08 11:03:14 +01:00
Vincent
51cb73f9ee feat: added authLogo setting 2022-12-01 11:39:23 +01:00
Jamie Howard
c8c1678006 feat(upload): configure the view
test: e2e
chore: naming
2022-10-31 17:21:51 +00:00