Skip to content

Commit 8901b60

Browse files
advisory: do not return jira password in API v1 response
1 parent 5fbf6ce commit 8901b60

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dojo/api_v2/serializers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,11 @@ class ToolConfigurationSerializer(serializers.ModelSerializer):
401401
class Meta:
402402
model = Tool_Configuration
403403
fields = '__all__'
404+
extra_kwargs = {
405+
'password': {'write_only': True},
406+
'ssh': {'write_only': True},
407+
'api_key': {'write_only': True},
408+
}
404409

405410

406411
class ToolProductSettingsSerializer(serializers.ModelSerializer):

0 commit comments

Comments
 (0)