Skip to content

Commit b00602f

Browse files
jfagoagasAdriiiPRodrialejandrobailo
authored
fix(users): only list roles and memberships with manage_account (#8281)
Co-authored-by: Adrián Jesús Peña Rodríguez <adrianjpr@gmail.com> Co-authored-by: alejandrobailo <alejandrobailo94@gmail.com>
1 parent 1cfae54 commit b00602f

File tree

14 files changed

+669
-94
lines changed

14 files changed

+669
-94
lines changed

api/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to the **Prowler API** are documented in this file.
44

5+
## [1.14.0] (Prowler 5.13.0)
6+
7+
### Changed
8+
- Now the MANAGE_ACCOUNT permission is required to modify or read user permissions instead of MANAGE_USERS [(#8281)](https://github.com/prowler-cloud/prowler/pull/8281)
9+
10+
---
11+
512
## [1.13.0] (Prowler 5.12.0)
613

714
### Added

api/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ name = "prowler-api"
4040
package-mode = false
4141
# Needed for the SDK compatibility
4242
requires-python = ">=3.11,<3.13"
43-
version = "1.13.0"
43+
version = "1.14.0"
4444

4545
[project.scripts]
4646
celery = "src.backend.config.settings.celery"

api/src/backend/api/specs/v1.yaml

Lines changed: 38 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.0.3
22
info:
33
title: Prowler API
4-
version: 1.13.0
4+
version: 1.14.0
55
description: |-
66
Prowler API specification.
77
@@ -8220,6 +8220,7 @@ paths:
82208220
type: string
82218221
enum:
82228222
- roles
8223+
- memberships
82238224
description: include query parameter to allow the client to customize which
82248225
related resources should be returned.
82258226
explode: false
@@ -8339,6 +8340,7 @@ paths:
83398340
type: string
83408341
enum:
83418342
- roles
8343+
- memberships
83428344
description: include query parameter to allow the client to customize which
83438345
related resources should be returned.
83448346
explode: false
@@ -8652,6 +8654,7 @@ paths:
86528654
type: string
86538655
enum:
86548656
- roles
8657+
- memberships
86558658
description: include query parameter to allow the client to customize which
86568659
related resources should be returned.
86578660
explode: false
@@ -15553,59 +15556,49 @@ components:
1555315556
type: object
1555415557
properties:
1555515558
data:
15556-
type: array
15557-
items:
15558-
type: object
15559-
properties:
15560-
id:
15561-
type: string
15562-
format: uuid
15563-
title: Resource Identifier
15564-
description: The identifier of the related object.
15565-
type:
15566-
type: string
15567-
enum:
15568-
- memberships
15569-
title: Resource Type Name
15570-
description: The [type](https://jsonapi.org/format/#document-resource-object-identification)
15571-
member is used to describe resource objects that share common
15572-
attributes and relationships.
15573-
required:
15574-
- id
15575-
- type
15559+
type: object
15560+
properties:
15561+
id:
15562+
type: string
15563+
type:
15564+
type: string
15565+
enum:
15566+
- memberships
15567+
title: Resource Type Name
15568+
description: The [type](https://jsonapi.org/format/#document-resource-object-identification)
15569+
member is used to describe resource objects that share common
15570+
attributes and relationships.
15571+
required:
15572+
- id
15573+
- type
1557615574
required:
1557715575
- data
15578-
description: A related resource object from type memberships
15579-
title: memberships
15576+
description: The identifier of the related object.
15577+
title: Resource Identifier
1558015578
readOnly: true
1558115579
roles:
1558215580
type: object
1558315581
properties:
1558415582
data:
15585-
type: array
15586-
items:
15587-
type: object
15588-
properties:
15589-
id:
15590-
type: string
15591-
format: uuid
15592-
title: Resource Identifier
15593-
description: The identifier of the related object.
15594-
type:
15595-
type: string
15596-
enum:
15597-
- roles
15598-
title: Resource Type Name
15599-
description: The [type](https://jsonapi.org/format/#document-resource-object-identification)
15600-
member is used to describe resource objects that share common
15601-
attributes and relationships.
15602-
required:
15603-
- id
15604-
- type
15583+
type: object
15584+
properties:
15585+
id:
15586+
type: string
15587+
type:
15588+
type: string
15589+
enum:
15590+
- roles
15591+
title: Resource Type Name
15592+
description: The [type](https://jsonapi.org/format/#document-resource-object-identification)
15593+
member is used to describe resource objects that share common
15594+
attributes and relationships.
15595+
required:
15596+
- id
15597+
- type
1560515598
required:
1560615599
- data
15607-
description: A related resource object from type roles
15608-
title: roles
15600+
description: The identifier of the related object.
15601+
title: Resource Identifier
1560915602
readOnly: true
1561015603
UserCreate:
1561115604
type: object

0 commit comments

Comments
 (0)