chore(m365powershell): manage encryption from plaintext password (#7784)

Co-authored-by: Daniel Barranquero <danielbo2001@gmail.com>
This commit is contained in:
Hugo Pereira Brito
2025-05-22 17:36:58 +02:00
committed by GitHub
parent 99164ce93e
commit 36aaec8a55
21 changed files with 208 additions and 127 deletions
+9 -9
View File
@@ -1,7 +1,7 @@
openapi: 3.0.3
info:
title: Prowler API
version: 1.8.1
version: 1.9.0
description: |-
Prowler API specification.
@@ -9240,7 +9240,7 @@ components:
user:
type: email
description: User microsoft email address.
encrypted_password:
password:
type: string
description: User encrypted password.
required:
@@ -9248,7 +9248,7 @@ components:
- client_secret
- tenant_id
- user
- encrypted_password
- password
- type: object
title: GCP Static Credentials
properties:
@@ -10485,7 +10485,7 @@ components:
user:
type: email
description: User microsoft email address.
encrypted_password:
password:
type: string
description: User encrypted password.
required:
@@ -10493,7 +10493,7 @@ components:
- client_secret
- tenant_id
- user
- encrypted_password
- password
- type: object
title: GCP Static Credentials
properties:
@@ -10694,7 +10694,7 @@ components:
user:
type: email
description: User microsoft email address.
encrypted_password:
password:
type: string
description: User encrypted password.
required:
@@ -10702,7 +10702,7 @@ components:
- client_secret
- tenant_id
- user
- encrypted_password
- password
- type: object
title: GCP Static Credentials
properties:
@@ -10919,7 +10919,7 @@ components:
user:
type: email
description: User microsoft email address.
encrypted_password:
password:
type: string
description: User encrypted password.
required:
@@ -10927,7 +10927,7 @@ components:
- client_secret
- tenant_id
- user
- encrypted_password
- password
- type: object
title: GCP Static Credentials
properties:
@@ -119,7 +119,7 @@ from rest_framework_json_api import serializers
"type": "email",
"description": "User microsoft email address.",
},
"encrypted_password": {
"password": {
"type": "string",
"description": "User encrypted password.",
},
@@ -129,7 +129,7 @@ from rest_framework_json_api import serializers
"client_secret",
"tenant_id",
"user",
"encrypted_password",
"password",
],
},
{
+1 -1
View File
@@ -1197,7 +1197,7 @@ class M365ProviderSecret(serializers.Serializer):
client_secret = serializers.CharField()
tenant_id = serializers.CharField()
user = serializers.EmailField()
encrypted_password = serializers.CharField()
password = serializers.CharField()
class Meta:
resource_name = "provider-secrets"
+1 -1
View File
@@ -260,7 +260,7 @@ class SchemaView(SpectacularAPIView):
def get(self, request, *args, **kwargs):
spectacular_settings.TITLE = "Prowler API"
spectacular_settings.VERSION = "1.8.1"
spectacular_settings.VERSION = "1.9.0"
spectacular_settings.DESCRIPTION = (
"Prowler API specification.\n\nThis file is auto-generated."
)